mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2026-06-11 13:56:45 +00:00
Compare commits
39 Commits
29.1.0
...
bd816b7847
| Author | SHA1 | Date | |
|---|---|---|---|
| bd816b7847 | |||
| 407f2a8bf7 | |||
| 10b1c359fa | |||
| c4f2566b71 | |||
| 85fb7e42e5 | |||
| d68c70e898 | |||
| 14402f9283 | |||
| b734757062 | |||
| fd9ad8dbf1 | |||
| 734e6074ef | |||
| d642a04e01 | |||
| ecd01c9254 | |||
| 8922b80cff | |||
| 50a7c9cae2 | |||
| f7ee0828ce | |||
| 0c87cf95eb | |||
| 9fea7390e8 | |||
| 9f0ca8143c | |||
| 9d879b90bb | |||
| 2a28f8ab39 | |||
| 44ce84cb84 | |||
| cea80ccee6 | |||
| e1848aa5c9 | |||
| e40424b26a | |||
| cc5056b685 | |||
| 9713a668e2 | |||
| 90d7bdff56 | |||
| 374f6a93bd | |||
| 28b5fae760 | |||
| 97dae295d6 | |||
| 93597f3940 | |||
| f27caaecde | |||
| b71b1414b9 | |||
| f8ceab7640 | |||
| 68897c89c3 | |||
| fb08b7044e | |||
| 7ed021b5bc | |||
| 1cff533265 | |||
| 8b08e11441 |
38
CHANGELOG.md
38
CHANGELOG.md
@@ -1,9 +1,43 @@
|
|||||||
# TelegramBotAPI changelog
|
# TelegramBotAPI changelog
|
||||||
|
|
||||||
## 29.1.0
|
## 31.0.0
|
||||||
|
|
||||||
|
## 30.0.2
|
||||||
|
|
||||||
* `Version`:
|
* `Version`:
|
||||||
* `Gradle Versions Plugin`: `0.52.0` -> `0.53.0`
|
* `Kotlin`: `2.2.20` -> `2.2.21`
|
||||||
|
* `Ktor`: `3.3.1` -> `3.3.2`
|
||||||
|
* `KSP`: `2.2.20-2.0.4` -> `2.3.2`
|
||||||
|
* `MicroUtils`: `0.26.6` -> `0.26.8`
|
||||||
|
* `KSLog`: `1.5.1` -> `1.5.2`
|
||||||
|
* `Core`:
|
||||||
|
* Allow to use `SetWebhook` with `maxAllowedConnections` up to `100000` (fix of [#1019](https://github.com/InsanusMokrassar/ktgbotapi/issues/1019))
|
||||||
|
* `KSP`:
|
||||||
|
* Fixed annotation property access for KSP2 compatibility using `withNoSuchElementWorkaround`
|
||||||
|
* Removed `ksp.useKSP2=false` workaround from `gradle.properties` (KSP2 is now properly supported)
|
||||||
|
* `Utils`:
|
||||||
|
* Regenerated class casts extensions
|
||||||
|
* Allow to use custom `GetUpdates` in `longPollingFlow`
|
||||||
|
|
||||||
|
## 30.0.1
|
||||||
|
|
||||||
|
* `Core`:
|
||||||
|
* Potential fix of [#989](https://github.com/InsanusMokrassar/ktgbotapi/issues/989) by:
|
||||||
|
* In long polling have been added check for causing by unresolved address exception
|
||||||
|
* Add `TelegramBotPipelinesHandler.onRequestExceptionInLimiter` which will be triggered in ANY exception during
|
||||||
|
request execution
|
||||||
|
|
||||||
|
## 30.0.0
|
||||||
|
|
||||||
|
**THIS UPDATE MAY CONTAINS BREAKING CHANGES**
|
||||||
|
|
||||||
|
* `Version`:
|
||||||
|
* `Kotlin`: `2.2.10` -> `2.2.20`
|
||||||
|
* `Ktor`: `3.2.3` -> `3.3.1`
|
||||||
|
* `MicroUtils`: `0.26.3` -> `0.26.6`
|
||||||
|
* `KSLog`: `1.5.0` -> `1.5.1`
|
||||||
|
* `BehaviourBuilder`:
|
||||||
|
* `DefaultCustomBehaviourContextAndTypeReceiver` now extends `suspend (BC, U) -> R` instead of `CustomBehaviourContextAndTypeReceiver<BC, R, U>` (no changes in api in fact)
|
||||||
|
|
||||||
## 29.0.1
|
## 29.0.1
|
||||||
|
|
||||||
|
|||||||
@@ -5,8 +5,5 @@ kotlin.js.generate.externals=true
|
|||||||
kotlin.incremental=true
|
kotlin.incremental=true
|
||||||
kotlin.incremental.js=true
|
kotlin.incremental.js=true
|
||||||
|
|
||||||
# https://github.com/google/ksp/issues/2491
|
|
||||||
ksp.useKSP2=false
|
|
||||||
|
|
||||||
library_group=dev.inmo
|
library_group=dev.inmo
|
||||||
library_version=29.1.0
|
library_version=31.0.0
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[versions]
|
[versions]
|
||||||
|
|
||||||
kotlin = "2.2.10"
|
kotlin = "2.2.21"
|
||||||
kotlin-serialization = "1.9.0"
|
kotlin-serialization = "1.9.0"
|
||||||
kotlin-coroutines = "1.10.2"
|
kotlin-coroutines = "1.10.2"
|
||||||
|
|
||||||
@@ -8,13 +8,13 @@ javax-activation = "1.1.1"
|
|||||||
|
|
||||||
korlibs = "5.4.0"
|
korlibs = "5.4.0"
|
||||||
uuid = "0.8.4"
|
uuid = "0.8.4"
|
||||||
ktor = "3.2.3"
|
ktor = "3.3.2"
|
||||||
|
|
||||||
ksp = "2.2.10-2.0.2"
|
ksp = "2.3.2"
|
||||||
kotlin-poet = "2.2.0"
|
kotlin-poet = "2.2.0"
|
||||||
|
|
||||||
microutils = "0.26.3"
|
microutils = "0.26.9"
|
||||||
kslog = "1.5.0"
|
kslog = "1.5.2"
|
||||||
|
|
||||||
versions = "0.53.0"
|
versions = "0.53.0"
|
||||||
|
|
||||||
@@ -22,7 +22,7 @@ github-release-plugin = "2.5.2"
|
|||||||
dokka = "2.0.0"
|
dokka = "2.0.0"
|
||||||
|
|
||||||
validator = "0.18.1"
|
validator = "0.18.1"
|
||||||
nmcp = "1.1.0"
|
nmcp = "1.2.0"
|
||||||
|
|
||||||
[libraries]
|
[libraries]
|
||||||
|
|
||||||
|
|||||||
@@ -347,10 +347,10 @@ public final class dev/inmo/tgbotapi/extensions/api/business/DeleteBusinessMessa
|
|||||||
}
|
}
|
||||||
|
|
||||||
public final class dev/inmo/tgbotapi/extensions/api/business/GetBusinessAccountGiftsKt {
|
public final class dev/inmo/tgbotapi/extensions/api/business/GetBusinessAccountGiftsKt {
|
||||||
public static final fun getBusinessAccountGifts-LATcL_E (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ljava/lang/String;ZZZZZZLjava/lang/String;Ljava/lang/Integer;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
public static final fun getBusinessAccountGifts-ncRJlhg (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ljava/lang/String;ZZZZZZZZLjava/lang/String;Ljava/lang/Integer;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
public static synthetic fun getBusinessAccountGifts-LATcL_E$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ljava/lang/String;ZZZZZZLjava/lang/String;Ljava/lang/Integer;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
public static synthetic fun getBusinessAccountGifts-ncRJlhg$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ljava/lang/String;ZZZZZZZZLjava/lang/String;Ljava/lang/Integer;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
||||||
public static final fun getBusinessAccountGiftsFlow-LATcL_E (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ljava/lang/String;ZZZZZZLjava/lang/String;Ljava/lang/Integer;Lkotlin/jvm/functions/Function2;)Lkotlinx/coroutines/flow/Flow;
|
public static final fun getBusinessAccountGiftsFlow-ncRJlhg (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ljava/lang/String;ZZZZZZZZLjava/lang/String;Ljava/lang/Integer;Lkotlin/jvm/functions/Function2;)Lkotlinx/coroutines/flow/Flow;
|
||||||
public static synthetic fun getBusinessAccountGiftsFlow-LATcL_E$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ljava/lang/String;ZZZZZZLjava/lang/String;Ljava/lang/Integer;Lkotlin/jvm/functions/Function2;ILjava/lang/Object;)Lkotlinx/coroutines/flow/Flow;
|
public static synthetic fun getBusinessAccountGiftsFlow-ncRJlhg$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ljava/lang/String;ZZZZZZZZLjava/lang/String;Ljava/lang/Integer;Lkotlin/jvm/functions/Function2;ILjava/lang/Object;)Lkotlinx/coroutines/flow/Flow;
|
||||||
}
|
}
|
||||||
|
|
||||||
public final class dev/inmo/tgbotapi/extensions/api/business/GetBusinessAccountStarBalanceKt {
|
public final class dev/inmo/tgbotapi/extensions/api/business/GetBusinessAccountStarBalanceKt {
|
||||||
@@ -513,6 +513,7 @@ public final class dev/inmo/tgbotapi/extensions/api/chat/get/GetChatKt {
|
|||||||
public static final fun getChat (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/GroupChatImpl;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
public static final fun getChat (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/GroupChatImpl;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
public static final fun getChat (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/PrivateChat;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
public static final fun getChat (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/PrivateChat;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
public static final fun getChat (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/PrivateChatImpl;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
public static final fun getChat (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/PrivateChatImpl;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
|
public static final fun getChat (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/PrivateForumChatImpl;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
public static final fun getChat (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/PublicChat;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
public static final fun getChat (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/PublicChat;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
public static final fun getChat (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/SupergroupChat;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
public static final fun getChat (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/SupergroupChat;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
public static final fun getChat (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/SupergroupChatImpl;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
public static final fun getChat (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/SupergroupChatImpl;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
@@ -538,12 +539,12 @@ public final class dev/inmo/tgbotapi/extensions/api/chat/get/GetForumTopicIconSt
|
|||||||
|
|
||||||
public final class dev/inmo/tgbotapi/extensions/api/chat/invite_links/ApproveChatJoinRequestKt {
|
public final class dev/inmo/tgbotapi/extensions/api/chat/invite_links/ApproveChatJoinRequestKt {
|
||||||
public static final fun approve (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/ChatJoinRequest;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
public static final fun approve (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/ChatJoinRequest;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
|
public static final fun approveChatJoinRequest (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/ChatIdentifier;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
public static final fun approveChatJoinRequest (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/ChatIdentifier;Ldev/inmo/tgbotapi/types/chat/User;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
public static final fun approveChatJoinRequest (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/ChatIdentifier;Ldev/inmo/tgbotapi/types/chat/User;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
public static final fun approveChatJoinRequest (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/ChatJoinRequest;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
public static final fun approveChatJoinRequest (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/ChatJoinRequest;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
|
public static final fun approveChatJoinRequest (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/PublicChat;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
public static final fun approveChatJoinRequest (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/PublicChat;Ldev/inmo/tgbotapi/types/chat/User;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
public static final fun approveChatJoinRequest (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/PublicChat;Ldev/inmo/tgbotapi/types/chat/User;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
public static final fun approveChatJoinRequest (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/update/ChatJoinRequestUpdate;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
public static final fun approveChatJoinRequest (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/update/ChatJoinRequestUpdate;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
public static final fun approveChatJoinRequest-Ugw2it0 (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/ChatIdentifier;JLkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
|
||||||
public static final fun approveChatJoinRequest-Ugw2it0 (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/PublicChat;JLkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public final class dev/inmo/tgbotapi/extensions/api/chat/invite_links/CreateChatInviteLinkKt {
|
public final class dev/inmo/tgbotapi/extensions/api/chat/invite_links/CreateChatInviteLinkKt {
|
||||||
@@ -591,12 +592,12 @@ public final class dev/inmo/tgbotapi/extensions/api/chat/invite_links/CreateChat
|
|||||||
|
|
||||||
public final class dev/inmo/tgbotapi/extensions/api/chat/invite_links/DeclineChatJoinRequestKt {
|
public final class dev/inmo/tgbotapi/extensions/api/chat/invite_links/DeclineChatJoinRequestKt {
|
||||||
public static final fun decline (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/ChatJoinRequest;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
public static final fun decline (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/ChatJoinRequest;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
|
public static final fun declineChatJoinRequest (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/ChatIdentifier;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
public static final fun declineChatJoinRequest (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/ChatIdentifier;Ldev/inmo/tgbotapi/types/chat/User;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
public static final fun declineChatJoinRequest (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/ChatIdentifier;Ldev/inmo/tgbotapi/types/chat/User;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
public static final fun declineChatJoinRequest (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/ChatJoinRequest;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
public static final fun declineChatJoinRequest (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/ChatJoinRequest;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
|
public static final fun declineChatJoinRequest (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/PublicChat;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
public static final fun declineChatJoinRequest (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/PublicChat;Ldev/inmo/tgbotapi/types/chat/User;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
public static final fun declineChatJoinRequest (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/PublicChat;Ldev/inmo/tgbotapi/types/chat/User;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
public static final fun declineChatJoinRequest (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/update/ChatJoinRequestUpdate;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
public static final fun declineChatJoinRequest (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/update/ChatJoinRequestUpdate;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
public static final fun declineChatJoinRequest-Ugw2it0 (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/ChatIdentifier;JLkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
|
||||||
public static final fun declineChatJoinRequest-Ugw2it0 (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/PublicChat;JLkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public final class dev/inmo/tgbotapi/extensions/api/chat/invite_links/EditChatInviteLinkKt {
|
public final class dev/inmo/tgbotapi/extensions/api/chat/invite_links/EditChatInviteLinkKt {
|
||||||
@@ -662,14 +663,14 @@ public final class dev/inmo/tgbotapi/extensions/api/chat/invite_links/RevokeChat
|
|||||||
}
|
}
|
||||||
|
|
||||||
public final class dev/inmo/tgbotapi/extensions/api/chat/members/BanChatMemberKt {
|
public final class dev/inmo/tgbotapi/extensions/api/chat/members/BanChatMemberKt {
|
||||||
|
public static final fun banChatMember (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/ChatIdentifier;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ldev/inmo/tgbotapi/types/TelegramDate;Ljava/lang/Boolean;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
public static final fun banChatMember (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ldev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/types/TelegramDate;Ljava/lang/Boolean;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
public static final fun banChatMember (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ldev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/types/TelegramDate;Ljava/lang/Boolean;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
|
public static final fun banChatMember (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/PublicChat;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ldev/inmo/tgbotapi/types/TelegramDate;Ljava/lang/Boolean;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
public static final fun banChatMember (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/PublicChat;Ldev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/types/TelegramDate;Ljava/lang/Boolean;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
public static final fun banChatMember (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/PublicChat;Ldev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/types/TelegramDate;Ljava/lang/Boolean;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
|
public static synthetic fun banChatMember$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/ChatIdentifier;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ldev/inmo/tgbotapi/types/TelegramDate;Ljava/lang/Boolean;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
||||||
public static synthetic fun banChatMember$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ldev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/types/TelegramDate;Ljava/lang/Boolean;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
public static synthetic fun banChatMember$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ldev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/types/TelegramDate;Ljava/lang/Boolean;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
||||||
|
public static synthetic fun banChatMember$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/PublicChat;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ldev/inmo/tgbotapi/types/TelegramDate;Ljava/lang/Boolean;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
||||||
public static synthetic fun banChatMember$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/PublicChat;Ldev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/types/TelegramDate;Ljava/lang/Boolean;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
public static synthetic fun banChatMember$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/PublicChat;Ldev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/types/TelegramDate;Ljava/lang/Boolean;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
||||||
public static final fun banChatMember-mITkJfk (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/ChatIdentifier;JLdev/inmo/tgbotapi/types/TelegramDate;Ljava/lang/Boolean;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
|
||||||
public static final fun banChatMember-mITkJfk (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/PublicChat;JLdev/inmo/tgbotapi/types/TelegramDate;Ljava/lang/Boolean;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
|
||||||
public static synthetic fun banChatMember-mITkJfk$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/ChatIdentifier;JLdev/inmo/tgbotapi/types/TelegramDate;Ljava/lang/Boolean;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
|
||||||
public static synthetic fun banChatMember-mITkJfk$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/PublicChat;JLdev/inmo/tgbotapi/types/TelegramDate;Ljava/lang/Boolean;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public final class dev/inmo/tgbotapi/extensions/api/chat/members/BanChatSenderChatKt {
|
public final class dev/inmo/tgbotapi/extensions/api/chat/members/BanChatSenderChatKt {
|
||||||
@@ -680,83 +681,83 @@ public final class dev/inmo/tgbotapi/extensions/api/chat/members/BanChatSenderCh
|
|||||||
}
|
}
|
||||||
|
|
||||||
public final class dev/inmo/tgbotapi/extensions/api/chat/members/GetChatMemberKt {
|
public final class dev/inmo/tgbotapi/extensions/api/chat/members/GetChatMemberKt {
|
||||||
|
public static final fun getChatMember (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/ChatIdentifier;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
public static final fun getChatMember (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ldev/inmo/tgbotapi/types/chat/User;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
public static final fun getChatMember (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ldev/inmo/tgbotapi/types/chat/User;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
|
public static final fun getChatMember (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/PublicChat;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
public static final fun getChatMember (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/PublicChat;Ldev/inmo/tgbotapi/types/chat/User;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
public static final fun getChatMember (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/PublicChat;Ldev/inmo/tgbotapi/types/chat/User;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
public static final fun getChatMember-Ugw2it0 (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/ChatIdentifier;JLkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
|
||||||
public static final fun getChatMember-Ugw2it0 (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/PublicChat;JLkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public final class dev/inmo/tgbotapi/extensions/api/chat/members/PromoteChannelAdministratorKt {
|
public final class dev/inmo/tgbotapi/extensions/api/chat/members/PromoteChannelAdministratorKt {
|
||||||
|
public static final fun promoteChannelAdministrator (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/ChatIdentifier;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ldev/inmo/tgbotapi/types/TelegramDate;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
public static final fun promoteChannelAdministrator (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ldev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/types/TelegramDate;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
public static final fun promoteChannelAdministrator (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ldev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/types/TelegramDate;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
|
public static final fun promoteChannelAdministrator (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/PublicChat;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ldev/inmo/tgbotapi/types/TelegramDate;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
public static final fun promoteChannelAdministrator (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/PublicChat;Ldev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/types/TelegramDate;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
public static final fun promoteChannelAdministrator (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/PublicChat;Ldev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/types/TelegramDate;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
|
public static synthetic fun promoteChannelAdministrator$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/ChatIdentifier;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ldev/inmo/tgbotapi/types/TelegramDate;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
||||||
public static synthetic fun promoteChannelAdministrator$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ldev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/types/TelegramDate;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
public static synthetic fun promoteChannelAdministrator$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ldev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/types/TelegramDate;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
||||||
|
public static synthetic fun promoteChannelAdministrator$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/PublicChat;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ldev/inmo/tgbotapi/types/TelegramDate;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
||||||
public static synthetic fun promoteChannelAdministrator$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/PublicChat;Ldev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/types/TelegramDate;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
public static synthetic fun promoteChannelAdministrator$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/PublicChat;Ldev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/types/TelegramDate;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
||||||
public static final fun promoteChannelAdministrator-p6QPzmQ (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/ChatIdentifier;JLdev/inmo/tgbotapi/types/TelegramDate;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
|
||||||
public static final fun promoteChannelAdministrator-p6QPzmQ (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/PublicChat;JLdev/inmo/tgbotapi/types/TelegramDate;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
|
||||||
public static synthetic fun promoteChannelAdministrator-p6QPzmQ$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/ChatIdentifier;JLdev/inmo/tgbotapi/types/TelegramDate;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
|
||||||
public static synthetic fun promoteChannelAdministrator-p6QPzmQ$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/PublicChat;JLdev/inmo/tgbotapi/types/TelegramDate;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public final class dev/inmo/tgbotapi/extensions/api/chat/members/PromoteChatAdministratorKt {
|
public final class dev/inmo/tgbotapi/extensions/api/chat/members/PromoteChatAdministratorKt {
|
||||||
|
public static final fun promoteChatAdministrator (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/ChatIdentifier;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ldev/inmo/tgbotapi/types/TelegramDate;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
public static final fun promoteChatAdministrator (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ldev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/types/TelegramDate;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
public static final fun promoteChatAdministrator (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ldev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/types/TelegramDate;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
|
public static final fun promoteChatAdministrator (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/PublicChat;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ldev/inmo/tgbotapi/types/TelegramDate;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
public static final fun promoteChatAdministrator (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/PublicChat;Ldev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/types/TelegramDate;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
public static final fun promoteChatAdministrator (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/PublicChat;Ldev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/types/TelegramDate;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
|
public static synthetic fun promoteChatAdministrator$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/ChatIdentifier;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ldev/inmo/tgbotapi/types/TelegramDate;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
||||||
public static synthetic fun promoteChatAdministrator$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ldev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/types/TelegramDate;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
public static synthetic fun promoteChatAdministrator$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ldev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/types/TelegramDate;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
||||||
|
public static synthetic fun promoteChatAdministrator$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/PublicChat;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ldev/inmo/tgbotapi/types/TelegramDate;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
||||||
public static synthetic fun promoteChatAdministrator$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/PublicChat;Ldev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/types/TelegramDate;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
public static synthetic fun promoteChatAdministrator$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/PublicChat;Ldev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/types/TelegramDate;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
||||||
public static final fun promoteChatAdministrator-MnQfiWM (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/ChatIdentifier;JLdev/inmo/tgbotapi/types/TelegramDate;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
|
||||||
public static final fun promoteChatAdministrator-MnQfiWM (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/PublicChat;JLdev/inmo/tgbotapi/types/TelegramDate;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
|
||||||
public static synthetic fun promoteChatAdministrator-MnQfiWM$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/ChatIdentifier;JLdev/inmo/tgbotapi/types/TelegramDate;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
|
||||||
public static synthetic fun promoteChatAdministrator-MnQfiWM$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/PublicChat;JLdev/inmo/tgbotapi/types/TelegramDate;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public final class dev/inmo/tgbotapi/extensions/api/chat/members/PromoteChatMemberKt {
|
public final class dev/inmo/tgbotapi/extensions/api/chat/members/PromoteChatMemberKt {
|
||||||
|
public static final fun promoteChatMember (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/ChatIdentifier;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ldev/inmo/tgbotapi/types/TelegramDate;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
public static final fun promoteChatMember (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ldev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/types/TelegramDate;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
public static final fun promoteChatMember (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ldev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/types/TelegramDate;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
|
public static final fun promoteChatMember (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/PublicChat;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ldev/inmo/tgbotapi/types/TelegramDate;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
public static final fun promoteChatMember (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/PublicChat;Ldev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/types/TelegramDate;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
public static final fun promoteChatMember (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/PublicChat;Ldev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/types/TelegramDate;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
|
public static synthetic fun promoteChatMember$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/ChatIdentifier;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ldev/inmo/tgbotapi/types/TelegramDate;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
||||||
public static synthetic fun promoteChatMember$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ldev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/types/TelegramDate;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
public static synthetic fun promoteChatMember$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ldev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/types/TelegramDate;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
||||||
|
public static synthetic fun promoteChatMember$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/PublicChat;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ldev/inmo/tgbotapi/types/TelegramDate;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
||||||
public static synthetic fun promoteChatMember$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/PublicChat;Ldev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/types/TelegramDate;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
public static synthetic fun promoteChatMember$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/PublicChat;Ldev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/types/TelegramDate;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
||||||
public static final fun promoteChatMember-_p3TPLY (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/ChatIdentifier;JLdev/inmo/tgbotapi/types/TelegramDate;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
|
||||||
public static final fun promoteChatMember-_p3TPLY (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/PublicChat;JLdev/inmo/tgbotapi/types/TelegramDate;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
|
||||||
public static synthetic fun promoteChatMember-_p3TPLY$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/ChatIdentifier;JLdev/inmo/tgbotapi/types/TelegramDate;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
|
||||||
public static synthetic fun promoteChatMember-_p3TPLY$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/PublicChat;JLdev/inmo/tgbotapi/types/TelegramDate;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public final class dev/inmo/tgbotapi/extensions/api/chat/members/PromoteSupergroupAdministratorKt {
|
public final class dev/inmo/tgbotapi/extensions/api/chat/members/PromoteSupergroupAdministratorKt {
|
||||||
|
public static final fun promoteSupergroupAdministrator (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/ChatIdentifier;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ldev/inmo/tgbotapi/types/TelegramDate;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
public static final fun promoteSupergroupAdministrator (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ldev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/types/TelegramDate;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
public static final fun promoteSupergroupAdministrator (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ldev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/types/TelegramDate;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
|
public static final fun promoteSupergroupAdministrator (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/PublicChat;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ldev/inmo/tgbotapi/types/TelegramDate;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
public static final fun promoteSupergroupAdministrator (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/PublicChat;Ldev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/types/TelegramDate;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
public static final fun promoteSupergroupAdministrator (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/PublicChat;Ldev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/types/TelegramDate;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
|
public static synthetic fun promoteSupergroupAdministrator$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/ChatIdentifier;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ldev/inmo/tgbotapi/types/TelegramDate;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
||||||
public static synthetic fun promoteSupergroupAdministrator$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ldev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/types/TelegramDate;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
public static synthetic fun promoteSupergroupAdministrator$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ldev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/types/TelegramDate;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
||||||
|
public static synthetic fun promoteSupergroupAdministrator$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/PublicChat;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ldev/inmo/tgbotapi/types/TelegramDate;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
||||||
public static synthetic fun promoteSupergroupAdministrator$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/PublicChat;Ldev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/types/TelegramDate;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
public static synthetic fun promoteSupergroupAdministrator$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/PublicChat;Ldev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/types/TelegramDate;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
||||||
public static final fun promoteSupergroupAdministrator-DDvpgsE (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/ChatIdentifier;JLdev/inmo/tgbotapi/types/TelegramDate;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
|
||||||
public static final fun promoteSupergroupAdministrator-DDvpgsE (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/PublicChat;JLdev/inmo/tgbotapi/types/TelegramDate;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
|
||||||
public static synthetic fun promoteSupergroupAdministrator-DDvpgsE$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/ChatIdentifier;JLdev/inmo/tgbotapi/types/TelegramDate;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
|
||||||
public static synthetic fun promoteSupergroupAdministrator-DDvpgsE$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/PublicChat;JLdev/inmo/tgbotapi/types/TelegramDate;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public final class dev/inmo/tgbotapi/extensions/api/chat/members/RestrictChatMemberKt {
|
public final class dev/inmo/tgbotapi/extensions/api/chat/members/RestrictChatMemberKt {
|
||||||
|
public static final fun restrictChatMember (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/ChatIdentifier;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ldev/inmo/tgbotapi/types/TelegramDate;Ldev/inmo/tgbotapi/types/chat/ChatPermissions;Ljava/lang/Boolean;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
public static final fun restrictChatMember (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ldev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/types/TelegramDate;Ldev/inmo/tgbotapi/types/chat/ChatPermissions;Ljava/lang/Boolean;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
public static final fun restrictChatMember (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ldev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/types/TelegramDate;Ldev/inmo/tgbotapi/types/chat/ChatPermissions;Ljava/lang/Boolean;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
|
public static final fun restrictChatMember (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/PublicChat;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ldev/inmo/tgbotapi/types/TelegramDate;Ldev/inmo/tgbotapi/types/chat/ChatPermissions;Ljava/lang/Boolean;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
public static final fun restrictChatMember (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/PublicChat;Ldev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/types/TelegramDate;Ldev/inmo/tgbotapi/types/chat/ChatPermissions;Ljava/lang/Boolean;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
public static final fun restrictChatMember (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/PublicChat;Ldev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/types/TelegramDate;Ldev/inmo/tgbotapi/types/chat/ChatPermissions;Ljava/lang/Boolean;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
|
public static synthetic fun restrictChatMember$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/ChatIdentifier;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ldev/inmo/tgbotapi/types/TelegramDate;Ldev/inmo/tgbotapi/types/chat/ChatPermissions;Ljava/lang/Boolean;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
||||||
public static synthetic fun restrictChatMember$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ldev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/types/TelegramDate;Ldev/inmo/tgbotapi/types/chat/ChatPermissions;Ljava/lang/Boolean;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
public static synthetic fun restrictChatMember$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ldev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/types/TelegramDate;Ldev/inmo/tgbotapi/types/chat/ChatPermissions;Ljava/lang/Boolean;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
||||||
|
public static synthetic fun restrictChatMember$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/PublicChat;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ldev/inmo/tgbotapi/types/TelegramDate;Ldev/inmo/tgbotapi/types/chat/ChatPermissions;Ljava/lang/Boolean;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
||||||
public static synthetic fun restrictChatMember$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/PublicChat;Ldev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/types/TelegramDate;Ldev/inmo/tgbotapi/types/chat/ChatPermissions;Ljava/lang/Boolean;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
public static synthetic fun restrictChatMember$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/PublicChat;Ldev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/types/TelegramDate;Ldev/inmo/tgbotapi/types/chat/ChatPermissions;Ljava/lang/Boolean;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
||||||
public static final fun restrictChatMember-qJgMyII (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/ChatIdentifier;JLdev/inmo/tgbotapi/types/TelegramDate;Ldev/inmo/tgbotapi/types/chat/ChatPermissions;Ljava/lang/Boolean;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
|
||||||
public static final fun restrictChatMember-qJgMyII (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/PublicChat;JLdev/inmo/tgbotapi/types/TelegramDate;Ldev/inmo/tgbotapi/types/chat/ChatPermissions;Ljava/lang/Boolean;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
|
||||||
public static synthetic fun restrictChatMember-qJgMyII$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/ChatIdentifier;JLdev/inmo/tgbotapi/types/TelegramDate;Ldev/inmo/tgbotapi/types/chat/ChatPermissions;Ljava/lang/Boolean;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
|
||||||
public static synthetic fun restrictChatMember-qJgMyII$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/PublicChat;JLdev/inmo/tgbotapi/types/TelegramDate;Ldev/inmo/tgbotapi/types/chat/ChatPermissions;Ljava/lang/Boolean;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public final class dev/inmo/tgbotapi/extensions/api/chat/members/SetChatAdministratorCustomTitleKt {
|
public final class dev/inmo/tgbotapi/extensions/api/chat/members/SetChatAdministratorCustomTitleKt {
|
||||||
|
public static final fun setChatAdministratorCustomTitle (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ljava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
public static final fun setChatAdministratorCustomTitle (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ldev/inmo/tgbotapi/types/chat/User;Ljava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
public static final fun setChatAdministratorCustomTitle (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ldev/inmo/tgbotapi/types/chat/User;Ljava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
|
public static final fun setChatAdministratorCustomTitle (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/PublicChat;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ljava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
public static final fun setChatAdministratorCustomTitle (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/PublicChat;Ldev/inmo/tgbotapi/types/chat/User;Ljava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
public static final fun setChatAdministratorCustomTitle (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/PublicChat;Ldev/inmo/tgbotapi/types/chat/User;Ljava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
public static final fun setChatAdministratorCustomTitle-KR8jFg0 (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;JLjava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
|
||||||
public static final fun setChatAdministratorCustomTitle-KR8jFg0 (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/PublicChat;JLjava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public final class dev/inmo/tgbotapi/extensions/api/chat/members/UnbanChatMemberKt {
|
public final class dev/inmo/tgbotapi/extensions/api/chat/members/UnbanChatMemberKt {
|
||||||
|
public static final fun unbanChatMember (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/ChatIdentifier;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ljava/lang/Boolean;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
public static final fun unbanChatMember (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ldev/inmo/tgbotapi/types/chat/User;Ljava/lang/Boolean;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
public static final fun unbanChatMember (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ldev/inmo/tgbotapi/types/chat/User;Ljava/lang/Boolean;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
|
public static final fun unbanChatMember (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/PublicChat;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ljava/lang/Boolean;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
public static final fun unbanChatMember (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/PublicChat;Ldev/inmo/tgbotapi/types/chat/User;Ljava/lang/Boolean;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
public static final fun unbanChatMember (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/PublicChat;Ldev/inmo/tgbotapi/types/chat/User;Ljava/lang/Boolean;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
|
public static synthetic fun unbanChatMember$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/ChatIdentifier;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ljava/lang/Boolean;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
||||||
public static synthetic fun unbanChatMember$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ldev/inmo/tgbotapi/types/chat/User;Ljava/lang/Boolean;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
public static synthetic fun unbanChatMember$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ldev/inmo/tgbotapi/types/chat/User;Ljava/lang/Boolean;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
||||||
|
public static synthetic fun unbanChatMember$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/PublicChat;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ljava/lang/Boolean;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
||||||
public static synthetic fun unbanChatMember$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/PublicChat;Ldev/inmo/tgbotapi/types/chat/User;Ljava/lang/Boolean;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
public static synthetic fun unbanChatMember$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/PublicChat;Ldev/inmo/tgbotapi/types/chat/User;Ljava/lang/Boolean;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
||||||
public static final fun unbanChatMember-KR8jFg0 (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/ChatIdentifier;JLjava/lang/Boolean;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
|
||||||
public static final fun unbanChatMember-KR8jFg0 (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/PublicChat;JLjava/lang/Boolean;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
|
||||||
public static synthetic fun unbanChatMember-KR8jFg0$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/ChatIdentifier;JLjava/lang/Boolean;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
|
||||||
public static synthetic fun unbanChatMember-KR8jFg0$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/PublicChat;JLjava/lang/Boolean;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public final class dev/inmo/tgbotapi/extensions/api/chat/members/UnbanChatSenderChatKt {
|
public final class dev/inmo/tgbotapi/extensions/api/chat/members/UnbanChatSenderChatKt {
|
||||||
@@ -991,11 +992,11 @@ public final class dev/inmo/tgbotapi/extensions/api/edit/media/EditInlineMessage
|
|||||||
}
|
}
|
||||||
|
|
||||||
public final class dev/inmo/tgbotapi/extensions/api/edit/payments/EditUserStarSubscriptionKt {
|
public final class dev/inmo/tgbotapi/extensions/api/edit/payments/EditUserStarSubscriptionKt {
|
||||||
public static final fun cancelUserStarSubscription-0SkZb-I (Ldev/inmo/tgbotapi/bot/RequestsExecutor;JLjava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
public static final fun cancelUserStarSubscription-AASCvMI (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ljava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
public static final fun cancelUserStarSubscription-AASCvMI (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/User;Ljava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
public static final fun cancelUserStarSubscription-AASCvMI (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/User;Ljava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
public static final fun editUserStarSubscription-0x-hEcU (Ldev/inmo/tgbotapi/bot/RequestsExecutor;JLjava/lang/String;ZLkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
public static final fun editUserStarSubscription-TFuYNzM (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ljava/lang/String;ZLkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
public static final fun editUserStarSubscription-TFuYNzM (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/User;Ljava/lang/String;ZLkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
public static final fun editUserStarSubscription-TFuYNzM (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/User;Ljava/lang/String;ZLkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
public static final fun enableUserStarSubscription-0SkZb-I (Ldev/inmo/tgbotapi/bot/RequestsExecutor;JLjava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
public static final fun enableUserStarSubscription-AASCvMI (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ljava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
public static final fun enableUserStarSubscription-AASCvMI (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/User;Ljava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
public static final fun enableUserStarSubscription-AASCvMI (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/User;Ljava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1098,38 +1099,38 @@ public final class dev/inmo/tgbotapi/extensions/api/files/DownloadFileToTempFile
|
|||||||
}
|
}
|
||||||
|
|
||||||
public final class dev/inmo/tgbotapi/extensions/api/games/GetGameHighScoresByChatKt {
|
public final class dev/inmo/tgbotapi/extensions/api/games/GetGameHighScoresByChatKt {
|
||||||
|
public static final fun getGameScore (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ldev/inmo/tgbotapi/types/message/abstracts/ContentMessage;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
public static final fun getGameScore (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/CommonUser;Ldev/inmo/tgbotapi/types/message/abstracts/ContentMessage;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
public static final fun getGameScore (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/CommonUser;Ldev/inmo/tgbotapi/types/message/abstracts/ContentMessage;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
|
public static final fun getGameScore-nIfro0c (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ldev/inmo/tgbotapi/types/IdChatIdentifier;JLkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
|
public static final fun getGameScore-nIfro0c (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ldev/inmo/tgbotapi/types/chat/Chat;JLkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
public static final fun getGameScore-nIfro0c (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/CommonUser;Ldev/inmo/tgbotapi/types/IdChatIdentifier;JLkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
public static final fun getGameScore-nIfro0c (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/CommonUser;Ldev/inmo/tgbotapi/types/IdChatIdentifier;JLkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
public static final fun getGameScore-nIfro0c (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/CommonUser;Ldev/inmo/tgbotapi/types/chat/Chat;JLkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
public static final fun getGameScore-nIfro0c (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/CommonUser;Ldev/inmo/tgbotapi/types/chat/Chat;JLkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
public static final fun getGameScore-nc95W0g (Ldev/inmo/tgbotapi/bot/RequestsExecutor;JLdev/inmo/tgbotapi/types/message/abstracts/ContentMessage;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
|
||||||
public static final fun getGameScore-rEaEB9A (Ldev/inmo/tgbotapi/bot/RequestsExecutor;JLdev/inmo/tgbotapi/types/IdChatIdentifier;JLkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
|
||||||
public static final fun getGameScore-rEaEB9A (Ldev/inmo/tgbotapi/bot/RequestsExecutor;JLdev/inmo/tgbotapi/types/chat/Chat;JLkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public final class dev/inmo/tgbotapi/extensions/api/games/GetGameHighScoresByInlineMessageIdKt {
|
public final class dev/inmo/tgbotapi/extensions/api/games/GetGameHighScoresByInlineMessageIdKt {
|
||||||
|
public static final fun getGameScore-GfoqsF4 (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ljava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
public static final fun getGameScore-GfoqsF4 (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/CommonUser;Ljava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
public static final fun getGameScore-GfoqsF4 (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/CommonUser;Ljava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
public static final fun getGameScore-ujMAGLQ (Ldev/inmo/tgbotapi/bot/RequestsExecutor;JLjava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public final class dev/inmo/tgbotapi/extensions/api/games/SetGameScoreByChatIdKt {
|
public final class dev/inmo/tgbotapi/extensions/api/games/SetGameScoreByChatIdKt {
|
||||||
|
public static final fun setGameScore (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;JLdev/inmo/tgbotapi/types/message/abstracts/ContentMessage;ZZLkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
public static final fun setGameScore (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/CommonUser;JLdev/inmo/tgbotapi/types/message/abstracts/ContentMessage;ZZLkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
public static final fun setGameScore (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/CommonUser;JLdev/inmo/tgbotapi/types/message/abstracts/ContentMessage;ZZLkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
|
public static synthetic fun setGameScore$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;JLdev/inmo/tgbotapi/types/message/abstracts/ContentMessage;ZZLkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
||||||
public static synthetic fun setGameScore$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/CommonUser;JLdev/inmo/tgbotapi/types/message/abstracts/ContentMessage;ZZLkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
public static synthetic fun setGameScore$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/CommonUser;JLdev/inmo/tgbotapi/types/message/abstracts/ContentMessage;ZZLkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
||||||
public static final fun setGameScore-VjR9mJc (Ldev/inmo/tgbotapi/bot/RequestsExecutor;JJLdev/inmo/tgbotapi/types/message/abstracts/ContentMessage;ZZLkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
public static final fun setGameScore-ti5m_QQ (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;JLdev/inmo/tgbotapi/types/IdChatIdentifier;JZZLkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
public static synthetic fun setGameScore-VjR9mJc$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;JJLdev/inmo/tgbotapi/types/message/abstracts/ContentMessage;ZZLkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
public static final fun setGameScore-ti5m_QQ (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;JLdev/inmo/tgbotapi/types/chat/Chat;JZZLkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
public static final fun setGameScore-ti5m_QQ (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/CommonUser;JLdev/inmo/tgbotapi/types/IdChatIdentifier;JZZLkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
public static final fun setGameScore-ti5m_QQ (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/CommonUser;JLdev/inmo/tgbotapi/types/IdChatIdentifier;JZZLkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
public static final fun setGameScore-ti5m_QQ (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/CommonUser;JLdev/inmo/tgbotapi/types/chat/Chat;JZZLkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
public static final fun setGameScore-ti5m_QQ (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/CommonUser;JLdev/inmo/tgbotapi/types/chat/Chat;JZZLkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
|
public static synthetic fun setGameScore-ti5m_QQ$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;JLdev/inmo/tgbotapi/types/IdChatIdentifier;JZZLkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
||||||
|
public static synthetic fun setGameScore-ti5m_QQ$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;JLdev/inmo/tgbotapi/types/chat/Chat;JZZLkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
||||||
public static synthetic fun setGameScore-ti5m_QQ$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/CommonUser;JLdev/inmo/tgbotapi/types/IdChatIdentifier;JZZLkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
public static synthetic fun setGameScore-ti5m_QQ$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/CommonUser;JLdev/inmo/tgbotapi/types/IdChatIdentifier;JZZLkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
||||||
public static synthetic fun setGameScore-ti5m_QQ$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/CommonUser;JLdev/inmo/tgbotapi/types/chat/Chat;JZZLkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
public static synthetic fun setGameScore-ti5m_QQ$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/CommonUser;JLdev/inmo/tgbotapi/types/chat/Chat;JZZLkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
||||||
public static final fun setGameScore-v8Ltouw (Ldev/inmo/tgbotapi/bot/RequestsExecutor;JJLdev/inmo/tgbotapi/types/IdChatIdentifier;JZZLkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
|
||||||
public static final fun setGameScore-v8Ltouw (Ldev/inmo/tgbotapi/bot/RequestsExecutor;JJLdev/inmo/tgbotapi/types/chat/Chat;JZZLkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
|
||||||
public static synthetic fun setGameScore-v8Ltouw$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;JJLdev/inmo/tgbotapi/types/IdChatIdentifier;JZZLkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
|
||||||
public static synthetic fun setGameScore-v8Ltouw$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;JJLdev/inmo/tgbotapi/types/chat/Chat;JZZLkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public final class dev/inmo/tgbotapi/extensions/api/games/SetGameScoreByInlineMessageIdKt {
|
public final class dev/inmo/tgbotapi/extensions/api/games/SetGameScoreByInlineMessageIdKt {
|
||||||
public static final fun setGameScore-rJjffU4 (Ldev/inmo/tgbotapi/bot/RequestsExecutor;JJLjava/lang/String;ZZLkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
public static final fun setGameScore-zwYr1CI (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;JLjava/lang/String;ZZLkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
public static synthetic fun setGameScore-rJjffU4$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;JJLjava/lang/String;ZZLkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
|
||||||
public static final fun setGameScore-zwYr1CI (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/CommonUser;JLjava/lang/String;ZZLkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
public static final fun setGameScore-zwYr1CI (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/CommonUser;JLjava/lang/String;ZZLkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
|
public static synthetic fun setGameScore-zwYr1CI$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;JLjava/lang/String;ZZLkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
||||||
public static synthetic fun setGameScore-zwYr1CI$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/CommonUser;JLjava/lang/String;ZZLkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
public static synthetic fun setGameScore-zwYr1CI$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/CommonUser;JLjava/lang/String;ZZLkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1166,15 +1167,15 @@ public final class dev/inmo/tgbotapi/extensions/api/get/GetStickerSetKt {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public final class dev/inmo/tgbotapi/extensions/api/get/GetUserChatBoostsKt {
|
public final class dev/inmo/tgbotapi/extensions/api/get/GetUserChatBoostsKt {
|
||||||
public static final fun getUserChatBoosts-Ugw2it0 (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/ChatIdentifier;JLkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
public static final fun getUserChatBoosts (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/ChatIdentifier;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
public static final fun getUserChatBoosts-Ugw2it0 (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/Chat;JLkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
public static final fun getUserChatBoosts (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/Chat;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
}
|
}
|
||||||
|
|
||||||
public final class dev/inmo/tgbotapi/extensions/api/get/GetUserProfilePhotosKt {
|
public final class dev/inmo/tgbotapi/extensions/api/get/GetUserProfilePhotosKt {
|
||||||
|
public static final fun getUserProfilePhotos (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ljava/lang/Integer;Ljava/lang/Integer;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
public static final fun getUserProfilePhotos (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/CommonUser;Ljava/lang/Integer;Ljava/lang/Integer;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
public static final fun getUserProfilePhotos (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/CommonUser;Ljava/lang/Integer;Ljava/lang/Integer;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
|
public static synthetic fun getUserProfilePhotos$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ljava/lang/Integer;Ljava/lang/Integer;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
||||||
public static synthetic fun getUserProfilePhotos$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/CommonUser;Ljava/lang/Integer;Ljava/lang/Integer;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
public static synthetic fun getUserProfilePhotos$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/CommonUser;Ljava/lang/Integer;Ljava/lang/Integer;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
||||||
public static final fun getUserProfilePhotos-4iNBclM (Ldev/inmo/tgbotapi/bot/RequestsExecutor;JLjava/lang/Integer;Ljava/lang/Integer;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
|
||||||
public static synthetic fun getUserProfilePhotos-4iNBclM$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;JLjava/lang/Integer;Ljava/lang/Integer;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public final class dev/inmo/tgbotapi/extensions/api/gifts/GetAvailableGiftsKt {
|
public final class dev/inmo/tgbotapi/extensions/api/gifts/GetAvailableGiftsKt {
|
||||||
@@ -1182,28 +1183,28 @@ public final class dev/inmo/tgbotapi/extensions/api/gifts/GetAvailableGiftsKt {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public final class dev/inmo/tgbotapi/extensions/api/gifts/GiftPremiumSubscriptionKt {
|
public final class dev/inmo/tgbotapi/extensions/api/gifts/GiftPremiumSubscriptionKt {
|
||||||
public static final fun giftPremiumSubscription-VjR9mJc (Ldev/inmo/tgbotapi/bot/RequestsExecutor;JIILdev/inmo/tgbotapi/types/message/textsources/TextSource;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
public static final fun giftPremiumSubscription (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;IILdev/inmo/tgbotapi/types/message/textsources/TextSource;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
public static final fun giftPremiumSubscription-VjR9mJc (Ldev/inmo/tgbotapi/bot/RequestsExecutor;JIILjava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
public static final fun giftPremiumSubscription (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;IILjava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
public static synthetic fun giftPremiumSubscription-VjR9mJc$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;JIILdev/inmo/tgbotapi/types/message/textsources/TextSource;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
public static final fun giftPremiumSubscription (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;IILjava/util/List;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
public static synthetic fun giftPremiumSubscription-VjR9mJc$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;JIILjava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
public static synthetic fun giftPremiumSubscription$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;IILdev/inmo/tgbotapi/types/message/textsources/TextSource;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
||||||
public static final fun giftPremiumSubscription-ySMgKnk (Ldev/inmo/tgbotapi/bot/RequestsExecutor;JIILjava/util/List;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
public static synthetic fun giftPremiumSubscription$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;IILjava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
||||||
public static synthetic fun giftPremiumSubscription-ySMgKnk$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;JIILjava/util/List;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
public static synthetic fun giftPremiumSubscription$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;IILjava/util/List;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
||||||
}
|
}
|
||||||
|
|
||||||
public final class dev/inmo/tgbotapi/extensions/api/gifts/SendGiftGeneratedVariationKt {
|
public final class dev/inmo/tgbotapi/extensions/api/gifts/SendGiftGeneratedVariationKt {
|
||||||
|
public static final fun sendGift (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ldev/inmo/tgbotapi/types/gifts/Gift$Regular;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
|
public static final fun sendGift (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ldev/inmo/tgbotapi/types/gifts/Gift$Regular;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;ZLkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
public static final fun sendGift (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/types/gifts/Gift$Regular;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
public static final fun sendGift (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/types/gifts/Gift$Regular;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
public static final fun sendGift (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/types/gifts/Gift$Regular;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;ZLkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
public static final fun sendGift (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/types/gifts/Gift$Regular;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;ZLkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
public static final fun sendGift-0SDnvgk (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/User;Ljava/lang/String;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;ZLkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
public static final fun sendGift-0SDnvgk (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/User;Ljava/lang/String;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;ZLkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
public static final fun sendGift-GROm3fU (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/User;Ljava/lang/String;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
public static final fun sendGift-GROm3fU (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/User;Ljava/lang/String;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
public static final fun sendGift-VjR9mJc (Ldev/inmo/tgbotapi/bot/RequestsExecutor;JLdev/inmo/tgbotapi/types/gifts/Gift$Regular;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;ZLkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
|
||||||
public static final fun sendGift-ySMgKnk (Ldev/inmo/tgbotapi/bot/RequestsExecutor;JLdev/inmo/tgbotapi/types/gifts/Gift$Regular;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public final class dev/inmo/tgbotapi/extensions/api/gifts/SendGiftKt {
|
public final class dev/inmo/tgbotapi/extensions/api/gifts/SendGiftKt {
|
||||||
public static final fun sendGift-1FWvrZc (Ldev/inmo/tgbotapi/bot/RequestsExecutor;JLjava/lang/String;Ljava/util/List;ZLkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
public static final fun sendGift-0SDnvgk (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ljava/lang/String;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;ZLkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
public static synthetic fun sendGift-1FWvrZc$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;JLjava/lang/String;Ljava/util/List;ZLkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
public static synthetic fun sendGift-0SDnvgk$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ljava/lang/String;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;ZLkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
||||||
public static final fun sendGift-CrS58cM (Ldev/inmo/tgbotapi/bot/RequestsExecutor;JLjava/lang/String;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;ZLkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
public static final fun sendGift-GROm3fU (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ljava/lang/String;Ljava/util/List;ZLkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
public static synthetic fun sendGift-CrS58cM$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;JLjava/lang/String;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;ZLkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
public static synthetic fun sendGift-GROm3fU$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ljava/lang/String;Ljava/util/List;ZLkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
||||||
public static final fun sendGiftToChat-0SDnvgk (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/ChatIdentifier;Ljava/lang/String;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;ZLkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
public static final fun sendGiftToChat-0SDnvgk (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/ChatIdentifier;Ljava/lang/String;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;ZLkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
public static synthetic fun sendGiftToChat-0SDnvgk$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/ChatIdentifier;Ljava/lang/String;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;ZLkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
public static synthetic fun sendGiftToChat-0SDnvgk$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/ChatIdentifier;Ljava/lang/String;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;ZLkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
||||||
public static final fun sendGiftToChat-GROm3fU (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/ChatIdentifier;Ljava/lang/String;Ljava/util/List;ZLkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
public static final fun sendGiftToChat-GROm3fU (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/ChatIdentifier;Ljava/lang/String;Ljava/util/List;ZLkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
@@ -1220,18 +1221,18 @@ public final class dev/inmo/tgbotapi/extensions/api/gifts/SendGiftToChatGenerate
|
|||||||
}
|
}
|
||||||
|
|
||||||
public final class dev/inmo/tgbotapi/extensions/api/inline/SavePreparedInlineMessageKt {
|
public final class dev/inmo/tgbotapi/extensions/api/inline/SavePreparedInlineMessageKt {
|
||||||
|
public static final fun savePreparedInlineMessage (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ldev/inmo/tgbotapi/types/InlineQueries/InlineQueryResult/abstracts/InlineQueryResult;ZZZZLkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
public static final fun savePreparedInlineMessage (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/types/InlineQueries/InlineQueryResult/abstracts/InlineQueryResult;ZZZZLkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
public static final fun savePreparedInlineMessage (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/types/InlineQueries/InlineQueryResult/abstracts/InlineQueryResult;ZZZZLkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
|
public static synthetic fun savePreparedInlineMessage$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ldev/inmo/tgbotapi/types/InlineQueries/InlineQueryResult/abstracts/InlineQueryResult;ZZZZLkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
||||||
public static synthetic fun savePreparedInlineMessage$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/types/InlineQueries/InlineQueryResult/abstracts/InlineQueryResult;ZZZZLkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
public static synthetic fun savePreparedInlineMessage$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/types/InlineQueries/InlineQueryResult/abstracts/InlineQueryResult;ZZZZLkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
||||||
public static final fun savePreparedInlineMessage-W2FzMBY (Ldev/inmo/tgbotapi/bot/RequestsExecutor;JLdev/inmo/tgbotapi/types/InlineQueries/InlineQueryResult/abstracts/InlineQueryResult;ZZZZLkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
|
||||||
public static synthetic fun savePreparedInlineMessage-W2FzMBY$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;JLdev/inmo/tgbotapi/types/InlineQueries/InlineQueryResult/abstracts/InlineQueryResult;ZZZZLkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public final class dev/inmo/tgbotapi/extensions/api/passport/SetPassportDataErrorsKt {
|
public final class dev/inmo/tgbotapi/extensions/api/passport/SetPassportDataErrorsKt {
|
||||||
|
public static final fun setPassportDataErrors (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ldev/inmo/tgbotapi/types/passport/PassportData;Ldev/inmo/tgbotapi/utils/passport/Decryptor;Lkotlin/jvm/functions/Function3;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
|
public static final fun setPassportDataErrors (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ljava/util/List;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
public static final fun setPassportDataErrors (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/types/passport/PassportData;Ldev/inmo/tgbotapi/utils/passport/Decryptor;Lkotlin/jvm/functions/Function3;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
public static final fun setPassportDataErrors (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/types/passport/PassportData;Ldev/inmo/tgbotapi/utils/passport/Decryptor;Lkotlin/jvm/functions/Function3;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
public static final fun setPassportDataErrors (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/User;Ljava/util/List;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
public static final fun setPassportDataErrors (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/User;Ljava/util/List;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
public static final fun setPassportDataErrors (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/message/PassportMessage;Ldev/inmo/tgbotapi/utils/passport/Decryptor;Lkotlin/jvm/functions/Function3;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
public static final fun setPassportDataErrors (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/message/PassportMessage;Ldev/inmo/tgbotapi/utils/passport/Decryptor;Lkotlin/jvm/functions/Function3;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
public static final fun setPassportDataErrors-nc95W0g (Ldev/inmo/tgbotapi/bot/RequestsExecutor;JLjava/util/List;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
|
||||||
public static final fun setPassportDataErrors-ySMgKnk (Ldev/inmo/tgbotapi/bot/RequestsExecutor;JLdev/inmo/tgbotapi/types/passport/PassportData;Ldev/inmo/tgbotapi/utils/passport/Decryptor;Lkotlin/jvm/functions/Function3;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public final class dev/inmo/tgbotapi/extensions/api/send/CopyMessageKt {
|
public final class dev/inmo/tgbotapi/extensions/api/send/CopyMessageKt {
|
||||||
@@ -1764,6 +1765,32 @@ public final class dev/inmo/tgbotapi/extensions/api/send/SendLiveLocationKt {
|
|||||||
public static synthetic fun sendLocation-xV04fPk$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/Chat;Ldev/inmo/tgbotapi/types/location/Location;ILjava/lang/Float;Ljava/lang/Integer;Ljava/lang/Float;Ldev/inmo/tgbotapi/types/MessageThreadId;Ldev/inmo/tgbotapi/types/DirectMessageThreadId;Ljava/lang/String;ZZZLjava/lang/String;Ldev/inmo/tgbotapi/types/message/SuggestedPostParameters;Ldev/inmo/tgbotapi/types/ReplyParameters;Ldev/inmo/tgbotapi/types/buttons/KeyboardMarkup;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
public static synthetic fun sendLocation-xV04fPk$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/Chat;Ldev/inmo/tgbotapi/types/location/Location;ILjava/lang/Float;Ljava/lang/Integer;Ljava/lang/Float;Ldev/inmo/tgbotapi/types/MessageThreadId;Ldev/inmo/tgbotapi/types/DirectMessageThreadId;Ljava/lang/String;ZZZLjava/lang/String;Ldev/inmo/tgbotapi/types/message/SuggestedPostParameters;Ldev/inmo/tgbotapi/types/ReplyParameters;Ldev/inmo/tgbotapi/types/buttons/KeyboardMarkup;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public final class dev/inmo/tgbotapi/extensions/api/send/SendMessageDraftKt {
|
||||||
|
public static final fun getGlobalDraftIdAllocator ()Ldev/inmo/tgbotapi/utils/DraftIdAllocator;
|
||||||
|
public static final fun sendMessageDraft-85jglgs (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;JLjava/util/List;Ldev/inmo/tgbotapi/types/MessageThreadId;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
|
public static final fun sendMessageDraft-85jglgs (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/Chat;JLjava/util/List;Ldev/inmo/tgbotapi/types/MessageThreadId;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
|
public static synthetic fun sendMessageDraft-85jglgs$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;JLjava/util/List;Ldev/inmo/tgbotapi/types/MessageThreadId;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
||||||
|
public static synthetic fun sendMessageDraft-85jglgs$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/Chat;JLjava/util/List;Ldev/inmo/tgbotapi/types/MessageThreadId;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
||||||
|
public static final fun sendMessageDraft-OYtvHtc (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;JLdev/inmo/tgbotapi/types/message/textsources/TextSource;Ldev/inmo/tgbotapi/types/MessageThreadId;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
|
public static final fun sendMessageDraft-OYtvHtc (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;JLjava/lang/String;Ldev/inmo/tgbotapi/types/MessageThreadId;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
|
public static final fun sendMessageDraft-OYtvHtc (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/Chat;JLdev/inmo/tgbotapi/types/message/textsources/TextSource;Ldev/inmo/tgbotapi/types/MessageThreadId;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
|
public static final fun sendMessageDraft-OYtvHtc (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/Chat;JLjava/lang/String;Ldev/inmo/tgbotapi/types/MessageThreadId;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
|
public static synthetic fun sendMessageDraft-OYtvHtc$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;JLdev/inmo/tgbotapi/types/message/textsources/TextSource;Ldev/inmo/tgbotapi/types/MessageThreadId;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
||||||
|
public static synthetic fun sendMessageDraft-OYtvHtc$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;JLjava/lang/String;Ldev/inmo/tgbotapi/types/MessageThreadId;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
||||||
|
public static synthetic fun sendMessageDraft-OYtvHtc$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/Chat;JLdev/inmo/tgbotapi/types/message/textsources/TextSource;Ldev/inmo/tgbotapi/types/MessageThreadId;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
||||||
|
public static synthetic fun sendMessageDraft-OYtvHtc$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/Chat;JLjava/lang/String;Ldev/inmo/tgbotapi/types/MessageThreadId;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
||||||
|
public static final fun sendMessageDraft-PjdzSgQ (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;JLjava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;Ldev/inmo/tgbotapi/types/MessageThreadId;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
|
public static final fun sendMessageDraft-PjdzSgQ (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/Chat;JLjava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;Ldev/inmo/tgbotapi/types/MessageThreadId;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
|
public static synthetic fun sendMessageDraft-PjdzSgQ$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;JLjava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;Ldev/inmo/tgbotapi/types/MessageThreadId;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
||||||
|
public static synthetic fun sendMessageDraft-PjdzSgQ$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/Chat;JLjava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;Ldev/inmo/tgbotapi/types/MessageThreadId;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
||||||
|
public static final fun sendMessageDraftFlow-lJCFx7I (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Lkotlinx/coroutines/flow/Flow;Ldev/inmo/tgbotapi/types/MessageThreadId;Ldev/inmo/tgbotapi/types/DraftId;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
|
public static synthetic fun sendMessageDraftFlow-lJCFx7I$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Lkotlinx/coroutines/flow/Flow;Ldev/inmo/tgbotapi/types/MessageThreadId;Ldev/inmo/tgbotapi/types/DraftId;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
||||||
|
public static final fun sendMessageDraftFlowWithTexts-lJCFx7I (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Lkotlinx/coroutines/flow/Flow;Ldev/inmo/tgbotapi/types/MessageThreadId;Ldev/inmo/tgbotapi/types/DraftId;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
|
public static synthetic fun sendMessageDraftFlowWithTexts-lJCFx7I$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Lkotlinx/coroutines/flow/Flow;Ldev/inmo/tgbotapi/types/MessageThreadId;Ldev/inmo/tgbotapi/types/DraftId;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
||||||
|
public static final fun sendMessageDraftFlowWithTextsAndParseMode-lJCFx7I (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Lkotlinx/coroutines/flow/Flow;Ldev/inmo/tgbotapi/types/MessageThreadId;Ldev/inmo/tgbotapi/types/DraftId;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
|
public static synthetic fun sendMessageDraftFlowWithTextsAndParseMode-lJCFx7I$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Lkotlinx/coroutines/flow/Flow;Ldev/inmo/tgbotapi/types/MessageThreadId;Ldev/inmo/tgbotapi/types/DraftId;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
||||||
|
}
|
||||||
|
|
||||||
public final class dev/inmo/tgbotapi/extensions/api/send/SendMessageKt {
|
public final class dev/inmo/tgbotapi/extensions/api/send/SendMessageKt {
|
||||||
public static final fun sendMessage-EUozXF4 (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/ChatIdentifier;Ldev/inmo/tgbotapi/types/message/textsources/TextSource;Ldev/inmo/tgbotapi/types/LinkPreviewOptions;Ldev/inmo/tgbotapi/types/MessageThreadId;Ldev/inmo/tgbotapi/types/DirectMessageThreadId;Ljava/lang/String;ZZZLjava/lang/String;Ldev/inmo/tgbotapi/types/message/SuggestedPostParameters;Ldev/inmo/tgbotapi/types/ReplyParameters;Ldev/inmo/tgbotapi/types/buttons/KeyboardMarkup;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
public static final fun sendMessage-EUozXF4 (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/ChatIdentifier;Ldev/inmo/tgbotapi/types/message/textsources/TextSource;Ldev/inmo/tgbotapi/types/LinkPreviewOptions;Ldev/inmo/tgbotapi/types/MessageThreadId;Ldev/inmo/tgbotapi/types/DirectMessageThreadId;Ljava/lang/String;ZZZLjava/lang/String;Ldev/inmo/tgbotapi/types/message/SuggestedPostParameters;Ldev/inmo/tgbotapi/types/ReplyParameters;Ldev/inmo/tgbotapi/types/buttons/KeyboardMarkup;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
public static final fun sendMessage-EUozXF4 (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/ChatIdentifier;Ljava/lang/String;Ldev/inmo/tgbotapi/types/LinkPreviewOptions;Ldev/inmo/tgbotapi/types/MessageThreadId;Ldev/inmo/tgbotapi/types/DirectMessageThreadId;Ljava/lang/String;ZZZLjava/lang/String;Ldev/inmo/tgbotapi/types/message/SuggestedPostParameters;Ldev/inmo/tgbotapi/types/ReplyParameters;Ldev/inmo/tgbotapi/types/buttons/KeyboardMarkup;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
public static final fun sendMessage-EUozXF4 (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/ChatIdentifier;Ljava/lang/String;Ldev/inmo/tgbotapi/types/LinkPreviewOptions;Ldev/inmo/tgbotapi/types/MessageThreadId;Ldev/inmo/tgbotapi/types/DirectMessageThreadId;Ljava/lang/String;ZZZLjava/lang/String;Ldev/inmo/tgbotapi/types/message/SuggestedPostParameters;Ldev/inmo/tgbotapi/types/ReplyParameters;Ldev/inmo/tgbotapi/types/buttons/KeyboardMarkup;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
@@ -1842,6 +1869,10 @@ public final class dev/inmo/tgbotapi/extensions/api/send/SendsKt {
|
|||||||
public static final fun send-6LrTU6Q (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/Chat;ILjava/util/List;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;Ljava/lang/String;ZLdev/inmo/tgbotapi/types/MessageThreadId;Ldev/inmo/tgbotapi/types/DirectMessageThreadId;Ljava/lang/String;ZZZLdev/inmo/tgbotapi/types/message/SuggestedPostParameters;Ldev/inmo/tgbotapi/types/ReplyParameters;Ldev/inmo/tgbotapi/types/buttons/KeyboardMarkup;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
public static final fun send-6LrTU6Q (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/Chat;ILjava/util/List;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;Ljava/lang/String;ZLdev/inmo/tgbotapi/types/MessageThreadId;Ldev/inmo/tgbotapi/types/DirectMessageThreadId;Ljava/lang/String;ZZZLdev/inmo/tgbotapi/types/message/SuggestedPostParameters;Ldev/inmo/tgbotapi/types/ReplyParameters;Ldev/inmo/tgbotapi/types/buttons/KeyboardMarkup;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
public static synthetic fun send-6LrTU6Q$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/ChatIdentifier;ILjava/util/List;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;Ljava/lang/String;ZLdev/inmo/tgbotapi/types/MessageThreadId;Ldev/inmo/tgbotapi/types/DirectMessageThreadId;Ljava/lang/String;ZZZLdev/inmo/tgbotapi/types/message/SuggestedPostParameters;Ldev/inmo/tgbotapi/types/ReplyParameters;Ldev/inmo/tgbotapi/types/buttons/KeyboardMarkup;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
public static synthetic fun send-6LrTU6Q$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/ChatIdentifier;ILjava/util/List;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;Ljava/lang/String;ZLdev/inmo/tgbotapi/types/MessageThreadId;Ldev/inmo/tgbotapi/types/DirectMessageThreadId;Ljava/lang/String;ZZZLdev/inmo/tgbotapi/types/message/SuggestedPostParameters;Ldev/inmo/tgbotapi/types/ReplyParameters;Ldev/inmo/tgbotapi/types/buttons/KeyboardMarkup;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
||||||
public static synthetic fun send-6LrTU6Q$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/Chat;ILjava/util/List;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;Ljava/lang/String;ZLdev/inmo/tgbotapi/types/MessageThreadId;Ldev/inmo/tgbotapi/types/DirectMessageThreadId;Ljava/lang/String;ZZZLdev/inmo/tgbotapi/types/message/SuggestedPostParameters;Ldev/inmo/tgbotapi/types/ReplyParameters;Ldev/inmo/tgbotapi/types/buttons/KeyboardMarkup;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
public static synthetic fun send-6LrTU6Q$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/Chat;ILjava/util/List;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;Ljava/lang/String;ZLdev/inmo/tgbotapi/types/MessageThreadId;Ldev/inmo/tgbotapi/types/DirectMessageThreadId;Ljava/lang/String;ZZZLdev/inmo/tgbotapi/types/message/SuggestedPostParameters;Ldev/inmo/tgbotapi/types/ReplyParameters;Ldev/inmo/tgbotapi/types/buttons/KeyboardMarkup;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
||||||
|
public static final fun send-85jglgs (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;JLjava/util/List;Ldev/inmo/tgbotapi/types/MessageThreadId;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
|
public static final fun send-85jglgs (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/Chat;JLjava/util/List;Ldev/inmo/tgbotapi/types/MessageThreadId;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
|
public static synthetic fun send-85jglgs$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;JLjava/util/List;Ldev/inmo/tgbotapi/types/MessageThreadId;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
||||||
|
public static synthetic fun send-85jglgs$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/Chat;JLjava/util/List;Ldev/inmo/tgbotapi/types/MessageThreadId;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
||||||
public static final fun send-B42rpK4 (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/ChatIdentifier;Ljava/util/List;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;ZZLdev/inmo/tgbotapi/types/MessageThreadId;Ldev/inmo/tgbotapi/types/DirectMessageThreadId;Ljava/lang/String;ZZZLjava/lang/String;Ldev/inmo/tgbotapi/types/message/SuggestedPostParameters;Ldev/inmo/tgbotapi/types/ReplyParameters;Ldev/inmo/tgbotapi/types/buttons/KeyboardMarkup;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
public static final fun send-B42rpK4 (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/ChatIdentifier;Ljava/util/List;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;ZZLdev/inmo/tgbotapi/types/MessageThreadId;Ldev/inmo/tgbotapi/types/DirectMessageThreadId;Ljava/lang/String;ZZZLjava/lang/String;Ldev/inmo/tgbotapi/types/message/SuggestedPostParameters;Ldev/inmo/tgbotapi/types/ReplyParameters;Ldev/inmo/tgbotapi/types/buttons/KeyboardMarkup;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
public static final fun send-B42rpK4 (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/Chat;Ljava/util/List;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;ZZLdev/inmo/tgbotapi/types/MessageThreadId;Ldev/inmo/tgbotapi/types/DirectMessageThreadId;Ljava/lang/String;ZZZLjava/lang/String;Ldev/inmo/tgbotapi/types/message/SuggestedPostParameters;Ldev/inmo/tgbotapi/types/ReplyParameters;Ldev/inmo/tgbotapi/types/buttons/KeyboardMarkup;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
public static final fun send-B42rpK4 (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/Chat;Ljava/util/List;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;ZZLdev/inmo/tgbotapi/types/MessageThreadId;Ldev/inmo/tgbotapi/types/DirectMessageThreadId;Ljava/lang/String;ZZZLjava/lang/String;Ldev/inmo/tgbotapi/types/message/SuggestedPostParameters;Ldev/inmo/tgbotapi/types/ReplyParameters;Ldev/inmo/tgbotapi/types/buttons/KeyboardMarkup;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
public static synthetic fun send-B42rpK4$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/ChatIdentifier;Ljava/util/List;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;ZZLdev/inmo/tgbotapi/types/MessageThreadId;Ldev/inmo/tgbotapi/types/DirectMessageThreadId;Ljava/lang/String;ZZZLjava/lang/String;Ldev/inmo/tgbotapi/types/message/SuggestedPostParameters;Ldev/inmo/tgbotapi/types/ReplyParameters;Ldev/inmo/tgbotapi/types/buttons/KeyboardMarkup;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
public static synthetic fun send-B42rpK4$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/ChatIdentifier;Ljava/util/List;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;ZZLdev/inmo/tgbotapi/types/MessageThreadId;Ldev/inmo/tgbotapi/types/DirectMessageThreadId;Ljava/lang/String;ZZZLjava/lang/String;Ldev/inmo/tgbotapi/types/message/SuggestedPostParameters;Ldev/inmo/tgbotapi/types/ReplyParameters;Ldev/inmo/tgbotapi/types/buttons/KeyboardMarkup;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
||||||
@@ -1896,6 +1927,18 @@ public final class dev/inmo/tgbotapi/extensions/api/send/SendsKt {
|
|||||||
public static final fun send-OEhgwS8 (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/Chat;ILjava/util/List;Ljava/util/List;Ljava/lang/String;ZLdev/inmo/tgbotapi/types/MessageThreadId;Ldev/inmo/tgbotapi/types/DirectMessageThreadId;Ljava/lang/String;ZZZLdev/inmo/tgbotapi/types/message/SuggestedPostParameters;Ldev/inmo/tgbotapi/types/ReplyParameters;Ldev/inmo/tgbotapi/types/buttons/KeyboardMarkup;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
public static final fun send-OEhgwS8 (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/Chat;ILjava/util/List;Ljava/util/List;Ljava/lang/String;ZLdev/inmo/tgbotapi/types/MessageThreadId;Ldev/inmo/tgbotapi/types/DirectMessageThreadId;Ljava/lang/String;ZZZLdev/inmo/tgbotapi/types/message/SuggestedPostParameters;Ldev/inmo/tgbotapi/types/ReplyParameters;Ldev/inmo/tgbotapi/types/buttons/KeyboardMarkup;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
public static synthetic fun send-OEhgwS8$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/ChatIdentifier;ILjava/util/List;Ljava/util/List;Ljava/lang/String;ZLdev/inmo/tgbotapi/types/MessageThreadId;Ldev/inmo/tgbotapi/types/DirectMessageThreadId;Ljava/lang/String;ZZZLdev/inmo/tgbotapi/types/message/SuggestedPostParameters;Ldev/inmo/tgbotapi/types/ReplyParameters;Ldev/inmo/tgbotapi/types/buttons/KeyboardMarkup;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
public static synthetic fun send-OEhgwS8$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/ChatIdentifier;ILjava/util/List;Ljava/util/List;Ljava/lang/String;ZLdev/inmo/tgbotapi/types/MessageThreadId;Ldev/inmo/tgbotapi/types/DirectMessageThreadId;Ljava/lang/String;ZZZLdev/inmo/tgbotapi/types/message/SuggestedPostParameters;Ldev/inmo/tgbotapi/types/ReplyParameters;Ldev/inmo/tgbotapi/types/buttons/KeyboardMarkup;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
||||||
public static synthetic fun send-OEhgwS8$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/Chat;ILjava/util/List;Ljava/util/List;Ljava/lang/String;ZLdev/inmo/tgbotapi/types/MessageThreadId;Ldev/inmo/tgbotapi/types/DirectMessageThreadId;Ljava/lang/String;ZZZLdev/inmo/tgbotapi/types/message/SuggestedPostParameters;Ldev/inmo/tgbotapi/types/ReplyParameters;Ldev/inmo/tgbotapi/types/buttons/KeyboardMarkup;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
public static synthetic fun send-OEhgwS8$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/Chat;ILjava/util/List;Ljava/util/List;Ljava/lang/String;ZLdev/inmo/tgbotapi/types/MessageThreadId;Ldev/inmo/tgbotapi/types/DirectMessageThreadId;Ljava/lang/String;ZZZLdev/inmo/tgbotapi/types/message/SuggestedPostParameters;Ldev/inmo/tgbotapi/types/ReplyParameters;Ldev/inmo/tgbotapi/types/buttons/KeyboardMarkup;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
||||||
|
public static final fun send-OYtvHtc (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;JLdev/inmo/tgbotapi/types/message/textsources/TextSource;Ldev/inmo/tgbotapi/types/MessageThreadId;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
|
public static final fun send-OYtvHtc (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;JLjava/lang/String;Ldev/inmo/tgbotapi/types/MessageThreadId;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
|
public static final fun send-OYtvHtc (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/Chat;JLdev/inmo/tgbotapi/types/message/textsources/TextSource;Ldev/inmo/tgbotapi/types/MessageThreadId;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
|
public static final fun send-OYtvHtc (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/Chat;JLjava/lang/String;Ldev/inmo/tgbotapi/types/MessageThreadId;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
|
public static synthetic fun send-OYtvHtc$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;JLdev/inmo/tgbotapi/types/message/textsources/TextSource;Ldev/inmo/tgbotapi/types/MessageThreadId;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
||||||
|
public static synthetic fun send-OYtvHtc$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;JLjava/lang/String;Ldev/inmo/tgbotapi/types/MessageThreadId;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
||||||
|
public static synthetic fun send-OYtvHtc$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/Chat;JLdev/inmo/tgbotapi/types/message/textsources/TextSource;Ldev/inmo/tgbotapi/types/MessageThreadId;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
||||||
|
public static synthetic fun send-OYtvHtc$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/Chat;JLjava/lang/String;Ldev/inmo/tgbotapi/types/MessageThreadId;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
||||||
|
public static final fun send-PjdzSgQ (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;JLjava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;Ldev/inmo/tgbotapi/types/MessageThreadId;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
|
public static final fun send-PjdzSgQ (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/Chat;JLjava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;Ldev/inmo/tgbotapi/types/MessageThreadId;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
|
public static synthetic fun send-PjdzSgQ$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;JLjava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;Ldev/inmo/tgbotapi/types/MessageThreadId;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
||||||
|
public static synthetic fun send-PjdzSgQ$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/Chat;JLjava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;Ldev/inmo/tgbotapi/types/MessageThreadId;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
||||||
public static final fun send-Rhn938o (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/ChatIdentifier;DDILjava/lang/Float;Ljava/lang/Integer;Ljava/lang/Float;Ldev/inmo/tgbotapi/types/MessageThreadId;Ldev/inmo/tgbotapi/types/DirectMessageThreadId;Ljava/lang/String;ZZZLjava/lang/String;Ldev/inmo/tgbotapi/types/message/SuggestedPostParameters;Ldev/inmo/tgbotapi/types/ReplyParameters;Ldev/inmo/tgbotapi/types/buttons/KeyboardMarkup;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
public static final fun send-Rhn938o (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/ChatIdentifier;DDILjava/lang/Float;Ljava/lang/Integer;Ljava/lang/Float;Ldev/inmo/tgbotapi/types/MessageThreadId;Ldev/inmo/tgbotapi/types/DirectMessageThreadId;Ljava/lang/String;ZZZLjava/lang/String;Ldev/inmo/tgbotapi/types/message/SuggestedPostParameters;Ldev/inmo/tgbotapi/types/ReplyParameters;Ldev/inmo/tgbotapi/types/buttons/KeyboardMarkup;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
public static final fun send-Rhn938o (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/ChatIdentifier;Ljava/util/List;Ljava/util/List;ZZZLdev/inmo/tgbotapi/types/polls/ScheduledCloseInfo;Ldev/inmo/tgbotapi/types/MessageThreadId;Ldev/inmo/tgbotapi/types/DirectMessageThreadId;Ljava/lang/String;ZZZLjava/lang/String;Ldev/inmo/tgbotapi/types/message/SuggestedPostParameters;Ldev/inmo/tgbotapi/types/ReplyParameters;Ldev/inmo/tgbotapi/types/buttons/KeyboardMarkup;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
public static final fun send-Rhn938o (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/ChatIdentifier;Ljava/util/List;Ljava/util/List;ZZZLdev/inmo/tgbotapi/types/polls/ScheduledCloseInfo;Ldev/inmo/tgbotapi/types/MessageThreadId;Ldev/inmo/tgbotapi/types/DirectMessageThreadId;Ljava/lang/String;ZZZLjava/lang/String;Ldev/inmo/tgbotapi/types/message/SuggestedPostParameters;Ldev/inmo/tgbotapi/types/ReplyParameters;Ldev/inmo/tgbotapi/types/buttons/KeyboardMarkup;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
public static final fun send-Rhn938o (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/Chat;DDILjava/lang/Float;Ljava/lang/Integer;Ljava/lang/Float;Ldev/inmo/tgbotapi/types/MessageThreadId;Ldev/inmo/tgbotapi/types/DirectMessageThreadId;Ljava/lang/String;ZZZLjava/lang/String;Ldev/inmo/tgbotapi/types/message/SuggestedPostParameters;Ldev/inmo/tgbotapi/types/ReplyParameters;Ldev/inmo/tgbotapi/types/buttons/KeyboardMarkup;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
public static final fun send-Rhn938o (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/Chat;DDILjava/lang/Float;Ljava/lang/Integer;Ljava/lang/Float;Ldev/inmo/tgbotapi/types/MessageThreadId;Ldev/inmo/tgbotapi/types/DirectMessageThreadId;Ljava/lang/String;ZZZLjava/lang/String;Ldev/inmo/tgbotapi/types/message/SuggestedPostParameters;Ldev/inmo/tgbotapi/types/ReplyParameters;Ldev/inmo/tgbotapi/types/buttons/KeyboardMarkup;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
@@ -2300,8 +2343,8 @@ public final class dev/inmo/tgbotapi/extensions/api/send/payments/CreateInvoiceL
|
|||||||
}
|
}
|
||||||
|
|
||||||
public final class dev/inmo/tgbotapi/extensions/api/send/payments/RefundStarPaymentKt {
|
public final class dev/inmo/tgbotapi/extensions/api/send/payments/RefundStarPaymentKt {
|
||||||
public static final fun refundStarPayment-0SkZb-I (Ldev/inmo/tgbotapi/bot/RequestsExecutor;JLjava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
public static final fun refundStarPayment (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ldev/inmo/tgbotapi/types/payments/SuccessfulPayment;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
public static final fun refundStarPayment-nc95W0g (Ldev/inmo/tgbotapi/bot/RequestsExecutor;JLdev/inmo/tgbotapi/types/payments/SuccessfulPayment;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
public static final fun refundStarPayment-AASCvMI (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ljava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
}
|
}
|
||||||
|
|
||||||
public final class dev/inmo/tgbotapi/extensions/api/send/payments/SendInvoiceKt {
|
public final class dev/inmo/tgbotapi/extensions/api/send/payments/SendInvoiceKt {
|
||||||
@@ -2346,34 +2389,34 @@ public final class dev/inmo/tgbotapi/extensions/api/send/polls/SendRegularPollKt
|
|||||||
}
|
}
|
||||||
|
|
||||||
public final class dev/inmo/tgbotapi/extensions/api/set/SetUserEmojiStatusKt {
|
public final class dev/inmo/tgbotapi/extensions/api/set/SetUserEmojiStatusKt {
|
||||||
public static final fun setUserEmojiStatus-8OHYyMQ (Ldev/inmo/tgbotapi/bot/RequestsExecutor;JLjava/lang/String;DLkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
public static final fun setUserEmojiStatus-OZgzbMQ (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ljava/lang/String;DLkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
public static final fun setUserEmojiStatus-OZgzbMQ (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/User;Ljava/lang/String;DLkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
public static final fun setUserEmojiStatus-OZgzbMQ (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/User;Ljava/lang/String;DLkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
|
public static final fun setUserEmojiStatus-SrqJ0BM (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ljava/lang/String;Ldev/inmo/tgbotapi/types/TelegramDate;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
public static final fun setUserEmojiStatus-SrqJ0BM (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/User;Ljava/lang/String;Ldev/inmo/tgbotapi/types/TelegramDate;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
public static final fun setUserEmojiStatus-SrqJ0BM (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/User;Ljava/lang/String;Ldev/inmo/tgbotapi/types/TelegramDate;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
|
public static synthetic fun setUserEmojiStatus-SrqJ0BM$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ljava/lang/String;Ldev/inmo/tgbotapi/types/TelegramDate;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
||||||
public static synthetic fun setUserEmojiStatus-SrqJ0BM$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/User;Ljava/lang/String;Ldev/inmo/tgbotapi/types/TelegramDate;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
public static synthetic fun setUserEmojiStatus-SrqJ0BM$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/User;Ljava/lang/String;Ldev/inmo/tgbotapi/types/TelegramDate;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
||||||
public static final fun setUserEmojiStatus-bic5Y5o (Ldev/inmo/tgbotapi/bot/RequestsExecutor;JLjava/lang/String;Ldev/inmo/tgbotapi/types/TelegramDate;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
|
||||||
public static synthetic fun setUserEmojiStatus-bic5Y5o$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;JLjava/lang/String;Ldev/inmo/tgbotapi/types/TelegramDate;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public final class dev/inmo/tgbotapi/extensions/api/stickers/AddStickerToSetKt {
|
public final class dev/inmo/tgbotapi/extensions/api/stickers/AddStickerToSetKt {
|
||||||
|
public static final fun addStickerToSet (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ldev/inmo/tgbotapi/types/stickers/StickerSet;Ldev/inmo/tgbotapi/requests/abstracts/InputFile;Ldev/inmo/tgbotapi/types/StickerFormat;Ljava/util/List;Ldev/inmo/tgbotapi/types/stickers/MaskPosition;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
|
public static final fun addStickerToSet (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ldev/inmo/tgbotapi/types/stickers/StickerSet;Ldev/inmo/tgbotapi/requests/abstracts/InputFile;Ldev/inmo/tgbotapi/types/StickerFormat;Ljava/util/List;Ljava/util/List;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
|
public static final fun addStickerToSet (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ldev/inmo/tgbotapi/types/stickers/StickerSet;Ldev/inmo/tgbotapi/requests/stickers/InputSticker;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
|
public static final fun addStickerToSet (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ljava/lang/String;Ldev/inmo/tgbotapi/requests/stickers/InputSticker;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
public static final fun addStickerToSet (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/CommonUser;Ldev/inmo/tgbotapi/types/stickers/StickerSet;Ldev/inmo/tgbotapi/requests/abstracts/InputFile;Ldev/inmo/tgbotapi/types/StickerFormat;Ljava/util/List;Ldev/inmo/tgbotapi/types/stickers/MaskPosition;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
public static final fun addStickerToSet (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/CommonUser;Ldev/inmo/tgbotapi/types/stickers/StickerSet;Ldev/inmo/tgbotapi/requests/abstracts/InputFile;Ldev/inmo/tgbotapi/types/StickerFormat;Ljava/util/List;Ldev/inmo/tgbotapi/types/stickers/MaskPosition;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
public static final fun addStickerToSet (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/CommonUser;Ldev/inmo/tgbotapi/types/stickers/StickerSet;Ldev/inmo/tgbotapi/requests/abstracts/InputFile;Ldev/inmo/tgbotapi/types/StickerFormat;Ljava/util/List;Ljava/util/List;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
public static final fun addStickerToSet (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/CommonUser;Ldev/inmo/tgbotapi/types/stickers/StickerSet;Ldev/inmo/tgbotapi/requests/abstracts/InputFile;Ldev/inmo/tgbotapi/types/StickerFormat;Ljava/util/List;Ljava/util/List;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
public static final fun addStickerToSet (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/CommonUser;Ldev/inmo/tgbotapi/types/stickers/StickerSet;Ldev/inmo/tgbotapi/requests/stickers/InputSticker;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
public static final fun addStickerToSet (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/CommonUser;Ldev/inmo/tgbotapi/types/stickers/StickerSet;Ldev/inmo/tgbotapi/requests/stickers/InputSticker;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
|
public static synthetic fun addStickerToSet$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ldev/inmo/tgbotapi/types/stickers/StickerSet;Ldev/inmo/tgbotapi/requests/abstracts/InputFile;Ldev/inmo/tgbotapi/types/StickerFormat;Ljava/util/List;Ldev/inmo/tgbotapi/types/stickers/MaskPosition;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
||||||
|
public static synthetic fun addStickerToSet$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ldev/inmo/tgbotapi/types/stickers/StickerSet;Ldev/inmo/tgbotapi/requests/abstracts/InputFile;Ldev/inmo/tgbotapi/types/StickerFormat;Ljava/util/List;Ljava/util/List;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
||||||
public static synthetic fun addStickerToSet$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/CommonUser;Ldev/inmo/tgbotapi/types/stickers/StickerSet;Ldev/inmo/tgbotapi/requests/abstracts/InputFile;Ldev/inmo/tgbotapi/types/StickerFormat;Ljava/util/List;Ldev/inmo/tgbotapi/types/stickers/MaskPosition;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
public static synthetic fun addStickerToSet$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/CommonUser;Ldev/inmo/tgbotapi/types/stickers/StickerSet;Ldev/inmo/tgbotapi/requests/abstracts/InputFile;Ldev/inmo/tgbotapi/types/StickerFormat;Ljava/util/List;Ldev/inmo/tgbotapi/types/stickers/MaskPosition;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
||||||
public static synthetic fun addStickerToSet$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/CommonUser;Ldev/inmo/tgbotapi/types/stickers/StickerSet;Ldev/inmo/tgbotapi/requests/abstracts/InputFile;Ldev/inmo/tgbotapi/types/StickerFormat;Ljava/util/List;Ljava/util/List;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
public static synthetic fun addStickerToSet$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/CommonUser;Ldev/inmo/tgbotapi/types/stickers/StickerSet;Ldev/inmo/tgbotapi/requests/abstracts/InputFile;Ldev/inmo/tgbotapi/types/StickerFormat;Ljava/util/List;Ljava/util/List;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
||||||
public static final fun addStickerToSet-4iNBclM (Ldev/inmo/tgbotapi/bot/RequestsExecutor;JLdev/inmo/tgbotapi/types/stickers/StickerSet;Ldev/inmo/tgbotapi/requests/stickers/InputSticker;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
public static final fun addStickerToSet-DXF-zCU (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ljava/lang/String;Ldev/inmo/tgbotapi/requests/stickers/InputSticker;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
public static final fun addStickerToSet-4iNBclM (Ldev/inmo/tgbotapi/bot/RequestsExecutor;JLjava/lang/String;Ldev/inmo/tgbotapi/requests/stickers/InputSticker;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
|
||||||
public static final fun addStickerToSet-It0iktY (Ldev/inmo/tgbotapi/bot/RequestsExecutor;JLjava/lang/String;Ldev/inmo/tgbotapi/requests/stickers/InputSticker;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
|
||||||
public static final fun addStickerToSet-W2FzMBY (Ldev/inmo/tgbotapi/bot/RequestsExecutor;JLdev/inmo/tgbotapi/types/stickers/StickerSet;Ldev/inmo/tgbotapi/requests/abstracts/InputFile;Ldev/inmo/tgbotapi/types/StickerFormat;Ljava/util/List;Ldev/inmo/tgbotapi/types/stickers/MaskPosition;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
|
||||||
public static final fun addStickerToSet-W2FzMBY (Ldev/inmo/tgbotapi/bot/RequestsExecutor;JLdev/inmo/tgbotapi/types/stickers/StickerSet;Ldev/inmo/tgbotapi/requests/abstracts/InputFile;Ldev/inmo/tgbotapi/types/StickerFormat;Ljava/util/List;Ljava/util/List;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
|
||||||
public static synthetic fun addStickerToSet-W2FzMBY$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;JLdev/inmo/tgbotapi/types/stickers/StickerSet;Ldev/inmo/tgbotapi/requests/abstracts/InputFile;Ldev/inmo/tgbotapi/types/StickerFormat;Ljava/util/List;Ldev/inmo/tgbotapi/types/stickers/MaskPosition;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
|
||||||
public static synthetic fun addStickerToSet-W2FzMBY$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;JLdev/inmo/tgbotapi/types/stickers/StickerSet;Ldev/inmo/tgbotapi/requests/abstracts/InputFile;Ldev/inmo/tgbotapi/types/StickerFormat;Ljava/util/List;Ljava/util/List;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public final class dev/inmo/tgbotapi/extensions/api/stickers/CreateNewStickerSetKt {
|
public final class dev/inmo/tgbotapi/extensions/api/stickers/CreateNewStickerSetKt {
|
||||||
|
public static final fun createNewStickerSet (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ljava/lang/String;Ljava/lang/String;Ljava/util/List;ZLkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
public static final fun createNewStickerSet (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/CommonUser;Ljava/lang/String;Ljava/lang/String;Ljava/util/List;ZLkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
public static final fun createNewStickerSet (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/CommonUser;Ljava/lang/String;Ljava/lang/String;Ljava/util/List;ZLkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
|
public static synthetic fun createNewStickerSet$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ljava/lang/String;Ljava/lang/String;Ljava/util/List;ZLkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
||||||
public static synthetic fun createNewStickerSet$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/CommonUser;Ljava/lang/String;Ljava/lang/String;Ljava/util/List;ZLkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
public static synthetic fun createNewStickerSet$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/CommonUser;Ljava/lang/String;Ljava/lang/String;Ljava/util/List;ZLkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
||||||
public static final fun createNewStickerSet-VjR9mJc (Ldev/inmo/tgbotapi/bot/RequestsExecutor;JLjava/lang/String;Ljava/lang/String;Ljava/util/List;ZLkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
|
||||||
public static synthetic fun createNewStickerSet-VjR9mJc$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;JLjava/lang/String;Ljava/lang/String;Ljava/util/List;ZLkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public final class dev/inmo/tgbotapi/extensions/api/stickers/DeleteStickerFromSetKt {
|
public final class dev/inmo/tgbotapi/extensions/api/stickers/DeleteStickerFromSetKt {
|
||||||
@@ -2388,18 +2431,18 @@ public final class dev/inmo/tgbotapi/extensions/api/stickers/DeleteStickerSetKt
|
|||||||
}
|
}
|
||||||
|
|
||||||
public final class dev/inmo/tgbotapi/extensions/api/stickers/ReplaceStickerInSetKt {
|
public final class dev/inmo/tgbotapi/extensions/api/stickers/ReplaceStickerInSetKt {
|
||||||
|
public static final fun replaceStickerInSet (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ldev/inmo/tgbotapi/types/stickers/StickerSet;Ldev/inmo/tgbotapi/requests/abstracts/FileId;Ldev/inmo/tgbotapi/requests/abstracts/InputFile;Ldev/inmo/tgbotapi/types/StickerFormat;Ljava/util/List;Ldev/inmo/tgbotapi/types/stickers/MaskPosition;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
|
public static final fun replaceStickerInSet (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ldev/inmo/tgbotapi/types/stickers/StickerSet;Ldev/inmo/tgbotapi/requests/abstracts/FileId;Ldev/inmo/tgbotapi/requests/abstracts/InputFile;Ldev/inmo/tgbotapi/types/StickerFormat;Ljava/util/List;Ljava/util/List;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
|
public static final fun replaceStickerInSet (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ldev/inmo/tgbotapi/types/stickers/StickerSet;Ldev/inmo/tgbotapi/requests/abstracts/FileId;Ldev/inmo/tgbotapi/requests/stickers/InputSticker;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
|
public static final fun replaceStickerInSet (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ljava/lang/String;Ldev/inmo/tgbotapi/requests/abstracts/FileId;Ldev/inmo/tgbotapi/requests/stickers/InputSticker;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
public static final fun replaceStickerInSet (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/CommonUser;Ldev/inmo/tgbotapi/types/stickers/StickerSet;Ldev/inmo/tgbotapi/requests/abstracts/FileId;Ldev/inmo/tgbotapi/requests/abstracts/InputFile;Ldev/inmo/tgbotapi/types/StickerFormat;Ljava/util/List;Ldev/inmo/tgbotapi/types/stickers/MaskPosition;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
public static final fun replaceStickerInSet (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/CommonUser;Ldev/inmo/tgbotapi/types/stickers/StickerSet;Ldev/inmo/tgbotapi/requests/abstracts/FileId;Ldev/inmo/tgbotapi/requests/abstracts/InputFile;Ldev/inmo/tgbotapi/types/StickerFormat;Ljava/util/List;Ldev/inmo/tgbotapi/types/stickers/MaskPosition;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
public static final fun replaceStickerInSet (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/CommonUser;Ldev/inmo/tgbotapi/types/stickers/StickerSet;Ldev/inmo/tgbotapi/requests/abstracts/FileId;Ldev/inmo/tgbotapi/requests/abstracts/InputFile;Ldev/inmo/tgbotapi/types/StickerFormat;Ljava/util/List;Ljava/util/List;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
public static final fun replaceStickerInSet (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/CommonUser;Ldev/inmo/tgbotapi/types/stickers/StickerSet;Ldev/inmo/tgbotapi/requests/abstracts/FileId;Ldev/inmo/tgbotapi/requests/abstracts/InputFile;Ldev/inmo/tgbotapi/types/StickerFormat;Ljava/util/List;Ljava/util/List;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
public static final fun replaceStickerInSet (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/CommonUser;Ldev/inmo/tgbotapi/types/stickers/StickerSet;Ldev/inmo/tgbotapi/requests/abstracts/FileId;Ldev/inmo/tgbotapi/requests/stickers/InputSticker;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
public static final fun replaceStickerInSet (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/CommonUser;Ldev/inmo/tgbotapi/types/stickers/StickerSet;Ldev/inmo/tgbotapi/requests/abstracts/FileId;Ldev/inmo/tgbotapi/requests/stickers/InputSticker;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
|
public static synthetic fun replaceStickerInSet$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ldev/inmo/tgbotapi/types/stickers/StickerSet;Ldev/inmo/tgbotapi/requests/abstracts/FileId;Ldev/inmo/tgbotapi/requests/abstracts/InputFile;Ldev/inmo/tgbotapi/types/StickerFormat;Ljava/util/List;Ldev/inmo/tgbotapi/types/stickers/MaskPosition;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
||||||
|
public static synthetic fun replaceStickerInSet$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ldev/inmo/tgbotapi/types/stickers/StickerSet;Ldev/inmo/tgbotapi/requests/abstracts/FileId;Ldev/inmo/tgbotapi/requests/abstracts/InputFile;Ldev/inmo/tgbotapi/types/StickerFormat;Ljava/util/List;Ljava/util/List;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
||||||
public static synthetic fun replaceStickerInSet$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/CommonUser;Ldev/inmo/tgbotapi/types/stickers/StickerSet;Ldev/inmo/tgbotapi/requests/abstracts/FileId;Ldev/inmo/tgbotapi/requests/abstracts/InputFile;Ldev/inmo/tgbotapi/types/StickerFormat;Ljava/util/List;Ldev/inmo/tgbotapi/types/stickers/MaskPosition;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
public static synthetic fun replaceStickerInSet$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/CommonUser;Ldev/inmo/tgbotapi/types/stickers/StickerSet;Ldev/inmo/tgbotapi/requests/abstracts/FileId;Ldev/inmo/tgbotapi/requests/abstracts/InputFile;Ldev/inmo/tgbotapi/types/StickerFormat;Ljava/util/List;Ldev/inmo/tgbotapi/types/stickers/MaskPosition;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
||||||
public static synthetic fun replaceStickerInSet$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/CommonUser;Ldev/inmo/tgbotapi/types/stickers/StickerSet;Ldev/inmo/tgbotapi/requests/abstracts/FileId;Ldev/inmo/tgbotapi/requests/abstracts/InputFile;Ldev/inmo/tgbotapi/types/StickerFormat;Ljava/util/List;Ljava/util/List;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
public static synthetic fun replaceStickerInSet$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/CommonUser;Ldev/inmo/tgbotapi/types/stickers/StickerSet;Ldev/inmo/tgbotapi/requests/abstracts/FileId;Ldev/inmo/tgbotapi/requests/abstracts/InputFile;Ldev/inmo/tgbotapi/types/StickerFormat;Ljava/util/List;Ljava/util/List;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
||||||
public static final fun replaceStickerInSet-GSYghJ8 (Ldev/inmo/tgbotapi/bot/RequestsExecutor;JLdev/inmo/tgbotapi/types/stickers/StickerSet;Ldev/inmo/tgbotapi/requests/abstracts/FileId;Ldev/inmo/tgbotapi/requests/abstracts/InputFile;Ldev/inmo/tgbotapi/types/StickerFormat;Ljava/util/List;Ldev/inmo/tgbotapi/types/stickers/MaskPosition;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
public static final fun replaceStickerInSet-0VZ_ni8 (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ljava/lang/String;Ldev/inmo/tgbotapi/requests/abstracts/FileId;Ldev/inmo/tgbotapi/requests/stickers/InputSticker;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
public static final fun replaceStickerInSet-GSYghJ8 (Ldev/inmo/tgbotapi/bot/RequestsExecutor;JLdev/inmo/tgbotapi/types/stickers/StickerSet;Ldev/inmo/tgbotapi/requests/abstracts/FileId;Ldev/inmo/tgbotapi/requests/abstracts/InputFile;Ldev/inmo/tgbotapi/types/StickerFormat;Ljava/util/List;Ljava/util/List;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
|
||||||
public static synthetic fun replaceStickerInSet-GSYghJ8$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;JLdev/inmo/tgbotapi/types/stickers/StickerSet;Ldev/inmo/tgbotapi/requests/abstracts/FileId;Ldev/inmo/tgbotapi/requests/abstracts/InputFile;Ldev/inmo/tgbotapi/types/StickerFormat;Ljava/util/List;Ldev/inmo/tgbotapi/types/stickers/MaskPosition;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
|
||||||
public static synthetic fun replaceStickerInSet-GSYghJ8$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;JLdev/inmo/tgbotapi/types/stickers/StickerSet;Ldev/inmo/tgbotapi/requests/abstracts/FileId;Ldev/inmo/tgbotapi/requests/abstracts/InputFile;Ldev/inmo/tgbotapi/types/StickerFormat;Ljava/util/List;Ljava/util/List;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
|
||||||
public static final fun replaceStickerInSet-ftAj2Hw (Ldev/inmo/tgbotapi/bot/RequestsExecutor;JLjava/lang/String;Ldev/inmo/tgbotapi/requests/abstracts/FileId;Ldev/inmo/tgbotapi/requests/stickers/InputSticker;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
|
||||||
public static final fun replaceStickerInSet-ySMgKnk (Ldev/inmo/tgbotapi/bot/RequestsExecutor;JLdev/inmo/tgbotapi/types/stickers/StickerSet;Ldev/inmo/tgbotapi/requests/abstracts/FileId;Ldev/inmo/tgbotapi/requests/stickers/InputSticker;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
|
||||||
public static final fun replaceStickerInSet-ySMgKnk (Ldev/inmo/tgbotapi/bot/RequestsExecutor;JLjava/lang/String;Ldev/inmo/tgbotapi/requests/abstracts/FileId;Ldev/inmo/tgbotapi/requests/stickers/InputSticker;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public final class dev/inmo/tgbotapi/extensions/api/stickers/SetStickerEmojiListKt {
|
public final class dev/inmo/tgbotapi/extensions/api/stickers/SetStickerEmojiListKt {
|
||||||
@@ -2428,8 +2471,8 @@ public final class dev/inmo/tgbotapi/extensions/api/stickers/SetStickerSetTitleK
|
|||||||
}
|
}
|
||||||
|
|
||||||
public final class dev/inmo/tgbotapi/extensions/api/stickers/UploadStickerFileKt {
|
public final class dev/inmo/tgbotapi/extensions/api/stickers/UploadStickerFileKt {
|
||||||
|
public static final fun uploadStickerFile (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ldev/inmo/tgbotapi/requests/abstracts/MultipartFile;Ldev/inmo/tgbotapi/types/StickerFormat;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
public static final fun uploadStickerFile (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/CommonUser;Ldev/inmo/tgbotapi/requests/abstracts/MultipartFile;Ldev/inmo/tgbotapi/types/StickerFormat;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
public static final fun uploadStickerFile (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/CommonUser;Ldev/inmo/tgbotapi/requests/abstracts/MultipartFile;Ldev/inmo/tgbotapi/types/StickerFormat;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
public static final fun uploadStickerFile-4iNBclM (Ldev/inmo/tgbotapi/bot/RequestsExecutor;JLdev/inmo/tgbotapi/requests/abstracts/MultipartFile;Ldev/inmo/tgbotapi/types/StickerFormat;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public final class dev/inmo/tgbotapi/extensions/api/stories/DeleteStoryKt {
|
public final class dev/inmo/tgbotapi/extensions/api/stories/DeleteStoryKt {
|
||||||
@@ -2461,6 +2504,11 @@ public final class dev/inmo/tgbotapi/extensions/api/stories/PostStoryKt {
|
|||||||
public static synthetic fun postStory-rseRIdU$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ljava/lang/String;Ldev/inmo/tgbotapi/types/stories/InputStoryContent;ILjava/util/List;ZZLdev/inmo/tgbotapi/types/message/textsources/TextSource;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
public static synthetic fun postStory-rseRIdU$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ljava/lang/String;Ldev/inmo/tgbotapi/types/stories/InputStoryContent;ILjava/util/List;ZZLdev/inmo/tgbotapi/types/message/textsources/TextSource;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public final class dev/inmo/tgbotapi/extensions/api/stories/RepostStoryKt {
|
||||||
|
public static final fun repostStory-u8fFITI (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ljava/lang/String;Ldev/inmo/tgbotapi/types/IdChatIdentifier;JIZZLkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
|
public static synthetic fun repostStory-u8fFITI$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ljava/lang/String;Ldev/inmo/tgbotapi/types/IdChatIdentifier;JIZZLkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
||||||
|
}
|
||||||
|
|
||||||
public final class dev/inmo/tgbotapi/extensions/api/suggested/ApproveSuggestedPostKt {
|
public final class dev/inmo/tgbotapi/extensions/api/suggested/ApproveSuggestedPostKt {
|
||||||
public static final fun approveSuggestedPost (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/message/abstracts/Message;Ldev/inmo/tgbotapi/types/TelegramDate;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
public static final fun approveSuggestedPost (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/message/abstracts/Message;Ldev/inmo/tgbotapi/types/TelegramDate;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
public static synthetic fun approveSuggestedPost$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/message/abstracts/Message;Ldev/inmo/tgbotapi/types/TelegramDate;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
public static synthetic fun approveSuggestedPost$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/message/abstracts/Message;Ldev/inmo/tgbotapi/types/TelegramDate;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
||||||
@@ -2485,14 +2533,14 @@ public final class dev/inmo/tgbotapi/extensions/api/thumbs/SetCustomEmojiSticker
|
|||||||
}
|
}
|
||||||
|
|
||||||
public final class dev/inmo/tgbotapi/extensions/api/thumbs/SetStickerSetThumbnailKt {
|
public final class dev/inmo/tgbotapi/extensions/api/thumbs/SetStickerSetThumbnailKt {
|
||||||
|
public static final fun setStickerSetThumbnail (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ldev/inmo/tgbotapi/types/stickers/StickerSet;Ldev/inmo/tgbotapi/types/StickerFormat;Ldev/inmo/tgbotapi/requests/abstracts/FileId;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
|
public static final fun setStickerSetThumbnail (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ldev/inmo/tgbotapi/types/stickers/StickerSet;Ldev/inmo/tgbotapi/types/StickerFormat;Ldev/inmo/tgbotapi/requests/abstracts/MultipartFile;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
public static final fun setStickerSetThumbnail (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/CommonUser;Ldev/inmo/tgbotapi/types/stickers/StickerSet;Ldev/inmo/tgbotapi/types/StickerFormat;Ldev/inmo/tgbotapi/requests/abstracts/FileId;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
public static final fun setStickerSetThumbnail (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/CommonUser;Ldev/inmo/tgbotapi/types/stickers/StickerSet;Ldev/inmo/tgbotapi/types/StickerFormat;Ldev/inmo/tgbotapi/requests/abstracts/FileId;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
public static final fun setStickerSetThumbnail (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/CommonUser;Ldev/inmo/tgbotapi/types/stickers/StickerSet;Ldev/inmo/tgbotapi/types/StickerFormat;Ldev/inmo/tgbotapi/requests/abstracts/MultipartFile;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
public static final fun setStickerSetThumbnail (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/CommonUser;Ldev/inmo/tgbotapi/types/stickers/StickerSet;Ldev/inmo/tgbotapi/types/StickerFormat;Ldev/inmo/tgbotapi/requests/abstracts/MultipartFile;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
|
public static final fun setStickerSetThumbnail-0VZ_ni8 (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ljava/lang/String;Ldev/inmo/tgbotapi/types/StickerFormat;Ldev/inmo/tgbotapi/requests/abstracts/FileId;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
|
public static final fun setStickerSetThumbnail-0VZ_ni8 (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ljava/lang/String;Ldev/inmo/tgbotapi/types/StickerFormat;Ldev/inmo/tgbotapi/requests/abstracts/MultipartFile;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
public static final fun setStickerSetThumbnail-0VZ_ni8 (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/CommonUser;Ljava/lang/String;Ldev/inmo/tgbotapi/types/StickerFormat;Ldev/inmo/tgbotapi/requests/abstracts/FileId;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
public static final fun setStickerSetThumbnail-0VZ_ni8 (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/CommonUser;Ljava/lang/String;Ldev/inmo/tgbotapi/types/StickerFormat;Ldev/inmo/tgbotapi/requests/abstracts/FileId;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
public static final fun setStickerSetThumbnail-0VZ_ni8 (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/CommonUser;Ljava/lang/String;Ldev/inmo/tgbotapi/types/StickerFormat;Ldev/inmo/tgbotapi/requests/abstracts/MultipartFile;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
public static final fun setStickerSetThumbnail-0VZ_ni8 (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/CommonUser;Ljava/lang/String;Ldev/inmo/tgbotapi/types/StickerFormat;Ldev/inmo/tgbotapi/requests/abstracts/MultipartFile;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
public static final fun setStickerSetThumbnail-ftAj2Hw (Ldev/inmo/tgbotapi/bot/RequestsExecutor;JLjava/lang/String;Ldev/inmo/tgbotapi/types/StickerFormat;Ldev/inmo/tgbotapi/requests/abstracts/FileId;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
|
||||||
public static final fun setStickerSetThumbnail-ftAj2Hw (Ldev/inmo/tgbotapi/bot/RequestsExecutor;JLjava/lang/String;Ldev/inmo/tgbotapi/types/StickerFormat;Ldev/inmo/tgbotapi/requests/abstracts/MultipartFile;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
|
||||||
public static final fun setStickerSetThumbnail-ySMgKnk (Ldev/inmo/tgbotapi/bot/RequestsExecutor;JLdev/inmo/tgbotapi/types/stickers/StickerSet;Ldev/inmo/tgbotapi/types/StickerFormat;Ldev/inmo/tgbotapi/requests/abstracts/FileId;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
|
||||||
public static final fun setStickerSetThumbnail-ySMgKnk (Ldev/inmo/tgbotapi/bot/RequestsExecutor;JLdev/inmo/tgbotapi/types/stickers/StickerSet;Ldev/inmo/tgbotapi/types/StickerFormat;Ldev/inmo/tgbotapi/requests/abstracts/MultipartFile;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public final class dev/inmo/tgbotapi/extensions/api/utils/UpdatesHandlingKt {
|
public final class dev/inmo/tgbotapi/extensions/api/utils/UpdatesHandlingKt {
|
||||||
@@ -2505,7 +2553,7 @@ public final class dev/inmo/tgbotapi/extensions/api/verifications/RemoveChatVeri
|
|||||||
}
|
}
|
||||||
|
|
||||||
public final class dev/inmo/tgbotapi/extensions/api/verifications/RemoveUserVerificationKt {
|
public final class dev/inmo/tgbotapi/extensions/api/verifications/RemoveUserVerificationKt {
|
||||||
public static final fun removeUserVerification-dEpx-Zg (Ldev/inmo/tgbotapi/bot/RequestsExecutor;JLkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
public static final fun removeUserVerification (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
}
|
}
|
||||||
|
|
||||||
public final class dev/inmo/tgbotapi/extensions/api/verifications/VerifyChatKt {
|
public final class dev/inmo/tgbotapi/extensions/api/verifications/VerifyChatKt {
|
||||||
@@ -2516,10 +2564,10 @@ public final class dev/inmo/tgbotapi/extensions/api/verifications/VerifyChatKt {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public final class dev/inmo/tgbotapi/extensions/api/verifications/VerifyUserKt {
|
public final class dev/inmo/tgbotapi/extensions/api/verifications/VerifyUserKt {
|
||||||
|
public static final fun verifyUser (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ljava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
public static final fun verifyUser (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/Chat;Ljava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
public static final fun verifyUser (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/Chat;Ljava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
|
public static synthetic fun verifyUser$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ljava/lang/String;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
||||||
public static synthetic fun verifyUser$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/Chat;Ljava/lang/String;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
public static synthetic fun verifyUser$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/chat/Chat;Ljava/lang/String;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
||||||
public static final fun verifyUser-nc95W0g (Ldev/inmo/tgbotapi/bot/RequestsExecutor;JLjava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
|
||||||
public static synthetic fun verifyUser-nc95W0g$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;JLjava/lang/String;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public final class dev/inmo/tgbotapi/extensions/api/webhook/DeleteWebhookKt {
|
public final class dev/inmo/tgbotapi/extensions/api/webhook/DeleteWebhookKt {
|
||||||
|
|||||||
@@ -14,8 +14,10 @@ public suspend fun TelegramBot.getBusinessAccountGifts(
|
|||||||
excludeUnsaved: Boolean = false,
|
excludeUnsaved: Boolean = false,
|
||||||
excludeSaved: Boolean = false,
|
excludeSaved: Boolean = false,
|
||||||
excludeUnlimited: Boolean = false,
|
excludeUnlimited: Boolean = false,
|
||||||
excludeLimited: Boolean = false,
|
excludeLimitedUpgradable: Boolean = false,
|
||||||
|
excludeLimitedNonUpgradable: Boolean = false,
|
||||||
excludeUnique: Boolean = false,
|
excludeUnique: Boolean = false,
|
||||||
|
excludeFromBlockchain: Boolean = false,
|
||||||
sortByPrice: Boolean = false,
|
sortByPrice: Boolean = false,
|
||||||
offset: String? = null,
|
offset: String? = null,
|
||||||
limit: Int? = null
|
limit: Int? = null
|
||||||
@@ -25,8 +27,10 @@ public suspend fun TelegramBot.getBusinessAccountGifts(
|
|||||||
excludeUnsaved,
|
excludeUnsaved,
|
||||||
excludeSaved,
|
excludeSaved,
|
||||||
excludeUnlimited,
|
excludeUnlimited,
|
||||||
excludeLimited,
|
excludeLimitedUpgradable,
|
||||||
|
excludeLimitedNonUpgradable,
|
||||||
excludeUnique,
|
excludeUnique,
|
||||||
|
excludeFromBlockchain,
|
||||||
sortByPrice,
|
sortByPrice,
|
||||||
offset,
|
offset,
|
||||||
limit
|
limit
|
||||||
@@ -43,8 +47,10 @@ public suspend fun TelegramBot.getBusinessAccountGifts(
|
|||||||
* @param excludeUnsaved Whether to exclude unsaved gifts
|
* @param excludeUnsaved Whether to exclude unsaved gifts
|
||||||
* @param excludeSaved Whether to exclude saved gifts
|
* @param excludeSaved Whether to exclude saved gifts
|
||||||
* @param excludeUnlimited Whether to exclude unlimited gifts
|
* @param excludeUnlimited Whether to exclude unlimited gifts
|
||||||
* @param excludeLimited Whether to exclude limited gifts
|
* @param excludeLimitedUpgradable Whether to exclude limited upgradable gifts
|
||||||
|
* @param excludeLimitedNonUpgradable Whether to exclude limited non-upgradable gifts
|
||||||
* @param excludeUnique Whether to exclude unique gifts
|
* @param excludeUnique Whether to exclude unique gifts
|
||||||
|
* @param excludeFromBlockchain Whether to exclude gifts from blockchain
|
||||||
* @param sortByPrice Whether to sort gifts by price
|
* @param sortByPrice Whether to sort gifts by price
|
||||||
* @param initialOffset The initial offset to start fetching from. If null, starts from the beginning
|
* @param initialOffset The initial offset to start fetching from. If null, starts from the beginning
|
||||||
* @param limit The maximum number of gifts to fetch per request
|
* @param limit The maximum number of gifts to fetch per request
|
||||||
@@ -57,8 +63,10 @@ public fun TelegramBot.getBusinessAccountGiftsFlow(
|
|||||||
excludeUnsaved: Boolean = false,
|
excludeUnsaved: Boolean = false,
|
||||||
excludeSaved: Boolean = false,
|
excludeSaved: Boolean = false,
|
||||||
excludeUnlimited: Boolean = false,
|
excludeUnlimited: Boolean = false,
|
||||||
excludeLimited: Boolean = false,
|
excludeLimitedUpgradable: Boolean = false,
|
||||||
|
excludeLimitedNonUpgradable: Boolean = false,
|
||||||
excludeUnique: Boolean = false,
|
excludeUnique: Boolean = false,
|
||||||
|
excludeFromBlockchain: Boolean = false,
|
||||||
sortByPrice: Boolean = false,
|
sortByPrice: Boolean = false,
|
||||||
initialOffset: String? = null,
|
initialOffset: String? = null,
|
||||||
limit: Int? = null,
|
limit: Int? = null,
|
||||||
@@ -72,8 +80,10 @@ public fun TelegramBot.getBusinessAccountGiftsFlow(
|
|||||||
excludeUnsaved,
|
excludeUnsaved,
|
||||||
excludeSaved,
|
excludeSaved,
|
||||||
excludeUnlimited,
|
excludeUnlimited,
|
||||||
excludeLimited,
|
excludeLimitedUpgradable,
|
||||||
|
excludeLimitedNonUpgradable,
|
||||||
excludeUnique,
|
excludeUnique,
|
||||||
|
excludeFromBlockchain,
|
||||||
sortByPrice,
|
sortByPrice,
|
||||||
currentOffset,
|
currentOffset,
|
||||||
limit
|
limit
|
||||||
|
|||||||
@@ -117,6 +117,17 @@ public suspend fun TelegramBot.getChat(
|
|||||||
chat: PrivateChatImpl
|
chat: PrivateChatImpl
|
||||||
): ExtendedPrivateChatImpl = getChat(chat.id) as ExtendedPrivateChatImpl
|
): ExtendedPrivateChatImpl = getChat(chat.id) as ExtendedPrivateChatImpl
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Will cast incoming [dev.inmo.tgbotapi.types.chat.ExtendedChat] to a
|
||||||
|
* [ExtendedPrivateForumChatImpl] with unsafe operator "as"
|
||||||
|
*
|
||||||
|
* @throws ClassCastException
|
||||||
|
*/
|
||||||
|
@PreviewFeature
|
||||||
|
public suspend fun TelegramBot.getChat(
|
||||||
|
chat: PrivateForumChatImpl
|
||||||
|
): ExtendedPrivateForumChatImpl = getChat(chat.id) as ExtendedPrivateForumChatImpl
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Will cast incoming [dev.inmo.tgbotapi.types.chat.ExtendedChat] to a
|
* Will cast incoming [dev.inmo.tgbotapi.types.chat.ExtendedChat] to a
|
||||||
* [ExtendedUser] with unsafe operator "as"
|
* [ExtendedUser] with unsafe operator "as"
|
||||||
|
|||||||
@@ -0,0 +1,197 @@
|
|||||||
|
package dev.inmo.tgbotapi.extensions.api.send
|
||||||
|
|
||||||
|
import dev.inmo.kslog.common.logger
|
||||||
|
import dev.inmo.micro_utils.coroutines.runCatchingLogging
|
||||||
|
import dev.inmo.tgbotapi.bot.TelegramBot
|
||||||
|
import dev.inmo.tgbotapi.requests.send.SendMessageDraft
|
||||||
|
import dev.inmo.tgbotapi.types.*
|
||||||
|
import dev.inmo.tgbotapi.types.message.textsources.TextSourcesList
|
||||||
|
import dev.inmo.tgbotapi.types.message.ParseMode
|
||||||
|
import dev.inmo.tgbotapi.types.chat.Chat
|
||||||
|
import dev.inmo.tgbotapi.types.message.MarkdownV2
|
||||||
|
import dev.inmo.tgbotapi.types.message.textsources.TextSource
|
||||||
|
import dev.inmo.tgbotapi.utils.DraftIdAllocator
|
||||||
|
import dev.inmo.tgbotapi.utils.EntitiesBuilderBody
|
||||||
|
import dev.inmo.tgbotapi.utils.buildEntities
|
||||||
|
import dev.inmo.tgbotapi.utils.extensions.escapeMarkdownV2Common
|
||||||
|
import kotlinx.coroutines.flow.Flow
|
||||||
|
import kotlinx.coroutines.flow.filter
|
||||||
|
import kotlinx.coroutines.flow.firstOrNull
|
||||||
|
import kotlinx.coroutines.flow.map
|
||||||
|
import kotlin.js.JsName
|
||||||
|
import kotlin.jvm.JvmName
|
||||||
|
|
||||||
|
public suspend fun TelegramBot.sendMessageDraft(
|
||||||
|
chatId: IdChatIdentifier,
|
||||||
|
draftId: DraftId,
|
||||||
|
text: String,
|
||||||
|
parseMode: ParseMode? = null,
|
||||||
|
threadId: MessageThreadId? = chatId.threadId
|
||||||
|
): Boolean = execute(
|
||||||
|
SendMessageDraft(
|
||||||
|
chatId = chatId,
|
||||||
|
draftId = draftId,
|
||||||
|
text = text,
|
||||||
|
parseMode = parseMode,
|
||||||
|
threadId = threadId
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
private suspend fun TelegramBot.sendMessageDraftFlow(
|
||||||
|
messagesFlow: Flow<SendMessageDraft>,
|
||||||
|
): Boolean {
|
||||||
|
val done = messagesFlow
|
||||||
|
.filter { draft ->
|
||||||
|
val sent = runCatchingLogging(logger = logger) {
|
||||||
|
execute(draft)
|
||||||
|
}.getOrElse {
|
||||||
|
false
|
||||||
|
}
|
||||||
|
|
||||||
|
sent == false
|
||||||
|
}
|
||||||
|
.firstOrNull()
|
||||||
|
|
||||||
|
return done == null
|
||||||
|
}
|
||||||
|
|
||||||
|
public val GlobalDraftIdAllocator: DraftIdAllocator by lazy { DraftIdAllocator() }
|
||||||
|
|
||||||
|
public suspend fun TelegramBot.sendMessageDraftFlow(
|
||||||
|
chatId: IdChatIdentifier,
|
||||||
|
messagesFlow: Flow<TextSourcesList>,
|
||||||
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
|
draftId: DraftId? = null,
|
||||||
|
): Boolean {
|
||||||
|
val draftId = draftId ?: GlobalDraftIdAllocator.allocate()
|
||||||
|
return sendMessageDraftFlow(
|
||||||
|
messagesFlow.map {
|
||||||
|
SendMessageDraft(chatId = chatId, draftId = draftId, entities = it, threadId = threadId)
|
||||||
|
}
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
public suspend fun TelegramBot.sendMessageDraftFlowWithTextsAndParseMode(
|
||||||
|
chatId: IdChatIdentifier,
|
||||||
|
messagesFlow: Flow<Pair<String, ParseMode?>>,
|
||||||
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
|
draftId: DraftId? = null,
|
||||||
|
): Boolean {
|
||||||
|
val draftId = draftId ?: GlobalDraftIdAllocator.allocate()
|
||||||
|
return sendMessageDraftFlow(
|
||||||
|
messagesFlow.map {
|
||||||
|
SendMessageDraft(chatId = chatId, draftId = draftId, text = it.first, parseMode = it.second, threadId = threadId)
|
||||||
|
}
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
public suspend fun TelegramBot.sendMessageDraftFlowWithTexts(
|
||||||
|
chatId: IdChatIdentifier,
|
||||||
|
messagesFlow: Flow<String>,
|
||||||
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
|
draftId: DraftId? = null,
|
||||||
|
): Boolean {
|
||||||
|
val draftId = draftId ?: GlobalDraftIdAllocator.allocate()
|
||||||
|
return sendMessageDraftFlowWithTextsAndParseMode(
|
||||||
|
chatId = chatId,
|
||||||
|
messagesFlow = messagesFlow.map {
|
||||||
|
it.escapeMarkdownV2Common() to MarkdownV2
|
||||||
|
},
|
||||||
|
threadId = threadId,
|
||||||
|
draftId = draftId
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
public suspend fun TelegramBot.sendMessageDraft(
|
||||||
|
chat: Chat,
|
||||||
|
draftId: DraftId,
|
||||||
|
text: String,
|
||||||
|
parseMode: ParseMode? = null,
|
||||||
|
threadId: MessageThreadId? = chat.id.threadId
|
||||||
|
): Boolean = sendMessageDraft(
|
||||||
|
chatId = chat.id as IdChatIdentifier,
|
||||||
|
draftId = draftId,
|
||||||
|
text = text,
|
||||||
|
parseMode = parseMode,
|
||||||
|
threadId = threadId
|
||||||
|
)
|
||||||
|
|
||||||
|
public suspend fun TelegramBot.sendMessageDraft(
|
||||||
|
chatId: IdChatIdentifier,
|
||||||
|
draftId: DraftId,
|
||||||
|
entities: TextSourcesList,
|
||||||
|
threadId: MessageThreadId? = chatId.threadId
|
||||||
|
): Boolean = execute(
|
||||||
|
SendMessageDraft(
|
||||||
|
chatId = chatId,
|
||||||
|
draftId = draftId,
|
||||||
|
entities = entities,
|
||||||
|
threadId = threadId
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
public suspend fun TelegramBot.sendMessageDraft(
|
||||||
|
chat: Chat,
|
||||||
|
draftId: DraftId,
|
||||||
|
entities: TextSourcesList,
|
||||||
|
threadId: MessageThreadId? = chat.id.threadId
|
||||||
|
): Boolean = sendMessageDraft(
|
||||||
|
chatId = chat.id as IdChatIdentifier,
|
||||||
|
draftId = draftId,
|
||||||
|
entities = entities,
|
||||||
|
threadId = threadId
|
||||||
|
)
|
||||||
|
|
||||||
|
public suspend fun TelegramBot.sendMessageDraft(
|
||||||
|
chatId: IdChatIdentifier,
|
||||||
|
draftId: DraftId,
|
||||||
|
separator: TextSource? = null,
|
||||||
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
|
builderBody: EntitiesBuilderBody
|
||||||
|
): Boolean = sendMessageDraft(
|
||||||
|
chatId = chatId,
|
||||||
|
draftId = draftId,
|
||||||
|
entities = buildEntities(separator, builderBody),
|
||||||
|
threadId = threadId
|
||||||
|
)
|
||||||
|
|
||||||
|
public suspend fun TelegramBot.sendMessageDraft(
|
||||||
|
chatId: IdChatIdentifier,
|
||||||
|
draftId: DraftId,
|
||||||
|
separator: String,
|
||||||
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
|
builderBody: EntitiesBuilderBody
|
||||||
|
): Boolean = sendMessageDraft(
|
||||||
|
chatId = chatId,
|
||||||
|
draftId = draftId,
|
||||||
|
entities = buildEntities(separator, builderBody),
|
||||||
|
threadId = threadId
|
||||||
|
)
|
||||||
|
|
||||||
|
public suspend fun TelegramBot.sendMessageDraft(
|
||||||
|
chat: Chat,
|
||||||
|
draftId: DraftId,
|
||||||
|
separator: TextSource? = null,
|
||||||
|
threadId: MessageThreadId? = chat.id.threadId,
|
||||||
|
builderBody: EntitiesBuilderBody
|
||||||
|
): Boolean = sendMessageDraft(
|
||||||
|
chatId = chat.id as IdChatIdentifier,
|
||||||
|
draftId = draftId,
|
||||||
|
separator = separator,
|
||||||
|
threadId = threadId,
|
||||||
|
builderBody = builderBody
|
||||||
|
)
|
||||||
|
|
||||||
|
public suspend fun TelegramBot.sendMessageDraft(
|
||||||
|
chat: Chat,
|
||||||
|
draftId: DraftId,
|
||||||
|
separator: String,
|
||||||
|
threadId: MessageThreadId? = chat.id.threadId,
|
||||||
|
builderBody: EntitiesBuilderBody
|
||||||
|
): Boolean = sendMessageDraft(
|
||||||
|
chatId = chat.id as IdChatIdentifier,
|
||||||
|
draftId = draftId,
|
||||||
|
separator = separator,
|
||||||
|
threadId = threadId,
|
||||||
|
builderBody = builderBody
|
||||||
|
)
|
||||||
@@ -1331,6 +1331,138 @@ public suspend fun TelegramBot.send(
|
|||||||
replyMarkup = replyMarkup
|
replyMarkup = replyMarkup
|
||||||
)
|
)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Will execute [sendMessageDraft] request
|
||||||
|
*/
|
||||||
|
public suspend fun TelegramBot.send(
|
||||||
|
chatId: IdChatIdentifier,
|
||||||
|
draftId: DraftId,
|
||||||
|
text: String,
|
||||||
|
parseMode: ParseMode? = null,
|
||||||
|
threadId: MessageThreadId? = chatId.threadId
|
||||||
|
): Boolean = sendMessageDraft(
|
||||||
|
chatId = chatId,
|
||||||
|
draftId = draftId,
|
||||||
|
text = text,
|
||||||
|
parseMode = parseMode,
|
||||||
|
threadId = threadId
|
||||||
|
)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Will execute [sendMessageDraft] request
|
||||||
|
*/
|
||||||
|
public suspend fun TelegramBot.send(
|
||||||
|
chat: Chat,
|
||||||
|
draftId: DraftId,
|
||||||
|
text: String,
|
||||||
|
parseMode: ParseMode? = null,
|
||||||
|
threadId: MessageThreadId? = chat.id.threadId
|
||||||
|
): Boolean = sendMessageDraft(
|
||||||
|
chat = chat,
|
||||||
|
draftId = draftId,
|
||||||
|
text = text,
|
||||||
|
parseMode = parseMode,
|
||||||
|
threadId = threadId
|
||||||
|
)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Will execute [sendMessageDraft] request
|
||||||
|
*/
|
||||||
|
public suspend fun TelegramBot.send(
|
||||||
|
chatId: IdChatIdentifier,
|
||||||
|
draftId: DraftId,
|
||||||
|
entities: TextSourcesList,
|
||||||
|
threadId: MessageThreadId? = chatId.threadId
|
||||||
|
): Boolean = sendMessageDraft(
|
||||||
|
chatId = chatId,
|
||||||
|
draftId = draftId,
|
||||||
|
entities = entities,
|
||||||
|
threadId = threadId
|
||||||
|
)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Will execute [sendMessageDraft] request
|
||||||
|
*/
|
||||||
|
public suspend fun TelegramBot.send(
|
||||||
|
chat: Chat,
|
||||||
|
draftId: DraftId,
|
||||||
|
entities: TextSourcesList,
|
||||||
|
threadId: MessageThreadId? = chat.id.threadId
|
||||||
|
): Boolean = sendMessageDraft(
|
||||||
|
chat = chat,
|
||||||
|
draftId = draftId,
|
||||||
|
entities = entities,
|
||||||
|
threadId = threadId
|
||||||
|
)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Will execute [sendMessageDraft] request
|
||||||
|
*/
|
||||||
|
public suspend fun TelegramBot.send(
|
||||||
|
chatId: IdChatIdentifier,
|
||||||
|
draftId: DraftId,
|
||||||
|
separator: TextSource? = null,
|
||||||
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
|
builderBody: EntitiesBuilderBody
|
||||||
|
): Boolean = sendMessageDraft(
|
||||||
|
chatId = chatId,
|
||||||
|
draftId = draftId,
|
||||||
|
separator = separator,
|
||||||
|
threadId = threadId,
|
||||||
|
builderBody = builderBody
|
||||||
|
)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Will execute [sendMessageDraft] request
|
||||||
|
*/
|
||||||
|
public suspend fun TelegramBot.send(
|
||||||
|
chatId: IdChatIdentifier,
|
||||||
|
draftId: DraftId,
|
||||||
|
separator: String,
|
||||||
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
|
builderBody: EntitiesBuilderBody
|
||||||
|
): Boolean = sendMessageDraft(
|
||||||
|
chatId = chatId,
|
||||||
|
draftId = draftId,
|
||||||
|
separator = separator,
|
||||||
|
threadId = threadId,
|
||||||
|
builderBody = builderBody
|
||||||
|
)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Will execute [sendMessageDraft] request
|
||||||
|
*/
|
||||||
|
public suspend fun TelegramBot.send(
|
||||||
|
chat: Chat,
|
||||||
|
draftId: DraftId,
|
||||||
|
separator: TextSource? = null,
|
||||||
|
threadId: MessageThreadId? = chat.id.threadId,
|
||||||
|
builderBody: EntitiesBuilderBody
|
||||||
|
): Boolean = sendMessageDraft(
|
||||||
|
chat = chat,
|
||||||
|
draftId = draftId,
|
||||||
|
separator = separator,
|
||||||
|
threadId = threadId,
|
||||||
|
builderBody = builderBody
|
||||||
|
)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Will execute [sendMessageDraft] request
|
||||||
|
*/
|
||||||
|
public suspend fun TelegramBot.send(
|
||||||
|
chat: Chat,
|
||||||
|
draftId: DraftId,
|
||||||
|
separator: String,
|
||||||
|
threadId: MessageThreadId? = chat.id.threadId,
|
||||||
|
builderBody: EntitiesBuilderBody
|
||||||
|
): Boolean = sendMessageDraft(
|
||||||
|
chat = chat,
|
||||||
|
draftId = draftId,
|
||||||
|
separator = separator,
|
||||||
|
threadId = threadId,
|
||||||
|
builderBody = builderBody
|
||||||
|
)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param replyMarkup Some [InlineKeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard]
|
* @param replyMarkup Some [InlineKeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard]
|
||||||
* as a builder for that
|
* as a builder for that
|
||||||
|
|||||||
@@ -0,0 +1,27 @@
|
|||||||
|
package dev.inmo.tgbotapi.extensions.api.stories
|
||||||
|
|
||||||
|
import dev.inmo.tgbotapi.bot.TelegramBot
|
||||||
|
import dev.inmo.tgbotapi.requests.stories.RepostStory
|
||||||
|
import dev.inmo.tgbotapi.types.IdChatIdentifier
|
||||||
|
import dev.inmo.tgbotapi.types.Seconds
|
||||||
|
import dev.inmo.tgbotapi.types.StoryId
|
||||||
|
import dev.inmo.tgbotapi.types.business_connection.BusinessConnectionId
|
||||||
|
import dev.inmo.tgbotapi.types.stories.Story
|
||||||
|
|
||||||
|
public suspend fun TelegramBot.repostStory(
|
||||||
|
businessConnectionId: BusinessConnectionId,
|
||||||
|
fromChatId: IdChatIdentifier,
|
||||||
|
storyId: StoryId,
|
||||||
|
activePeriod: Seconds,
|
||||||
|
postToChatPage: Boolean = false,
|
||||||
|
protectContent: Boolean = false,
|
||||||
|
): Story = execute(
|
||||||
|
RepostStory(
|
||||||
|
businessConnectionId = businessConnectionId,
|
||||||
|
fromChatId = fromChatId,
|
||||||
|
storyId = storyId,
|
||||||
|
activePeriod = activePeriod,
|
||||||
|
postToChatPage = postToChatPage,
|
||||||
|
protectContent = protectContent
|
||||||
|
)
|
||||||
|
)
|
||||||
@@ -632,6 +632,10 @@ public final class dev/inmo/tgbotapi/extensions/behaviour_builder/expectations/W
|
|||||||
public static synthetic fun waitChatBoostAdded$default (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/requests/abstracts/Request;Lkotlin/jvm/functions/Function2;ILjava/lang/Object;)Lkotlinx/coroutines/flow/Flow;
|
public static synthetic fun waitChatBoostAdded$default (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/requests/abstracts/Request;Lkotlin/jvm/functions/Function2;ILjava/lang/Object;)Lkotlinx/coroutines/flow/Flow;
|
||||||
public static final fun waitChatEvents (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/requests/abstracts/Request;Lkotlin/jvm/functions/Function2;)Lkotlinx/coroutines/flow/Flow;
|
public static final fun waitChatEvents (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/requests/abstracts/Request;Lkotlin/jvm/functions/Function2;)Lkotlinx/coroutines/flow/Flow;
|
||||||
public static synthetic fun waitChatEvents$default (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/requests/abstracts/Request;Lkotlin/jvm/functions/Function2;ILjava/lang/Object;)Lkotlinx/coroutines/flow/Flow;
|
public static synthetic fun waitChatEvents$default (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/requests/abstracts/Request;Lkotlin/jvm/functions/Function2;ILjava/lang/Object;)Lkotlinx/coroutines/flow/Flow;
|
||||||
|
public static final fun waitChatOwnerChanged (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/requests/abstracts/Request;Lkotlin/jvm/functions/Function2;)Lkotlinx/coroutines/flow/Flow;
|
||||||
|
public static synthetic fun waitChatOwnerChanged$default (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/requests/abstracts/Request;Lkotlin/jvm/functions/Function2;ILjava/lang/Object;)Lkotlinx/coroutines/flow/Flow;
|
||||||
|
public static final fun waitChatOwnerLeft (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/requests/abstracts/Request;Lkotlin/jvm/functions/Function2;)Lkotlinx/coroutines/flow/Flow;
|
||||||
|
public static synthetic fun waitChatOwnerLeft$default (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/requests/abstracts/Request;Lkotlin/jvm/functions/Function2;ILjava/lang/Object;)Lkotlinx/coroutines/flow/Flow;
|
||||||
public static final fun waitChatShared (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/requests/abstracts/Request;Lkotlin/jvm/functions/Function2;)Lkotlinx/coroutines/flow/Flow;
|
public static final fun waitChatShared (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/requests/abstracts/Request;Lkotlin/jvm/functions/Function2;)Lkotlinx/coroutines/flow/Flow;
|
||||||
public static synthetic fun waitChatShared$default (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/requests/abstracts/Request;Lkotlin/jvm/functions/Function2;ILjava/lang/Object;)Lkotlinx/coroutines/flow/Flow;
|
public static synthetic fun waitChatShared$default (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/requests/abstracts/Request;Lkotlin/jvm/functions/Function2;ILjava/lang/Object;)Lkotlinx/coroutines/flow/Flow;
|
||||||
public static final fun waitChatSharedRequest (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/requests/abstracts/Request;Lkotlin/jvm/functions/Function2;)Lkotlinx/coroutines/flow/Flow;
|
public static final fun waitChatSharedRequest (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/requests/abstracts/Request;Lkotlin/jvm/functions/Function2;)Lkotlinx/coroutines/flow/Flow;
|
||||||
@@ -747,6 +751,10 @@ public final class dev/inmo/tgbotapi/extensions/behaviour_builder/expectations/W
|
|||||||
public static synthetic fun waitChatBoostAddedEventsMessages$default (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/requests/abstracts/Request;Lkotlin/jvm/functions/Function2;ILjava/lang/Object;)Lkotlinx/coroutines/flow/Flow;
|
public static synthetic fun waitChatBoostAddedEventsMessages$default (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/requests/abstracts/Request;Lkotlin/jvm/functions/Function2;ILjava/lang/Object;)Lkotlinx/coroutines/flow/Flow;
|
||||||
public static final fun waitChatEventsMessages (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/requests/abstracts/Request;Lkotlin/jvm/functions/Function2;)Lkotlinx/coroutines/flow/Flow;
|
public static final fun waitChatEventsMessages (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/requests/abstracts/Request;Lkotlin/jvm/functions/Function2;)Lkotlinx/coroutines/flow/Flow;
|
||||||
public static synthetic fun waitChatEventsMessages$default (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/requests/abstracts/Request;Lkotlin/jvm/functions/Function2;ILjava/lang/Object;)Lkotlinx/coroutines/flow/Flow;
|
public static synthetic fun waitChatEventsMessages$default (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/requests/abstracts/Request;Lkotlin/jvm/functions/Function2;ILjava/lang/Object;)Lkotlinx/coroutines/flow/Flow;
|
||||||
|
public static final fun waitChatOwnerChangedEventsMessages (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/requests/abstracts/Request;Lkotlin/jvm/functions/Function2;)Lkotlinx/coroutines/flow/Flow;
|
||||||
|
public static synthetic fun waitChatOwnerChangedEventsMessages$default (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/requests/abstracts/Request;Lkotlin/jvm/functions/Function2;ILjava/lang/Object;)Lkotlinx/coroutines/flow/Flow;
|
||||||
|
public static final fun waitChatOwnerLeftEventsMessages (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/requests/abstracts/Request;Lkotlin/jvm/functions/Function2;)Lkotlinx/coroutines/flow/Flow;
|
||||||
|
public static synthetic fun waitChatOwnerLeftEventsMessages$default (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/requests/abstracts/Request;Lkotlin/jvm/functions/Function2;ILjava/lang/Object;)Lkotlinx/coroutines/flow/Flow;
|
||||||
public static final fun waitChatSharedEventsMessages (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/requests/abstracts/Request;Lkotlin/jvm/functions/Function2;)Lkotlinx/coroutines/flow/Flow;
|
public static final fun waitChatSharedEventsMessages (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/requests/abstracts/Request;Lkotlin/jvm/functions/Function2;)Lkotlinx/coroutines/flow/Flow;
|
||||||
public static synthetic fun waitChatSharedEventsMessages$default (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/requests/abstracts/Request;Lkotlin/jvm/functions/Function2;ILjava/lang/Object;)Lkotlinx/coroutines/flow/Flow;
|
public static synthetic fun waitChatSharedEventsMessages$default (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/requests/abstracts/Request;Lkotlin/jvm/functions/Function2;ILjava/lang/Object;)Lkotlinx/coroutines/flow/Flow;
|
||||||
public static final fun waitChatSharedRequestEventsMessages (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/requests/abstracts/Request;Lkotlin/jvm/functions/Function2;)Lkotlinx/coroutines/flow/Flow;
|
public static final fun waitChatSharedRequestEventsMessages (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/requests/abstracts/Request;Lkotlin/jvm/functions/Function2;)Lkotlinx/coroutines/flow/Flow;
|
||||||
@@ -873,31 +881,31 @@ public final class dev/inmo/tgbotapi/extensions/behaviour_builder/expectations/W
|
|||||||
public final class dev/inmo/tgbotapi/extensions/behaviour_builder/expectations/WaitMentionKt {
|
public final class dev/inmo/tgbotapi/extensions/behaviour_builder/expectations/WaitMentionKt {
|
||||||
public static final fun filterMentions (Lkotlinx/coroutines/flow/Flow;Ldev/inmo/tgbotapi/types/chat/User;)Lkotlinx/coroutines/flow/Flow;
|
public static final fun filterMentions (Lkotlinx/coroutines/flow/Flow;Ldev/inmo/tgbotapi/types/chat/User;)Lkotlinx/coroutines/flow/Flow;
|
||||||
public static final fun filterMentions-eC7Nk8U (Lkotlinx/coroutines/flow/Flow;Ljava/lang/String;)Lkotlinx/coroutines/flow/Flow;
|
public static final fun filterMentions-eC7Nk8U (Lkotlinx/coroutines/flow/Flow;Ljava/lang/String;)Lkotlinx/coroutines/flow/Flow;
|
||||||
public static final fun filterTextMentions-WiG6Fm4 (Lkotlinx/coroutines/flow/Flow;J)Lkotlinx/coroutines/flow/Flow;
|
public static final fun filterTextMentions (Lkotlinx/coroutines/flow/Flow;Ldev/inmo/tgbotapi/types/IdChatIdentifier;)Lkotlinx/coroutines/flow/Flow;
|
||||||
public static final fun isWithMention (Ldev/inmo/tgbotapi/types/message/content/TextedContent;Ldev/inmo/tgbotapi/types/chat/User;)Z
|
public static final fun isWithMention (Ldev/inmo/tgbotapi/types/message/content/TextedContent;Ldev/inmo/tgbotapi/types/chat/User;)Z
|
||||||
public static final fun isWithMention-eC7Nk8U (Ldev/inmo/tgbotapi/types/message/content/TextedContent;Ljava/lang/String;)Z
|
public static final fun isWithMention-eC7Nk8U (Ldev/inmo/tgbotapi/types/message/content/TextedContent;Ljava/lang/String;)Z
|
||||||
public static final fun isWithTextMention-WiG6Fm4 (Ldev/inmo/tgbotapi/types/message/content/TextedContent;J)Z
|
public static final fun isWithTextMention (Ldev/inmo/tgbotapi/types/message/content/TextedContent;Ldev/inmo/tgbotapi/types/IdChatIdentifier;)Z
|
||||||
public static final fun waitContentWithMentions (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/requests/abstracts/Request;Lkotlin/jvm/functions/Function2;)Lkotlinx/coroutines/flow/Flow;
|
public static final fun waitContentWithMentions (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/requests/abstracts/Request;Lkotlin/jvm/functions/Function2;)Lkotlinx/coroutines/flow/Flow;
|
||||||
public static synthetic fun waitContentWithMentions$default (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/requests/abstracts/Request;Lkotlin/jvm/functions/Function2;ILjava/lang/Object;)Lkotlinx/coroutines/flow/Flow;
|
public static synthetic fun waitContentWithMentions$default (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/requests/abstracts/Request;Lkotlin/jvm/functions/Function2;ILjava/lang/Object;)Lkotlinx/coroutines/flow/Flow;
|
||||||
public static final fun waitContentWithMentions-QGcck-U (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ljava/lang/String;Ldev/inmo/tgbotapi/requests/abstracts/Request;Lkotlin/jvm/functions/Function2;)Lkotlinx/coroutines/flow/Flow;
|
public static final fun waitContentWithMentions-QGcck-U (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ljava/lang/String;Ldev/inmo/tgbotapi/requests/abstracts/Request;Lkotlin/jvm/functions/Function2;)Lkotlinx/coroutines/flow/Flow;
|
||||||
public static synthetic fun waitContentWithMentions-QGcck-U$default (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ljava/lang/String;Ldev/inmo/tgbotapi/requests/abstracts/Request;Lkotlin/jvm/functions/Function2;ILjava/lang/Object;)Lkotlinx/coroutines/flow/Flow;
|
public static synthetic fun waitContentWithMentions-QGcck-U$default (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ljava/lang/String;Ldev/inmo/tgbotapi/requests/abstracts/Request;Lkotlin/jvm/functions/Function2;ILjava/lang/Object;)Lkotlinx/coroutines/flow/Flow;
|
||||||
public static final fun waitContentWithTextMentions-nc95W0g (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;JLdev/inmo/tgbotapi/requests/abstracts/Request;Lkotlin/jvm/functions/Function2;)Lkotlinx/coroutines/flow/Flow;
|
public static final fun waitContentWithTextMentions (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ldev/inmo/tgbotapi/requests/abstracts/Request;Lkotlin/jvm/functions/Function2;)Lkotlinx/coroutines/flow/Flow;
|
||||||
public static synthetic fun waitContentWithTextMentions-nc95W0g$default (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;JLdev/inmo/tgbotapi/requests/abstracts/Request;Lkotlin/jvm/functions/Function2;ILjava/lang/Object;)Lkotlinx/coroutines/flow/Flow;
|
public static synthetic fun waitContentWithTextMentions$default (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ldev/inmo/tgbotapi/requests/abstracts/Request;Lkotlin/jvm/functions/Function2;ILjava/lang/Object;)Lkotlinx/coroutines/flow/Flow;
|
||||||
}
|
}
|
||||||
|
|
||||||
public final class dev/inmo/tgbotapi/extensions/behaviour_builder/expectations/WaitMentionMessageKt {
|
public final class dev/inmo/tgbotapi/extensions/behaviour_builder/expectations/WaitMentionMessageKt {
|
||||||
public static final fun filterMentionsMessages (Lkotlinx/coroutines/flow/Flow;Ldev/inmo/tgbotapi/types/chat/User;)Lkotlinx/coroutines/flow/Flow;
|
public static final fun filterMentionsMessages (Lkotlinx/coroutines/flow/Flow;Ldev/inmo/tgbotapi/types/chat/User;)Lkotlinx/coroutines/flow/Flow;
|
||||||
public static final fun filterMentionsMessages-eC7Nk8U (Lkotlinx/coroutines/flow/Flow;Ljava/lang/String;)Lkotlinx/coroutines/flow/Flow;
|
public static final fun filterMentionsMessages-eC7Nk8U (Lkotlinx/coroutines/flow/Flow;Ljava/lang/String;)Lkotlinx/coroutines/flow/Flow;
|
||||||
public static final fun filterTextMentionsMessages-WiG6Fm4 (Lkotlinx/coroutines/flow/Flow;J)Lkotlinx/coroutines/flow/Flow;
|
public static final fun filterTextMentionsMessages (Lkotlinx/coroutines/flow/Flow;Ldev/inmo/tgbotapi/types/IdChatIdentifier;)Lkotlinx/coroutines/flow/Flow;
|
||||||
public static final fun isWithMention (Ldev/inmo/tgbotapi/types/message/abstracts/CommonMessage;Ldev/inmo/tgbotapi/types/chat/User;)Z
|
public static final fun isWithMention (Ldev/inmo/tgbotapi/types/message/abstracts/CommonMessage;Ldev/inmo/tgbotapi/types/chat/User;)Z
|
||||||
public static final fun isWithMention-eC7Nk8U (Ldev/inmo/tgbotapi/types/message/abstracts/CommonMessage;Ljava/lang/String;)Z
|
public static final fun isWithMention-eC7Nk8U (Ldev/inmo/tgbotapi/types/message/abstracts/CommonMessage;Ljava/lang/String;)Z
|
||||||
public static final fun isWithTextMention-WiG6Fm4 (Ldev/inmo/tgbotapi/types/message/abstracts/CommonMessage;J)Z
|
public static final fun isWithTextMention (Ldev/inmo/tgbotapi/types/message/abstracts/CommonMessage;Ldev/inmo/tgbotapi/types/IdChatIdentifier;)Z
|
||||||
public static final fun waitContentMessageWithMentions (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/requests/abstracts/Request;Lkotlin/jvm/functions/Function2;)Lkotlinx/coroutines/flow/Flow;
|
public static final fun waitContentMessageWithMentions (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/requests/abstracts/Request;Lkotlin/jvm/functions/Function2;)Lkotlinx/coroutines/flow/Flow;
|
||||||
public static synthetic fun waitContentMessageWithMentions$default (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/requests/abstracts/Request;Lkotlin/jvm/functions/Function2;ILjava/lang/Object;)Lkotlinx/coroutines/flow/Flow;
|
public static synthetic fun waitContentMessageWithMentions$default (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/requests/abstracts/Request;Lkotlin/jvm/functions/Function2;ILjava/lang/Object;)Lkotlinx/coroutines/flow/Flow;
|
||||||
public static final fun waitContentMessageWithMentions-QGcck-U (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ljava/lang/String;Ldev/inmo/tgbotapi/requests/abstracts/Request;Lkotlin/jvm/functions/Function2;)Lkotlinx/coroutines/flow/Flow;
|
public static final fun waitContentMessageWithMentions-QGcck-U (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ljava/lang/String;Ldev/inmo/tgbotapi/requests/abstracts/Request;Lkotlin/jvm/functions/Function2;)Lkotlinx/coroutines/flow/Flow;
|
||||||
public static synthetic fun waitContentMessageWithMentions-QGcck-U$default (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ljava/lang/String;Ldev/inmo/tgbotapi/requests/abstracts/Request;Lkotlin/jvm/functions/Function2;ILjava/lang/Object;)Lkotlinx/coroutines/flow/Flow;
|
public static synthetic fun waitContentMessageWithMentions-QGcck-U$default (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ljava/lang/String;Ldev/inmo/tgbotapi/requests/abstracts/Request;Lkotlin/jvm/functions/Function2;ILjava/lang/Object;)Lkotlinx/coroutines/flow/Flow;
|
||||||
public static final fun waitContentMessageWithTextMentions-nc95W0g (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;JLdev/inmo/tgbotapi/requests/abstracts/Request;Lkotlin/jvm/functions/Function2;)Lkotlinx/coroutines/flow/Flow;
|
public static final fun waitContentMessageWithTextMentions (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ldev/inmo/tgbotapi/requests/abstracts/Request;Lkotlin/jvm/functions/Function2;)Lkotlinx/coroutines/flow/Flow;
|
||||||
public static synthetic fun waitContentMessageWithTextMentions-nc95W0g$default (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;JLdev/inmo/tgbotapi/requests/abstracts/Request;Lkotlin/jvm/functions/Function2;ILjava/lang/Object;)Lkotlinx/coroutines/flow/Flow;
|
public static synthetic fun waitContentMessageWithTextMentions$default (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ldev/inmo/tgbotapi/requests/abstracts/Request;Lkotlin/jvm/functions/Function2;ILjava/lang/Object;)Lkotlinx/coroutines/flow/Flow;
|
||||||
}
|
}
|
||||||
|
|
||||||
public final class dev/inmo/tgbotapi/extensions/behaviour_builder/expectations/WaitPaidMediaPurchasedKt {
|
public final class dev/inmo/tgbotapi/extensions/behaviour_builder/expectations/WaitPaidMediaPurchasedKt {
|
||||||
@@ -1358,6 +1366,10 @@ public final class dev/inmo/tgbotapi/extensions/behaviour_builder/triggers_handl
|
|||||||
public static synthetic fun onChatBoostAdded$default (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function3;ILjava/lang/Object;)Lkotlinx/coroutines/Job;
|
public static synthetic fun onChatBoostAdded$default (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function3;ILjava/lang/Object;)Lkotlinx/coroutines/Job;
|
||||||
public static final fun onChatEvent (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function3;)Lkotlinx/coroutines/Job;
|
public static final fun onChatEvent (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function3;)Lkotlinx/coroutines/Job;
|
||||||
public static synthetic fun onChatEvent$default (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function3;ILjava/lang/Object;)Lkotlinx/coroutines/Job;
|
public static synthetic fun onChatEvent$default (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function3;ILjava/lang/Object;)Lkotlinx/coroutines/Job;
|
||||||
|
public static final fun onChatOwnerChanged (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function3;)Lkotlinx/coroutines/Job;
|
||||||
|
public static synthetic fun onChatOwnerChanged$default (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function3;ILjava/lang/Object;)Lkotlinx/coroutines/Job;
|
||||||
|
public static final fun onChatOwnerLeft (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function3;)Lkotlinx/coroutines/Job;
|
||||||
|
public static synthetic fun onChatOwnerLeft$default (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function3;ILjava/lang/Object;)Lkotlinx/coroutines/Job;
|
||||||
public static final fun onChatShared (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function3;)Lkotlinx/coroutines/Job;
|
public static final fun onChatShared (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function3;)Lkotlinx/coroutines/Job;
|
||||||
public static synthetic fun onChatShared$default (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function3;ILjava/lang/Object;)Lkotlinx/coroutines/Job;
|
public static synthetic fun onChatShared$default (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function3;ILjava/lang/Object;)Lkotlinx/coroutines/Job;
|
||||||
public static final fun onChatSharedRequest (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function3;)Lkotlinx/coroutines/Job;
|
public static final fun onChatSharedRequest (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function3;)Lkotlinx/coroutines/Job;
|
||||||
@@ -1408,6 +1420,10 @@ public final class dev/inmo/tgbotapi/extensions/behaviour_builder/triggers_handl
|
|||||||
public static synthetic fun onPinnedMessage$default (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function3;ILjava/lang/Object;)Lkotlinx/coroutines/Job;
|
public static synthetic fun onPinnedMessage$default (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function3;ILjava/lang/Object;)Lkotlinx/coroutines/Job;
|
||||||
public static final fun onPrivateEvent (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function3;)Lkotlinx/coroutines/Job;
|
public static final fun onPrivateEvent (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function3;)Lkotlinx/coroutines/Job;
|
||||||
public static synthetic fun onPrivateEvent$default (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function3;ILjava/lang/Object;)Lkotlinx/coroutines/Job;
|
public static synthetic fun onPrivateEvent$default (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function3;ILjava/lang/Object;)Lkotlinx/coroutines/Job;
|
||||||
|
public static final fun onPrivateForumTopicCreated (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function3;)Lkotlinx/coroutines/Job;
|
||||||
|
public static synthetic fun onPrivateForumTopicCreated$default (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function3;ILjava/lang/Object;)Lkotlinx/coroutines/Job;
|
||||||
|
public static final fun onPrivateForumTopicEdited (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function3;)Lkotlinx/coroutines/Job;
|
||||||
|
public static synthetic fun onPrivateForumTopicEdited$default (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function3;ILjava/lang/Object;)Lkotlinx/coroutines/Job;
|
||||||
public static final fun onProximityAlertTriggered (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function3;)Lkotlinx/coroutines/Job;
|
public static final fun onProximityAlertTriggered (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function3;)Lkotlinx/coroutines/Job;
|
||||||
public static synthetic fun onProximityAlertTriggered$default (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function3;ILjava/lang/Object;)Lkotlinx/coroutines/Job;
|
public static synthetic fun onProximityAlertTriggered$default (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function3;ILjava/lang/Object;)Lkotlinx/coroutines/Job;
|
||||||
public static final fun onPublicChatEvent (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function3;)Lkotlinx/coroutines/Job;
|
public static final fun onPublicChatEvent (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function3;)Lkotlinx/coroutines/Job;
|
||||||
@@ -1550,28 +1566,28 @@ public final class dev/inmo/tgbotapi/extensions/behaviour_builder/triggers_handl
|
|||||||
public static synthetic fun onMentionWithVoiceContent$default (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function3;ILjava/lang/Object;)Lkotlinx/coroutines/Job;
|
public static synthetic fun onMentionWithVoiceContent$default (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function3;ILjava/lang/Object;)Lkotlinx/coroutines/Job;
|
||||||
public static final fun onMentionWithVoiceContent-KtuvvGA (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ljava/lang/String;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function3;)Lkotlinx/coroutines/Job;
|
public static final fun onMentionWithVoiceContent-KtuvvGA (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ljava/lang/String;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function3;)Lkotlinx/coroutines/Job;
|
||||||
public static synthetic fun onMentionWithVoiceContent-KtuvvGA$default (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ljava/lang/String;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function3;ILjava/lang/Object;)Lkotlinx/coroutines/Job;
|
public static synthetic fun onMentionWithVoiceContent-KtuvvGA$default (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ljava/lang/String;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function3;ILjava/lang/Object;)Lkotlinx/coroutines/Job;
|
||||||
public static final fun onTextMentionWithAnimationContent-VjR9mJc (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;JLdev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function3;)Lkotlinx/coroutines/Job;
|
public static final fun onTextMentionWithAnimationContent (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function3;)Lkotlinx/coroutines/Job;
|
||||||
public static synthetic fun onTextMentionWithAnimationContent-VjR9mJc$default (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;JLdev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function3;ILjava/lang/Object;)Lkotlinx/coroutines/Job;
|
public static synthetic fun onTextMentionWithAnimationContent$default (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function3;ILjava/lang/Object;)Lkotlinx/coroutines/Job;
|
||||||
public static final fun onTextMentionWithAnyContent-VjR9mJc (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;JLdev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function3;)Lkotlinx/coroutines/Job;
|
public static final fun onTextMentionWithAnyContent (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function3;)Lkotlinx/coroutines/Job;
|
||||||
public static synthetic fun onTextMentionWithAnyContent-VjR9mJc$default (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;JLdev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function3;ILjava/lang/Object;)Lkotlinx/coroutines/Job;
|
public static synthetic fun onTextMentionWithAnyContent$default (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function3;ILjava/lang/Object;)Lkotlinx/coroutines/Job;
|
||||||
public static final fun onTextMentionWithAudioContent-VjR9mJc (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;JLdev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function3;)Lkotlinx/coroutines/Job;
|
public static final fun onTextMentionWithAudioContent (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function3;)Lkotlinx/coroutines/Job;
|
||||||
public static synthetic fun onTextMentionWithAudioContent-VjR9mJc$default (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;JLdev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function3;ILjava/lang/Object;)Lkotlinx/coroutines/Job;
|
public static synthetic fun onTextMentionWithAudioContent$default (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function3;ILjava/lang/Object;)Lkotlinx/coroutines/Job;
|
||||||
public static final fun onTextMentionWithDocumentContent-VjR9mJc (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;JLdev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function3;)Lkotlinx/coroutines/Job;
|
public static final fun onTextMentionWithDocumentContent (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function3;)Lkotlinx/coroutines/Job;
|
||||||
public static synthetic fun onTextMentionWithDocumentContent-VjR9mJc$default (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;JLdev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function3;ILjava/lang/Object;)Lkotlinx/coroutines/Job;
|
public static synthetic fun onTextMentionWithDocumentContent$default (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function3;ILjava/lang/Object;)Lkotlinx/coroutines/Job;
|
||||||
public static final fun onTextMentionWithMediaGroupContent-VjR9mJc (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;JLdev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function3;)Lkotlinx/coroutines/Job;
|
public static final fun onTextMentionWithMediaGroupContent (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function3;)Lkotlinx/coroutines/Job;
|
||||||
public static synthetic fun onTextMentionWithMediaGroupContent-VjR9mJc$default (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;JLdev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function3;ILjava/lang/Object;)Lkotlinx/coroutines/Job;
|
public static synthetic fun onTextMentionWithMediaGroupContent$default (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function3;ILjava/lang/Object;)Lkotlinx/coroutines/Job;
|
||||||
public static final fun onTextMentionWithMediaGroupPartContent-VjR9mJc (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;JLdev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function3;)Lkotlinx/coroutines/Job;
|
public static final fun onTextMentionWithMediaGroupPartContent (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function3;)Lkotlinx/coroutines/Job;
|
||||||
public static synthetic fun onTextMentionWithMediaGroupPartContent-VjR9mJc$default (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;JLdev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function3;ILjava/lang/Object;)Lkotlinx/coroutines/Job;
|
public static synthetic fun onTextMentionWithMediaGroupPartContent$default (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function3;ILjava/lang/Object;)Lkotlinx/coroutines/Job;
|
||||||
public static final fun onTextMentionWithPhotoContent-VjR9mJc (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;JLdev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function3;)Lkotlinx/coroutines/Job;
|
public static final fun onTextMentionWithPhotoContent (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function3;)Lkotlinx/coroutines/Job;
|
||||||
public static synthetic fun onTextMentionWithPhotoContent-VjR9mJc$default (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;JLdev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function3;ILjava/lang/Object;)Lkotlinx/coroutines/Job;
|
public static synthetic fun onTextMentionWithPhotoContent$default (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function3;ILjava/lang/Object;)Lkotlinx/coroutines/Job;
|
||||||
public static final fun onTextMentionWithTextContent-VjR9mJc (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;JLdev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function3;)Lkotlinx/coroutines/Job;
|
public static final fun onTextMentionWithTextContent (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function3;)Lkotlinx/coroutines/Job;
|
||||||
public static synthetic fun onTextMentionWithTextContent-VjR9mJc$default (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;JLdev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function3;ILjava/lang/Object;)Lkotlinx/coroutines/Job;
|
public static synthetic fun onTextMentionWithTextContent$default (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function3;ILjava/lang/Object;)Lkotlinx/coroutines/Job;
|
||||||
public static final fun onTextMentionWithVideoContent-VjR9mJc (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;JLdev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function3;)Lkotlinx/coroutines/Job;
|
public static final fun onTextMentionWithVideoContent (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function3;)Lkotlinx/coroutines/Job;
|
||||||
public static synthetic fun onTextMentionWithVideoContent-VjR9mJc$default (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;JLdev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function3;ILjava/lang/Object;)Lkotlinx/coroutines/Job;
|
public static synthetic fun onTextMentionWithVideoContent$default (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function3;ILjava/lang/Object;)Lkotlinx/coroutines/Job;
|
||||||
public static final fun onTextMentionWithVisualMediaGroupPartContent-VjR9mJc (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;JLdev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function3;)Lkotlinx/coroutines/Job;
|
public static final fun onTextMentionWithVisualMediaGroupPartContent (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function3;)Lkotlinx/coroutines/Job;
|
||||||
public static synthetic fun onTextMentionWithVisualMediaGroupPartContent-VjR9mJc$default (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;JLdev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function3;ILjava/lang/Object;)Lkotlinx/coroutines/Job;
|
public static synthetic fun onTextMentionWithVisualMediaGroupPartContent$default (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function3;ILjava/lang/Object;)Lkotlinx/coroutines/Job;
|
||||||
public static final fun onTextMentionWithVoiceContent-VjR9mJc (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;JLdev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function3;)Lkotlinx/coroutines/Job;
|
public static final fun onTextMentionWithVoiceContent (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function3;)Lkotlinx/coroutines/Job;
|
||||||
public static synthetic fun onTextMentionWithVoiceContent-VjR9mJc$default (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;JLdev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function3;ILjava/lang/Object;)Lkotlinx/coroutines/Job;
|
public static synthetic fun onTextMentionWithVoiceContent$default (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function3;ILjava/lang/Object;)Lkotlinx/coroutines/Job;
|
||||||
}
|
}
|
||||||
|
|
||||||
public final class dev/inmo/tgbotapi/extensions/behaviour_builder/triggers_handling/PaidMediaPurchasedTriggersKt {
|
public final class dev/inmo/tgbotapi/extensions/behaviour_builder/triggers_handling/PaidMediaPurchasedTriggersKt {
|
||||||
@@ -1803,8 +1819,8 @@ public final class dev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_f
|
|||||||
|
|
||||||
public final class dev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/ByUserIdChosenInlineResultMarkerFactory : dev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory {
|
public final class dev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/ByUserIdChosenInlineResultMarkerFactory : dev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory {
|
||||||
public static final field INSTANCE Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/ByUserIdChosenInlineResultMarkerFactory;
|
public static final field INSTANCE Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/ByUserIdChosenInlineResultMarkerFactory;
|
||||||
|
public fun invoke (Ldev/inmo/tgbotapi/types/InlineQueries/ChosenInlineResult/ChosenInlineResult;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
public synthetic fun invoke (Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
public synthetic fun invoke (Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
public fun invoke-IODSwXc (Ldev/inmo/tgbotapi/types/InlineQueries/ChosenInlineResult/ChosenInlineResult;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public final class dev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/ByUserInlineQueryMarkerFactory : dev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory {
|
public final class dev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/ByUserInlineQueryMarkerFactory : dev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory {
|
||||||
|
|||||||
@@ -239,6 +239,16 @@ fun BehaviourContext.waitChatBoostAdded(
|
|||||||
errorFactory: NullableRequestBuilder<*> = { null }
|
errorFactory: NullableRequestBuilder<*> = { null }
|
||||||
) = waitEvents<ChatBoostAdded>(initRequest, errorFactory)
|
) = waitEvents<ChatBoostAdded>(initRequest, errorFactory)
|
||||||
|
|
||||||
|
fun BehaviourContext.waitChatOwnerLeft(
|
||||||
|
initRequest: Request<*>? = null,
|
||||||
|
errorFactory: NullableRequestBuilder<*> = { null }
|
||||||
|
) = waitEvents<ChatOwnerLeft>(initRequest, errorFactory)
|
||||||
|
|
||||||
|
fun BehaviourContext.waitChatOwnerChanged(
|
||||||
|
initRequest: Request<*>? = null,
|
||||||
|
errorFactory: NullableRequestBuilder<*> = { null }
|
||||||
|
) = waitEvents<ChatOwnerChanged>(initRequest, errorFactory)
|
||||||
|
|
||||||
fun BehaviourContext.waitChatBackgroundSet(
|
fun BehaviourContext.waitChatBackgroundSet(
|
||||||
initRequest: Request<*>? = null,
|
initRequest: Request<*>? = null,
|
||||||
errorFactory: NullableRequestBuilder<*> = { null }
|
errorFactory: NullableRequestBuilder<*> = { null }
|
||||||
|
|||||||
@@ -222,6 +222,16 @@ fun BehaviourContext.waitChatBoostAddedEventsMessages(
|
|||||||
errorFactory: NullableRequestBuilder<*> = { null }
|
errorFactory: NullableRequestBuilder<*> = { null }
|
||||||
) = waitEventsMessages<ChatBoostAdded>(initRequest, errorFactory)
|
) = waitEventsMessages<ChatBoostAdded>(initRequest, errorFactory)
|
||||||
|
|
||||||
|
fun BehaviourContext.waitChatOwnerLeftEventsMessages(
|
||||||
|
initRequest: Request<*>? = null,
|
||||||
|
errorFactory: NullableRequestBuilder<*> = { null }
|
||||||
|
) = waitEventsMessages<ChatOwnerLeft>(initRequest, errorFactory)
|
||||||
|
|
||||||
|
fun BehaviourContext.waitChatOwnerChangedEventsMessages(
|
||||||
|
initRequest: Request<*>? = null,
|
||||||
|
errorFactory: NullableRequestBuilder<*> = { null }
|
||||||
|
) = waitEventsMessages<ChatOwnerChanged>(initRequest, errorFactory)
|
||||||
|
|
||||||
fun BehaviourContext.waitChatBackgroundSetEventsMessages(
|
fun BehaviourContext.waitChatBackgroundSetEventsMessages(
|
||||||
initRequest: Request<*>? = null,
|
initRequest: Request<*>? = null,
|
||||||
errorFactory: NullableRequestBuilder<*> = { null }
|
errorFactory: NullableRequestBuilder<*> = { null }
|
||||||
|
|||||||
@@ -659,6 +659,27 @@ fun <BC : BehaviourContext> BC.onForumTopicCreated(
|
|||||||
scenarioReceiver: CustomBehaviourContextAndTypeReceiver<BC, Unit, SupergroupEventMessage<ForumTopicCreated>>
|
scenarioReceiver: CustomBehaviourContextAndTypeReceiver<BC, Unit, SupergroupEventMessage<ForumTopicCreated>>
|
||||||
) = onEventWithCustomChatEventMessage(initialFilter, subcontextUpdatesFilter, markerFactory, additionalSubcontextInitialAction, scenarioReceiver)
|
) = onEventWithCustomChatEventMessage(initialFilter, subcontextUpdatesFilter, markerFactory, additionalSubcontextInitialAction, scenarioReceiver)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param initialFilter This filter will be called to remove unnecessary data BEFORE [scenarioReceiver] call
|
||||||
|
* @param subcontextUpdatesFilter This filter will be applied to each update inside of [scenarioReceiver]. For example,
|
||||||
|
* this filter will be used if you will call [dev.inmo.tgbotapi.extensions.behaviour_builder.expectations.waitContentMessage].
|
||||||
|
* Use [dev.inmo.tgbotapi.extensions.behaviour_builder.BehaviourContextAndTwoTypesReceiver] function to create your own.
|
||||||
|
* Use [dev.inmo.tgbotapi.extensions.behaviour_builder.utils.plus] or [dev.inmo.tgbotapi.extensions.behaviour_builder.utils.times]
|
||||||
|
* to combinate several filters
|
||||||
|
* @param [markerFactory] **Pass null to handle requests fully parallel**. Will be used to identify different "stream".
|
||||||
|
* [scenarioReceiver] will be called synchronously in one "stream". Output of [markerFactory] will be used as a key for
|
||||||
|
* "stream"
|
||||||
|
* @param scenarioReceiver Main callback which will be used to handle incoming data if [initialFilter] will pass that
|
||||||
|
* data
|
||||||
|
*/
|
||||||
|
fun <BC : BehaviourContext> BC.onPrivateForumTopicCreated(
|
||||||
|
initialFilter: SimpleFilter<PrivateEventMessage<ForumTopicCreated>>? = null,
|
||||||
|
subcontextUpdatesFilter: CustomBehaviourContextAndTwoTypesReceiver<BC, Boolean, PrivateEventMessage<ForumTopicCreated>, Update>? = MessageFilterByChat,
|
||||||
|
markerFactory: MarkerFactory<in ChatEventMessage<ForumTopicCreated>, Any>? = ByChatMessageMarkerFactory,
|
||||||
|
additionalSubcontextInitialAction: CustomBehaviourContextAndTwoTypesReceiver<BC, Unit, Update, ChatEventMessage<ForumTopicCreated>>? = null,
|
||||||
|
scenarioReceiver: CustomBehaviourContextAndTypeReceiver<BC, Unit, PrivateEventMessage<ForumTopicCreated>>
|
||||||
|
) = onEventWithCustomChatEventMessage(initialFilter, subcontextUpdatesFilter, markerFactory, additionalSubcontextInitialAction, scenarioReceiver)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param initialFilter This filter will be called to remove unnecessary data BEFORE [scenarioReceiver] call
|
* @param initialFilter This filter will be called to remove unnecessary data BEFORE [scenarioReceiver] call
|
||||||
* @param subcontextUpdatesFilter This filter will be applied to each update inside of [scenarioReceiver]. For example,
|
* @param subcontextUpdatesFilter This filter will be applied to each update inside of [scenarioReceiver]. For example,
|
||||||
@@ -702,6 +723,28 @@ fun <BC : BehaviourContext> BC.onForumTopicEdited(
|
|||||||
scenarioReceiver: CustomBehaviourContextAndTypeReceiver<BC, Unit, SupergroupEventMessage<ForumTopicEdited>>
|
scenarioReceiver: CustomBehaviourContextAndTypeReceiver<BC, Unit, SupergroupEventMessage<ForumTopicEdited>>
|
||||||
) = onEventWithCustomChatEventMessage(initialFilter, subcontextUpdatesFilter, markerFactory, additionalSubcontextInitialAction, scenarioReceiver)
|
) = onEventWithCustomChatEventMessage(initialFilter, subcontextUpdatesFilter, markerFactory, additionalSubcontextInitialAction, scenarioReceiver)
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param initialFilter This filter will be called to remove unnecessary data BEFORE [scenarioReceiver] call
|
||||||
|
* @param subcontextUpdatesFilter This filter will be applied to each update inside of [scenarioReceiver]. For example,
|
||||||
|
* this filter will be used if you will call [dev.inmo.tgbotapi.extensions.behaviour_builder.expectations.waitContentMessage].
|
||||||
|
* Use [dev.inmo.tgbotapi.extensions.behaviour_builder.BehaviourContextAndTwoTypesReceiver] function to create your own.
|
||||||
|
* Use [dev.inmo.tgbotapi.extensions.behaviour_builder.utils.plus] or [dev.inmo.tgbotapi.extensions.behaviour_builder.utils.times]
|
||||||
|
* to combinate several filters
|
||||||
|
* @param [markerFactory] **Pass null to handle requests fully parallel**. Will be used to identify different "stream".
|
||||||
|
* [scenarioReceiver] will be called synchronously in one "stream". Output of [markerFactory] will be used as a key for
|
||||||
|
* "stream"
|
||||||
|
* @param scenarioReceiver Main callback which will be used to handle incoming data if [initialFilter] will pass that
|
||||||
|
* data
|
||||||
|
*/
|
||||||
|
fun <BC : BehaviourContext> BC.onPrivateForumTopicEdited(
|
||||||
|
initialFilter: SimpleFilter<PrivateEventMessage<ForumTopicEdited>>? = null,
|
||||||
|
subcontextUpdatesFilter: CustomBehaviourContextAndTwoTypesReceiver<BC, Boolean, PrivateEventMessage<ForumTopicEdited>, Update>? = MessageFilterByChat,
|
||||||
|
markerFactory: MarkerFactory<in ChatEventMessage<ForumTopicEdited>, Any>? = ByChatMessageMarkerFactory,
|
||||||
|
additionalSubcontextInitialAction: CustomBehaviourContextAndTwoTypesReceiver<BC, Unit, Update, ChatEventMessage<ForumTopicEdited>>? = null,
|
||||||
|
scenarioReceiver: CustomBehaviourContextAndTypeReceiver<BC, Unit, PrivateEventMessage<ForumTopicEdited>>
|
||||||
|
) = onEventWithCustomChatEventMessage(initialFilter, subcontextUpdatesFilter, markerFactory, additionalSubcontextInitialAction, scenarioReceiver)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param initialFilter This filter will be called to remove unnecessary data BEFORE [scenarioReceiver] call
|
* @param initialFilter This filter will be called to remove unnecessary data BEFORE [scenarioReceiver] call
|
||||||
* @param subcontextUpdatesFilter This filter will be applied to each update inside of [scenarioReceiver]. For example,
|
* @param subcontextUpdatesFilter This filter will be applied to each update inside of [scenarioReceiver]. For example,
|
||||||
@@ -968,6 +1011,50 @@ fun <BC : BehaviourContext> BC.onChatBoostAdded(
|
|||||||
) = onEventWithCustomChatEventMessage(initialFilter, subcontextUpdatesFilter, markerFactory, additionalSubcontextInitialAction, scenarioReceiver)
|
) = onEventWithCustomChatEventMessage(initialFilter, subcontextUpdatesFilter, markerFactory, additionalSubcontextInitialAction, scenarioReceiver)
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param initialFilter This filter will be called to remove unnecessary data BEFORE [scenarioReceiver] call
|
||||||
|
* @param subcontextUpdatesFilter This filter will be applied to each update inside of [scenarioReceiver]. For example,
|
||||||
|
* this filter will be used if you will call [dev.inmo.tgbotapi.extensions.behaviour_builder.expectations.waitContentMessage].
|
||||||
|
* Use [dev.inmo.tgbotapi.extensions.behaviour_builder.BehaviourContextAndTwoTypesReceiver] function to create your own.
|
||||||
|
* Use [dev.inmo.tgbotapi.extensions.behaviour_builder.utils.plus] or [dev.inmo.tgbotapi.extensions.behaviour_builder.utils.times]
|
||||||
|
* to combinate several filters
|
||||||
|
* @param [markerFactory] **Pass null to handle requests fully parallel**. Will be used to identify different "stream".
|
||||||
|
* [scenarioReceiver] will be called synchronously in one "stream". Output of [markerFactory] will be used as a key for
|
||||||
|
* "stream"
|
||||||
|
* @param scenarioReceiver Main callback which will be used to handle incoming data if [initialFilter] will pass that
|
||||||
|
* data
|
||||||
|
*/
|
||||||
|
fun <BC : BehaviourContext> BC.onChatOwnerLeft(
|
||||||
|
initialFilter: SimpleFilter<ChatEventMessage<ChatOwnerLeft>>? = null,
|
||||||
|
subcontextUpdatesFilter: CustomBehaviourContextAndTwoTypesReceiver<BC, Boolean, ChatEventMessage<ChatOwnerLeft>, Update>? = MessageFilterByChat,
|
||||||
|
markerFactory: MarkerFactory<in ChatEventMessage<ChatOwnerLeft>, Any>? = ByChatMessageMarkerFactory,
|
||||||
|
additionalSubcontextInitialAction: CustomBehaviourContextAndTwoTypesReceiver<BC, Unit, Update, ChatEventMessage<ChatOwnerLeft>>? = null,
|
||||||
|
scenarioReceiver: CustomBehaviourContextAndTypeReceiver<BC, Unit, ChatEventMessage<ChatOwnerLeft>>
|
||||||
|
) = onEventWithCustomChatEventMessage(initialFilter, subcontextUpdatesFilter, markerFactory, additionalSubcontextInitialAction, scenarioReceiver)
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param initialFilter This filter will be called to remove unnecessary data BEFORE [scenarioReceiver] call
|
||||||
|
* @param subcontextUpdatesFilter This filter will be applied to each update inside of [scenarioReceiver]. For example,
|
||||||
|
* this filter will be used if you will call [dev.inmo.tgbotapi.extensions.behaviour_builder.expectations.waitContentMessage].
|
||||||
|
* Use [dev.inmo.tgbotapi.extensions.behaviour_builder.BehaviourContextAndTwoTypesReceiver] function to create your own.
|
||||||
|
* Use [dev.inmo.tgbotapi.extensions.behaviour_builder.utils.plus] or [dev.inmo.tgbotapi.extensions.behaviour_builder.utils.times]
|
||||||
|
* to combinate several filters
|
||||||
|
* @param [markerFactory] **Pass null to handle requests fully parallel**. Will be used to identify different "stream".
|
||||||
|
* [scenarioReceiver] will be called synchronously in one "stream". Output of [markerFactory] will be used as a key for
|
||||||
|
* "stream"
|
||||||
|
* @param scenarioReceiver Main callback which will be used to handle incoming data if [initialFilter] will pass that
|
||||||
|
* data
|
||||||
|
*/
|
||||||
|
fun <BC : BehaviourContext> BC.onChatOwnerChanged(
|
||||||
|
initialFilter: SimpleFilter<ChatEventMessage<ChatOwnerChanged>>? = null,
|
||||||
|
subcontextUpdatesFilter: CustomBehaviourContextAndTwoTypesReceiver<BC, Boolean, ChatEventMessage<ChatOwnerChanged>, Update>? = MessageFilterByChat,
|
||||||
|
markerFactory: MarkerFactory<in ChatEventMessage<ChatOwnerChanged>, Any>? = ByChatMessageMarkerFactory,
|
||||||
|
additionalSubcontextInitialAction: CustomBehaviourContextAndTwoTypesReceiver<BC, Unit, Update, ChatEventMessage<ChatOwnerChanged>>? = null,
|
||||||
|
scenarioReceiver: CustomBehaviourContextAndTypeReceiver<BC, Unit, ChatEventMessage<ChatOwnerChanged>>
|
||||||
|
) = onEventWithCustomChatEventMessage(initialFilter, subcontextUpdatesFilter, markerFactory, additionalSubcontextInitialAction, scenarioReceiver)
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param initialFilter This filter will be called to remove unnecessary data BEFORE [scenarioReceiver] call
|
* @param initialFilter This filter will be called to remove unnecessary data BEFORE [scenarioReceiver] call
|
||||||
* @param subcontextUpdatesFilter This filter will be applied to each update inside of [scenarioReceiver]. For example,
|
* @param subcontextUpdatesFilter This filter will be applied to each update inside of [scenarioReceiver]. For example,
|
||||||
|
|||||||
@@ -83,7 +83,7 @@ fun <BC : BehaviourContext, R, U : Update> CustomBehaviourContextAndTypeReceiver
|
|||||||
*/
|
*/
|
||||||
class DefaultCustomBehaviourContextAndTypeReceiver<BC : BehaviourContext, R, U : Update>(
|
class DefaultCustomBehaviourContextAndTypeReceiver<BC : BehaviourContext, R, U : Update>(
|
||||||
private val wrapperReceiver: CustomBehaviourContextAndTypeReceiver<BC, R, U>
|
private val wrapperReceiver: CustomBehaviourContextAndTypeReceiver<BC, R, U>
|
||||||
) : CustomBehaviourContextAndTypeReceiver<BC, R, U> {
|
) : suspend (BC, U) -> R {
|
||||||
private var botInfo: ExtendedBot? = null
|
private var botInfo: ExtendedBot? = null
|
||||||
private val mutex = Mutex()
|
private val mutex = Mutex()
|
||||||
|
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -3,9 +3,24 @@ package dev.inmo.tgbotapi.bot.ktor
|
|||||||
import dev.inmo.tgbotapi.requests.abstracts.Request
|
import dev.inmo.tgbotapi.requests.abstracts.Request
|
||||||
|
|
||||||
interface TelegramBotPipelinesHandler {
|
interface TelegramBotPipelinesHandler {
|
||||||
|
/**
|
||||||
|
* Will be called when any exception will happen due to the [request] handling inside of limiter block. This method
|
||||||
|
* will be called for each exception happened during call factory call
|
||||||
|
*/
|
||||||
|
suspend fun <T: Any> onRequestExceptionInLimiter(
|
||||||
|
request: Request<T>,
|
||||||
|
t: Throwable
|
||||||
|
): T? = null
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Will be called when any exception will happen due to the [request] handling. If returns value - that value
|
* Will be called when any exception will happen due to the [request] handling. If returns value - that value
|
||||||
* will be returned from [dev.inmo.tgbotapi.bot.RequestsExecutor.execute] instead
|
* will be returned from [dev.inmo.tgbotapi.bot.RequestsExecutor.execute] instead. In difference with
|
||||||
|
* [onRequestExceptionInLimiter], this method will be called only AFTER
|
||||||
|
* [dev.inmo.tgbotapi.bot.settings.limiters.RequestLimiter] will pass result of call factory execution outside of
|
||||||
|
* its [dev.inmo.tgbotapi.bot.settings.limiters.RequestLimiter.limit] function
|
||||||
|
*
|
||||||
|
* @see dev.inmo.tgbotapi.bot.ktor.base.DefaultKtorRequestsExecutor
|
||||||
|
* @see dev.inmo.tgbotapi.bot.settings.limiters.ExceptionsOnlyLimiter
|
||||||
*/
|
*/
|
||||||
suspend fun <T: Any> onRequestException(
|
suspend fun <T: Any> onRequestException(
|
||||||
request: Request<T>,
|
request: Request<T>,
|
||||||
|
|||||||
@@ -53,29 +53,33 @@ class DefaultKtorRequestsExecutor internal constructor(
|
|||||||
logger.v { "Start request $request" }
|
logger.v { "Start request $request" }
|
||||||
pipelineStepsHolder.onBeforeSearchCallFactory(request, callsFactories)
|
pipelineStepsHolder.onBeforeSearchCallFactory(request, callsFactories)
|
||||||
requestsLimiter.limit(request) {
|
requestsLimiter.limit(request) {
|
||||||
var result: T? = null
|
runCatching {
|
||||||
lateinit var factoryHandledRequest: KtorCallFactory
|
var result: T? = null
|
||||||
for (potentialFactory in callsFactories) {
|
lateinit var factoryHandledRequest: KtorCallFactory
|
||||||
pipelineStepsHolder.onBeforeCallFactoryMakeCall(request, potentialFactory)
|
for (potentialFactory in callsFactories) {
|
||||||
logger.v { "Trying factory $potentialFactory for $request" }
|
pipelineStepsHolder.onBeforeCallFactoryMakeCall(request, potentialFactory)
|
||||||
val resultFromFactory = potentialFactory.makeCall(
|
logger.v { "Trying factory $potentialFactory for $request" }
|
||||||
client,
|
val resultFromFactory = potentialFactory.makeCall(
|
||||||
telegramAPIUrlsKeeper,
|
client,
|
||||||
request,
|
telegramAPIUrlsKeeper,
|
||||||
jsonFormatter
|
request,
|
||||||
)
|
jsonFormatter
|
||||||
logger.v { "Result of factory $potentialFactory handling $request: $resultFromFactory" }
|
)
|
||||||
result = pipelineStepsHolder.onAfterCallFactoryMakeCall(resultFromFactory, request, potentialFactory)
|
logger.v { "Result of factory $potentialFactory handling $request: $resultFromFactory" }
|
||||||
logger.v { "Result of pipeline $pipelineStepsHolder handling $resultFromFactory: $result" }
|
result = pipelineStepsHolder.onAfterCallFactoryMakeCall(resultFromFactory, request, potentialFactory)
|
||||||
if (result != null) {
|
logger.v { "Result of pipeline $pipelineStepsHolder handling $resultFromFactory: $result" }
|
||||||
factoryHandledRequest = potentialFactory
|
if (result != null) {
|
||||||
break
|
factoryHandledRequest = potentialFactory
|
||||||
|
break
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
result ?.let {
|
result ?.let {
|
||||||
pipelineStepsHolder.onRequestResultPresented(it, request, factoryHandledRequest, callsFactories)
|
pipelineStepsHolder.onRequestResultPresented(it, request, factoryHandledRequest, callsFactories)
|
||||||
} ?: pipelineStepsHolder.onRequestResultAbsent(request, callsFactories) ?: error("Can't execute request: $request")
|
} ?: pipelineStepsHolder.onRequestResultAbsent(request, callsFactories) ?: error("Can't execute request: $request")
|
||||||
|
}.onFailure { e ->
|
||||||
|
pipelineStepsHolder.onRequestExceptionInLimiter(request, e) ?.let { return@let it } ?: throw e
|
||||||
|
}.getOrThrow()
|
||||||
}
|
}
|
||||||
}.let {
|
}.let {
|
||||||
val result = it.exceptionOrNull() ?.let { e ->
|
val result = it.exceptionOrNull() ?.let { e ->
|
||||||
|
|||||||
@@ -31,9 +31,16 @@ open class TelegramBotMiddleware(
|
|||||||
internal val onRequestResultPresented: (suspend (result: Any, request: Request<*>, resultCallFactory: KtorCallFactory, callsFactories: List<KtorCallFactory>) -> Any?)? = null,
|
internal val onRequestResultPresented: (suspend (result: Any, request: Request<*>, resultCallFactory: KtorCallFactory, callsFactories: List<KtorCallFactory>) -> Any?)? = null,
|
||||||
internal val onRequestResultAbsent: (suspend (request: Request<*>, callsFactories: List<KtorCallFactory>) -> Any?)? = null,
|
internal val onRequestResultAbsent: (suspend (request: Request<*>, callsFactories: List<KtorCallFactory>) -> Any?)? = null,
|
||||||
internal val onRequestReturnResult: (suspend (result: Result<*>, request: Request<*>, callsFactories: List<KtorCallFactory>) -> Result<Any?>?)? = null,
|
internal val onRequestReturnResult: (suspend (result: Result<*>, request: Request<*>, callsFactories: List<KtorCallFactory>) -> Result<Any?>?)? = null,
|
||||||
|
internal val onRequestExceptionInLimiter: (suspend (request: Request<*>, t: Throwable?) -> Any?)? = null,
|
||||||
val id: String = uuid4().toString()
|
val id: String = uuid4().toString()
|
||||||
) : TelegramBotPipelinesHandler {
|
) : TelegramBotPipelinesHandler {
|
||||||
object ResultAbsence : Throwable()
|
object ResultAbsence : Throwable()
|
||||||
|
|
||||||
|
override suspend fun <T : Any> onRequestExceptionInLimiter(request: Request<T>, t: Throwable): T? {
|
||||||
|
@Suppress("UNCHECKED_CAST")
|
||||||
|
return onRequestExceptionInLimiter ?.invoke(request, t) as? T
|
||||||
|
}
|
||||||
|
|
||||||
override suspend fun <T : Any> onRequestException(request: Request<T>, t: Throwable): T? {
|
override suspend fun <T : Any> onRequestException(request: Request<T>, t: Throwable): T? {
|
||||||
@Suppress("UNCHECKED_CAST")
|
@Suppress("UNCHECKED_CAST")
|
||||||
return onRequestException ?.invoke(request, t) as? T
|
return onRequestException ?.invoke(request, t) as? T
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ import dev.inmo.tgbotapi.requests.abstracts.Request
|
|||||||
|
|
||||||
@Warning("This API is experimental and subject of changes")
|
@Warning("This API is experimental and subject of changes")
|
||||||
class TelegramBotMiddlewareBuilder {
|
class TelegramBotMiddlewareBuilder {
|
||||||
|
var onRequestExceptionInLimiter: (suspend (request: Request<*>, t: Throwable?) -> Any?)? = null
|
||||||
var onRequestException: (suspend (request: Request<*>, t: Throwable?) -> Any?)? = null
|
var onRequestException: (suspend (request: Request<*>, t: Throwable?) -> Any?)? = null
|
||||||
var onBeforeSearchCallFactory: (suspend (request: Request<*>, callsFactories: List<KtorCallFactory>) -> Unit)? = null
|
var onBeforeSearchCallFactory: (suspend (request: Request<*>, callsFactories: List<KtorCallFactory>) -> Unit)? = null
|
||||||
var onBeforeCallFactoryMakeCall: (suspend (request: Request<*>, potentialFactory: KtorCallFactory) -> Unit)? = null
|
var onBeforeCallFactoryMakeCall: (suspend (request: Request<*>, potentialFactory: KtorCallFactory) -> Unit)? = null
|
||||||
@@ -17,6 +18,12 @@ class TelegramBotMiddlewareBuilder {
|
|||||||
var onRequestReturnResult: (suspend (result: Result<*>, request: Request<*>, callsFactories: List<KtorCallFactory>) -> Result<Any?>?)? = null
|
var onRequestReturnResult: (suspend (result: Result<*>, request: Request<*>, callsFactories: List<KtorCallFactory>) -> Result<Any?>?)? = null
|
||||||
var id: String = uuid4().toString()
|
var id: String = uuid4().toString()
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Useful way to set [onRequestException]
|
||||||
|
*/
|
||||||
|
fun doOnRequestExceptionInLimiter(block: suspend (request: Request<*>, t: Throwable?) -> Any?) {
|
||||||
|
onRequestExceptionInLimiter = block
|
||||||
|
}
|
||||||
/**
|
/**
|
||||||
* Useful way to set [onRequestException]
|
* Useful way to set [onRequestException]
|
||||||
*/
|
*/
|
||||||
@@ -63,6 +70,7 @@ class TelegramBotMiddlewareBuilder {
|
|||||||
@Warning("This API is experimental and subject of changes")
|
@Warning("This API is experimental and subject of changes")
|
||||||
fun build(): TelegramBotMiddleware {
|
fun build(): TelegramBotMiddleware {
|
||||||
return TelegramBotMiddleware(
|
return TelegramBotMiddleware(
|
||||||
|
onRequestExceptionInLimiter = onRequestExceptionInLimiter,
|
||||||
onRequestException = onRequestException,
|
onRequestException = onRequestException,
|
||||||
onBeforeSearchCallFactory = onBeforeSearchCallFactory,
|
onBeforeSearchCallFactory = onBeforeSearchCallFactory,
|
||||||
onBeforeCallFactoryMakeCall = onBeforeCallFactoryMakeCall,
|
onBeforeCallFactoryMakeCall = onBeforeCallFactoryMakeCall,
|
||||||
@@ -78,6 +86,7 @@ class TelegramBotMiddlewareBuilder {
|
|||||||
@Warning("This API is experimental and subject of changes")
|
@Warning("This API is experimental and subject of changes")
|
||||||
fun from(middleware: TelegramBotMiddleware, additionalSetup: TelegramBotMiddlewareBuilder.() -> Unit): TelegramBotMiddleware {
|
fun from(middleware: TelegramBotMiddleware, additionalSetup: TelegramBotMiddlewareBuilder.() -> Unit): TelegramBotMiddleware {
|
||||||
return TelegramBotMiddlewareBuilder().apply {
|
return TelegramBotMiddlewareBuilder().apply {
|
||||||
|
onRequestExceptionInLimiter = middleware.onRequestExceptionInLimiter
|
||||||
onRequestException = middleware.onRequestException
|
onRequestException = middleware.onRequestException
|
||||||
onBeforeSearchCallFactory = middleware.onBeforeSearchCallFactory
|
onBeforeSearchCallFactory = middleware.onBeforeSearchCallFactory
|
||||||
onBeforeCallFactoryMakeCall = middleware.onBeforeCallFactoryMakeCall
|
onBeforeCallFactoryMakeCall = middleware.onBeforeCallFactoryMakeCall
|
||||||
|
|||||||
@@ -10,6 +10,12 @@ import dev.inmo.tgbotapi.requests.abstracts.Request
|
|||||||
class TelegramBotMiddlewaresPipelinesHandler(
|
class TelegramBotMiddlewaresPipelinesHandler(
|
||||||
private val middlewares: List<TelegramBotMiddleware> = emptyList()
|
private val middlewares: List<TelegramBotMiddleware> = emptyList()
|
||||||
) : TelegramBotPipelinesHandler {
|
) : TelegramBotPipelinesHandler {
|
||||||
|
override suspend fun <T : Any> onRequestExceptionInLimiter(request: Request<T>, t: Throwable): T? {
|
||||||
|
return middlewares.firstNotNullOfOrNull {
|
||||||
|
it.onRequestExceptionInLimiter(request, t)
|
||||||
|
} ?: super.onRequestExceptionInLimiter(request, t)
|
||||||
|
}
|
||||||
|
|
||||||
override suspend fun <T : Any> onRequestException(request: Request<T>, t: Throwable): T? {
|
override suspend fun <T : Any> onRequestException(request: Request<T>, t: Throwable): T? {
|
||||||
return middlewares.firstNotNullOfOrNull {
|
return middlewares.firstNotNullOfOrNull {
|
||||||
it.onRequestException(request, t)
|
it.onRequestException(request, t)
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
package dev.inmo.tgbotapi.bot.settings.limiters
|
package dev.inmo.tgbotapi.bot.settings.limiters
|
||||||
|
|
||||||
import dev.inmo.tgbotapi.bot.exceptions.TooMuchRequestsException
|
import dev.inmo.tgbotapi.bot.exceptions.TooMuchRequestsException
|
||||||
|
import dev.inmo.tgbotapi.utils.isCausedUnresolvedAddressException
|
||||||
|
import io.ktor.util.network.UnresolvedAddressException
|
||||||
import kotlinx.coroutines.delay
|
import kotlinx.coroutines.delay
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -13,10 +15,10 @@ object ExceptionsOnlyLimiter : RequestLimiter {
|
|||||||
result = runCatching {
|
result = runCatching {
|
||||||
block()
|
block()
|
||||||
}.onFailure {
|
}.onFailure {
|
||||||
if (it is TooMuchRequestsException) {
|
when {
|
||||||
delay(it.retryAfter.leftToRetry)
|
it.isCausedUnresolvedAddressException() -> delay(1000L)
|
||||||
} else {
|
it is TooMuchRequestsException -> delay(it.retryAfter.leftToRetry)
|
||||||
throw it
|
else -> throw it
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -37,6 +37,8 @@ data class ForwardMessage(
|
|||||||
val disableNotification: Boolean = false,
|
val disableNotification: Boolean = false,
|
||||||
@SerialName(protectContentField)
|
@SerialName(protectContentField)
|
||||||
override val protectContent: Boolean = false,
|
override val protectContent: Boolean = false,
|
||||||
|
@SerialName(messageEffectIdField)
|
||||||
|
val effectId: EffectId? = null,
|
||||||
@SerialName(suggestedPostParametersField)
|
@SerialName(suggestedPostParametersField)
|
||||||
override val suggestedPostParameters: SuggestedPostParameters? = null
|
override val suggestedPostParameters: SuggestedPostParameters? = null
|
||||||
): SimpleRequest<PossiblyForwardedMessage>,
|
): SimpleRequest<PossiblyForwardedMessage>,
|
||||||
|
|||||||
@@ -8,8 +8,10 @@ import dev.inmo.tgbotapi.types.business_connection.BusinessConnectionId
|
|||||||
import dev.inmo.tgbotapi.types.excludeUnsavedField
|
import dev.inmo.tgbotapi.types.excludeUnsavedField
|
||||||
import dev.inmo.tgbotapi.types.excludeSavedField
|
import dev.inmo.tgbotapi.types.excludeSavedField
|
||||||
import dev.inmo.tgbotapi.types.excludeUnlimitedField
|
import dev.inmo.tgbotapi.types.excludeUnlimitedField
|
||||||
import dev.inmo.tgbotapi.types.excludeLimitedField
|
import dev.inmo.tgbotapi.types.excludeLimitedUpgradableField
|
||||||
|
import dev.inmo.tgbotapi.types.excludeLimitedNonUpgradableField
|
||||||
import dev.inmo.tgbotapi.types.excludeUniqueField
|
import dev.inmo.tgbotapi.types.excludeUniqueField
|
||||||
|
import dev.inmo.tgbotapi.types.excludeFromBlockchainField
|
||||||
import dev.inmo.tgbotapi.types.sortByPriceField
|
import dev.inmo.tgbotapi.types.sortByPriceField
|
||||||
import dev.inmo.tgbotapi.types.offsetField
|
import dev.inmo.tgbotapi.types.offsetField
|
||||||
import dev.inmo.tgbotapi.types.limitField
|
import dev.inmo.tgbotapi.types.limitField
|
||||||
@@ -29,10 +31,14 @@ data class GetBusinessAccountGifts(
|
|||||||
val excludeSaved: Boolean = false,
|
val excludeSaved: Boolean = false,
|
||||||
@SerialName(excludeUnlimitedField)
|
@SerialName(excludeUnlimitedField)
|
||||||
val excludeUnlimited: Boolean = false,
|
val excludeUnlimited: Boolean = false,
|
||||||
@SerialName(excludeLimitedField)
|
@SerialName(excludeLimitedUpgradableField)
|
||||||
val excludeLimited: Boolean = false,
|
val excludeLimitedUpgradable: Boolean = false,
|
||||||
|
@SerialName(excludeLimitedNonUpgradableField)
|
||||||
|
val excludeLimitedNonUpgradable: Boolean = false,
|
||||||
@SerialName(excludeUniqueField)
|
@SerialName(excludeUniqueField)
|
||||||
val excludeUnique: Boolean = false,
|
val excludeUnique: Boolean = false,
|
||||||
|
@SerialName(excludeFromBlockchainField)
|
||||||
|
val excludeFromBlockchain: Boolean = false,
|
||||||
@SerialName(sortByPriceField)
|
@SerialName(sortByPriceField)
|
||||||
val sortByPrice: Boolean = false,
|
val sortByPrice: Boolean = false,
|
||||||
@SerialName(offsetField)
|
@SerialName(offsetField)
|
||||||
|
|||||||
@@ -0,0 +1,38 @@
|
|||||||
|
package dev.inmo.tgbotapi.requests.gifts
|
||||||
|
|
||||||
|
import dev.inmo.micro_utils.common.Warning
|
||||||
|
import dev.inmo.tgbotapi.abstracts.types.ChatRequest
|
||||||
|
import dev.inmo.tgbotapi.requests.abstracts.SimpleRequest
|
||||||
|
import dev.inmo.tgbotapi.types.ChatIdentifier
|
||||||
|
import dev.inmo.tgbotapi.types.OwnedGifts
|
||||||
|
import dev.inmo.tgbotapi.types.chatIdField
|
||||||
|
import dev.inmo.tgbotapi.types.gifts.GiftSentOrReceived
|
||||||
|
import dev.inmo.tgbotapi.types.limitField
|
||||||
|
import dev.inmo.tgbotapi.types.offsetField
|
||||||
|
import kotlinx.serialization.DeserializationStrategy
|
||||||
|
import kotlinx.serialization.SerialName
|
||||||
|
import kotlinx.serialization.Serializable
|
||||||
|
import kotlinx.serialization.SerializationStrategy
|
||||||
|
|
||||||
|
// TODO::Fix
|
||||||
|
@Serializable
|
||||||
|
data class GetChatGifts(
|
||||||
|
@SerialName(chatIdField)
|
||||||
|
override val chatId: ChatIdentifier,
|
||||||
|
@SerialName(offsetField)
|
||||||
|
val offset: String? = null,
|
||||||
|
@SerialName(limitField)
|
||||||
|
val limit: Int? = null,
|
||||||
|
) : SimpleRequest<OwnedGifts<GiftSentOrReceived>>, ChatRequest {
|
||||||
|
override fun method(): String = "getChatGifts"
|
||||||
|
|
||||||
|
override val resultDeserializer: DeserializationStrategy<OwnedGifts<GiftSentOrReceived>>
|
||||||
|
get() = Companion.resultSerializer
|
||||||
|
override val requestSerializer: SerializationStrategy<*>
|
||||||
|
get() = serializer()
|
||||||
|
|
||||||
|
companion object {
|
||||||
|
@Warning("This API can be changed without any warranties of backward compatibility")
|
||||||
|
val resultSerializer = OwnedGifts.serializer(GiftSentOrReceived.serializer())
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,38 @@
|
|||||||
|
package dev.inmo.tgbotapi.requests.gifts
|
||||||
|
|
||||||
|
import dev.inmo.micro_utils.common.Warning
|
||||||
|
import dev.inmo.tgbotapi.requests.abstracts.SimpleRequest
|
||||||
|
import dev.inmo.tgbotapi.types.OwnedGifts
|
||||||
|
import dev.inmo.tgbotapi.types.UserId
|
||||||
|
import dev.inmo.tgbotapi.types.gifts.GiftSentOrReceived
|
||||||
|
import dev.inmo.tgbotapi.types.limitField
|
||||||
|
import dev.inmo.tgbotapi.types.offsetField
|
||||||
|
import dev.inmo.tgbotapi.types.userIdField
|
||||||
|
import kotlinx.serialization.DeserializationStrategy
|
||||||
|
import kotlinx.serialization.SerialName
|
||||||
|
import kotlinx.serialization.Serializable
|
||||||
|
import kotlinx.serialization.SerializationStrategy
|
||||||
|
|
||||||
|
// TODO::Fix
|
||||||
|
@Serializable
|
||||||
|
data class GetUserGifts(
|
||||||
|
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||||
|
@SerialName(userIdField)
|
||||||
|
val userId: UserId,
|
||||||
|
@SerialName(offsetField)
|
||||||
|
val offset: String? = null,
|
||||||
|
@SerialName(limitField)
|
||||||
|
val limit: Int? = null,
|
||||||
|
) : SimpleRequest<OwnedGifts<GiftSentOrReceived>> {
|
||||||
|
override fun method(): String = "getUserGifts"
|
||||||
|
|
||||||
|
override val resultDeserializer: DeserializationStrategy<OwnedGifts<GiftSentOrReceived>>
|
||||||
|
get() = Companion.resultSerializer
|
||||||
|
override val requestSerializer: SerializationStrategy<*>
|
||||||
|
get() = serializer()
|
||||||
|
|
||||||
|
companion object {
|
||||||
|
@Warning("This API can be changed without any warranties of backward compatibility")
|
||||||
|
val resultSerializer = OwnedGifts.serializer(GiftSentOrReceived.serializer())
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -95,6 +95,7 @@ fun CopyMessage(
|
|||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
|
effectId: EffectId? = null,
|
||||||
suggestedPostParameters: SuggestedPostParameters? = null,
|
suggestedPostParameters: SuggestedPostParameters? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
@@ -112,6 +113,7 @@ fun CopyMessage(
|
|||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
|
effectId = effectId,
|
||||||
suggestedPostParameters = suggestedPostParameters,
|
suggestedPostParameters = suggestedPostParameters,
|
||||||
replyParameters = replyParameters,
|
replyParameters = replyParameters,
|
||||||
replyMarkup = replyMarkup
|
replyMarkup = replyMarkup
|
||||||
@@ -129,6 +131,7 @@ fun CopyMessage(
|
|||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
|
effectId: EffectId? = null,
|
||||||
suggestedPostParameters: SuggestedPostParameters? = null,
|
suggestedPostParameters: SuggestedPostParameters? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
@@ -146,6 +149,7 @@ fun CopyMessage(
|
|||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
|
effectId = effectId,
|
||||||
suggestedPostParameters = suggestedPostParameters,
|
suggestedPostParameters = suggestedPostParameters,
|
||||||
replyParameters = replyParameters,
|
replyParameters = replyParameters,
|
||||||
replyMarkup = replyMarkup
|
replyMarkup = replyMarkup
|
||||||
@@ -184,6 +188,8 @@ data class CopyMessage internal constructor(
|
|||||||
override val protectContent: Boolean = false,
|
override val protectContent: Boolean = false,
|
||||||
@SerialName(allowPaidBroadcastField)
|
@SerialName(allowPaidBroadcastField)
|
||||||
override val allowPaidBroadcast: Boolean = false,
|
override val allowPaidBroadcast: Boolean = false,
|
||||||
|
@SerialName(messageEffectIdField)
|
||||||
|
val effectId: EffectId? = null,
|
||||||
@SerialName(suggestedPostParametersField)
|
@SerialName(suggestedPostParametersField)
|
||||||
override val suggestedPostParameters: SuggestedPostParameters? = null,
|
override val suggestedPostParameters: SuggestedPostParameters? = null,
|
||||||
@SerialName(replyParametersField)
|
@SerialName(replyParametersField)
|
||||||
|
|||||||
@@ -0,0 +1,85 @@
|
|||||||
|
package dev.inmo.tgbotapi.requests.send
|
||||||
|
|
||||||
|
import dev.inmo.tgbotapi.abstracts.TextedOutput
|
||||||
|
import dev.inmo.tgbotapi.requests.send.abstracts.*
|
||||||
|
import dev.inmo.tgbotapi.types.*
|
||||||
|
import dev.inmo.tgbotapi.types.message.textsources.TextSourcesList
|
||||||
|
import dev.inmo.tgbotapi.types.message.ParseMode
|
||||||
|
import dev.inmo.tgbotapi.types.message.parseModeField
|
||||||
|
import dev.inmo.tgbotapi.types.message.*
|
||||||
|
import dev.inmo.tgbotapi.types.message.RawMessageEntity
|
||||||
|
import dev.inmo.tgbotapi.types.message.abstracts.ContentMessage
|
||||||
|
import dev.inmo.tgbotapi.types.message.abstracts.TelegramBotAPIMessageDeserializationStrategyClass
|
||||||
|
import dev.inmo.tgbotapi.types.message.content.TextContent
|
||||||
|
import dev.inmo.tgbotapi.types.message.toRawMessageEntities
|
||||||
|
import dev.inmo.tgbotapi.utils.extensions.makeString
|
||||||
|
import dev.inmo.tgbotapi.utils.throwRangeError
|
||||||
|
import kotlinx.serialization.*
|
||||||
|
import kotlinx.serialization.builtins.serializer
|
||||||
|
|
||||||
|
fun SendMessageDraft(
|
||||||
|
chatId: IdChatIdentifier,
|
||||||
|
draftId: DraftId,
|
||||||
|
text: String,
|
||||||
|
parseMode: ParseMode? = null,
|
||||||
|
threadId: MessageThreadId? = chatId.threadId
|
||||||
|
) = SendMessageDraft(
|
||||||
|
chatId = chatId,
|
||||||
|
draftId = draftId,
|
||||||
|
text = text,
|
||||||
|
parseMode = parseMode,
|
||||||
|
rawEntities = null,
|
||||||
|
threadId = threadId
|
||||||
|
)
|
||||||
|
|
||||||
|
fun SendMessageDraft(
|
||||||
|
chatId: IdChatIdentifier,
|
||||||
|
draftId: DraftId,
|
||||||
|
entities: TextSourcesList,
|
||||||
|
threadId: MessageThreadId? = chatId.threadId
|
||||||
|
) = SendMessageDraft(
|
||||||
|
chatId = chatId,
|
||||||
|
draftId = draftId,
|
||||||
|
text = entities.makeString(),
|
||||||
|
parseMode = null,
|
||||||
|
rawEntities = entities.toRawMessageEntities(),
|
||||||
|
threadId = threadId
|
||||||
|
)
|
||||||
|
|
||||||
|
@ConsistentCopyVisibility
|
||||||
|
@Serializable
|
||||||
|
data class SendMessageDraft internal constructor(
|
||||||
|
@SerialName(chatIdField)
|
||||||
|
override val chatId: IdChatIdentifier,
|
||||||
|
@SerialName(draftIdField)
|
||||||
|
val draftId: DraftId,
|
||||||
|
@SerialName(textField)
|
||||||
|
override val text: String,
|
||||||
|
@SerialName(parseModeField)
|
||||||
|
override val parseMode: ParseMode? = null,
|
||||||
|
@SerialName(entitiesField)
|
||||||
|
private val rawEntities: List<RawMessageEntity>? = null,
|
||||||
|
@OptIn(ExperimentalSerializationApi::class)
|
||||||
|
@SerialName(messageThreadIdField)
|
||||||
|
@EncodeDefault
|
||||||
|
override val threadId: MessageThreadId? = chatId.threadId
|
||||||
|
) : SendChatMessageRequest<Boolean>,
|
||||||
|
TextedOutput,
|
||||||
|
OptionallyMessageThreadRequest
|
||||||
|
{
|
||||||
|
override val textSources: TextSourcesList? by lazy {
|
||||||
|
rawEntities ?.asTextSources(text)
|
||||||
|
}
|
||||||
|
|
||||||
|
init {
|
||||||
|
if (text.length !in textLength) {
|
||||||
|
throwRangeError("Text length", textLength, text.length)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
override fun method(): String = "sendMessageDraft"
|
||||||
|
override val resultDeserializer: DeserializationStrategy<Boolean>
|
||||||
|
get() = Boolean.serializer()
|
||||||
|
override val requestSerializer: SerializationStrategy<*>
|
||||||
|
get() = serializer()
|
||||||
|
}
|
||||||
@@ -0,0 +1,34 @@
|
|||||||
|
package dev.inmo.tgbotapi.requests.stories
|
||||||
|
|
||||||
|
import dev.inmo.tgbotapi.abstracts.types.WithBusinessConnectionId
|
||||||
|
import dev.inmo.tgbotapi.requests.abstracts.SimpleRequest
|
||||||
|
import dev.inmo.tgbotapi.types.*
|
||||||
|
import dev.inmo.tgbotapi.types.business_connection.BusinessConnectionId
|
||||||
|
import dev.inmo.tgbotapi.types.stories.Story
|
||||||
|
import kotlinx.serialization.DeserializationStrategy
|
||||||
|
import kotlinx.serialization.SerialName
|
||||||
|
import kotlinx.serialization.Serializable
|
||||||
|
import kotlinx.serialization.SerializationStrategy
|
||||||
|
|
||||||
|
@Serializable
|
||||||
|
data class RepostStory(
|
||||||
|
@SerialName(businessConnectionIdField)
|
||||||
|
override val businessConnectionId: BusinessConnectionId,
|
||||||
|
@SerialName(fromChatIdField)
|
||||||
|
val fromChatId: IdChatIdentifier,
|
||||||
|
@SerialName(fromStoryIdField)
|
||||||
|
val storyId: StoryId,
|
||||||
|
@SerialName(activePeriodField)
|
||||||
|
val activePeriod: Seconds,
|
||||||
|
@SerialName(postToChatPageField)
|
||||||
|
val postToChatPage: Boolean = false,
|
||||||
|
@SerialName(protectContentField)
|
||||||
|
val protectContent: Boolean = false,
|
||||||
|
) : SimpleRequest<Story>, WithBusinessConnectionId {
|
||||||
|
override fun method(): String = "repostStory"
|
||||||
|
|
||||||
|
override val requestSerializer: SerializationStrategy<*>
|
||||||
|
get() = serializer()
|
||||||
|
override val resultDeserializer: DeserializationStrategy<Story>
|
||||||
|
get() = Story.serializer()
|
||||||
|
}
|
||||||
@@ -1,9 +1,11 @@
|
|||||||
package dev.inmo.tgbotapi.requests.webhook
|
package dev.inmo.tgbotapi.requests.webhook
|
||||||
|
|
||||||
|
import dev.inmo.kslog.common.w
|
||||||
import dev.inmo.tgbotapi.requests.abstracts.*
|
import dev.inmo.tgbotapi.requests.abstracts.*
|
||||||
import dev.inmo.tgbotapi.requests.send.media.base.DataRequest
|
import dev.inmo.tgbotapi.requests.send.media.base.DataRequest
|
||||||
import dev.inmo.tgbotapi.requests.send.media.base.MultipartRequestImpl
|
import dev.inmo.tgbotapi.requests.send.media.base.MultipartRequestImpl
|
||||||
import dev.inmo.tgbotapi.types.*
|
import dev.inmo.tgbotapi.types.*
|
||||||
|
import dev.inmo.tgbotapi.utils.DefaultKTgBotAPIKSLog
|
||||||
import kotlinx.serialization.*
|
import kotlinx.serialization.*
|
||||||
import kotlinx.serialization.builtins.serializer
|
import kotlinx.serialization.builtins.serializer
|
||||||
|
|
||||||
@@ -118,11 +120,22 @@ fun SetWebhook(
|
|||||||
)
|
)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Use this method to specify a url and receive incoming updates via an outgoing webhook. Whenever there is an update
|
* Represents a request for setting a webhook in Telegram's Bot API. A webhook allows Telegram to send updates directly
|
||||||
* for the bot, we will send an HTTPS POST request to the specified url, containing a JSON-serialized Update.
|
* to the bot via an HTTPS POST request to the provided URL, enabling real-time interaction.
|
||||||
*
|
*
|
||||||
* If you'd like to make sure that the Webhook request comes from Telegram, we recommend using a secret path in the [url],
|
* @constructor Creates a data class holding configuration options for the webhook.
|
||||||
* e.g. https://www.example.com/<token>. Since nobody else knows your bot's token, you can be pretty sure it's us.
|
*
|
||||||
|
* @property url The HTTPS URL to which updates will be posted. Must be valid and accessible.
|
||||||
|
* @property certificateFile An optional path to a public certificate file for webhook verification. Use only if a self-signed certificate is applied.
|
||||||
|
* @property ipAddress The fixed IP address for incoming webhook connections.
|
||||||
|
* @property maxAllowedConnections The maximum number of simultaneous HTTPS connections allowed to the webhook for
|
||||||
|
* delivering updates. You may use value outside of [allowedConnectionsLength], but be sure that it is in
|
||||||
|
* [allowedConnectionsWithLocalServerLength] and you are using local bot api url
|
||||||
|
* @property allowedUpdates A list of update types the bot will receive. Defaults to all update types.
|
||||||
|
* @property dropPendingUpdates If true, all pending updates will be dropped when the webhook is changed.
|
||||||
|
* @property secretToken An optional arbitrary secret key to ensure the webhook updates are coming from Telegram.
|
||||||
|
*
|
||||||
|
* @throws IllegalArgumentException if the provided maxAllowedConnections value is outside the permitted range (both [allowedConnectionsLength] and [allowedConnectionsWithLocalServerLength])
|
||||||
*/
|
*/
|
||||||
@ConsistentCopyVisibility
|
@ConsistentCopyVisibility
|
||||||
@Serializable
|
@Serializable
|
||||||
@@ -150,8 +163,19 @@ data class SetWebhook internal constructor(
|
|||||||
|
|
||||||
init {
|
init {
|
||||||
maxAllowedConnections ?.let {
|
maxAllowedConnections ?.let {
|
||||||
if (it !in allowedConnectionsLength) {
|
when {
|
||||||
throw IllegalArgumentException("Allowed connection for webhook must be in $allowedConnectionsLength range (but passed $it)")
|
it !in allowedConnectionsLength && it in allowedConnectionsWithLocalServerLength -> {
|
||||||
|
DefaultKTgBotAPIKSLog.w {
|
||||||
|
"""
|
||||||
|
Passed amount of allowed connections to server is $it and it exceeds default amount of
|
||||||
|
connections $allowedConnectionsLength, but can be used with local bot api server. Make sure
|
||||||
|
you are using local bot api url in your bot.
|
||||||
|
""".trimIndent()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
it !in allowedConnectionsLength -> {
|
||||||
|
throw IllegalArgumentException("Allowed connection for webhook must be in $allowedConnectionsLength range (but passed $it)")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -123,9 +123,9 @@ val RawChatId.userLink: String
|
|||||||
val UserId.userLink: String
|
val UserId.userLink: String
|
||||||
get() = chatId.userLink
|
get() = chatId.userLink
|
||||||
val User.userLink: String
|
val User.userLink: String
|
||||||
get() = id.userLink
|
get() = id.toChatId().userLink
|
||||||
|
|
||||||
typealias UserId = ChatId
|
typealias UserId = IdChatIdentifier
|
||||||
|
|
||||||
fun RawChatId.toChatId(): ChatId = ChatId(this)
|
fun RawChatId.toChatId(): ChatId = ChatId(this)
|
||||||
fun Long.toChatId(): ChatId = ChatId(RawChatId(this))
|
fun Long.toChatId(): ChatId = ChatId(RawChatId(this))
|
||||||
|
|||||||
@@ -64,6 +64,7 @@ val threadNameLength = 1 until 128
|
|||||||
val chatDescriptionLength = 0 until 256
|
val chatDescriptionLength = 0 until 256
|
||||||
val inlineResultQueryIdLingth = 1 until 64
|
val inlineResultQueryIdLingth = 1 until 64
|
||||||
val allowedConnectionsLength = 1 .. 100
|
val allowedConnectionsLength = 1 .. 100
|
||||||
|
val allowedConnectionsWithLocalServerLength = 1 .. 100000
|
||||||
|
|
||||||
val invoiceTitleLimit = 1 until 32
|
val invoiceTitleLimit = 1 until 32
|
||||||
val invoiceDescriptionLimit = 1 until 256
|
val invoiceDescriptionLimit = 1 until 256
|
||||||
@@ -189,6 +190,8 @@ const val unrestrictBoostsCountField = "unrestrict_boost_count"
|
|||||||
const val customEmojiStickerSetNameField = "custom_emoji_sticker_set_name"
|
const val customEmojiStickerSetNameField = "custom_emoji_sticker_set_name"
|
||||||
const val iconCustomEmojiIdField = "icon_custom_emoji_id"
|
const val iconCustomEmojiIdField = "icon_custom_emoji_id"
|
||||||
const val hasMainWebAppField = "has_main_web_app"
|
const val hasMainWebAppField = "has_main_web_app"
|
||||||
|
const val hasTopicsEnabledField = "has_topics_enabled"
|
||||||
|
const val allowUsersToCreateTopicsField = "allows_users_to_create_topics"
|
||||||
const val canJoinGroupsField = "can_join_groups"
|
const val canJoinGroupsField = "can_join_groups"
|
||||||
const val canReadAllGroupMessagesField = "can_read_all_group_messages"
|
const val canReadAllGroupMessagesField = "can_read_all_group_messages"
|
||||||
const val canReplyField = "can_reply"
|
const val canReplyField = "can_reply"
|
||||||
@@ -312,8 +315,10 @@ const val createsJoinRequestField = "creates_join_request"
|
|||||||
const val pendingJoinRequestCountField = "pending_join_request_count"
|
const val pendingJoinRequestCountField = "pending_join_request_count"
|
||||||
const val memberLimitField = "member_limit"
|
const val memberLimitField = "member_limit"
|
||||||
const val iconColorField = "icon_color"
|
const val iconColorField = "icon_color"
|
||||||
|
const val isNameImplicitField = "is_name_implicit"
|
||||||
const val emojiListField = "emoji_list"
|
const val emojiListField = "emoji_list"
|
||||||
const val completedByUserField = "completed_by_user"
|
const val completedByUserField = "completed_by_user"
|
||||||
|
const val completedByChatField = "completed_by_chat"
|
||||||
const val completionDateField = "completion_date"
|
const val completionDateField = "completion_date"
|
||||||
const val titleEntitiesField = "title_entities"
|
const val titleEntitiesField = "title_entities"
|
||||||
const val tasksField = "tasks"
|
const val tasksField = "tasks"
|
||||||
@@ -324,6 +329,8 @@ const val checklistMessageField = "checklist_message"
|
|||||||
const val markedAsDoneTaskIdsField = "marked_as_done_task_ids"
|
const val markedAsDoneTaskIdsField = "marked_as_done_task_ids"
|
||||||
const val markedAsNotDoneTaskIdsField = "marked_as_not_done_task_ids"
|
const val markedAsNotDoneTaskIdsField = "marked_as_not_done_task_ids"
|
||||||
|
|
||||||
|
const val styleField = "style"
|
||||||
|
|
||||||
const val requestContactField = "request_contact"
|
const val requestContactField = "request_contact"
|
||||||
const val requestLocationField = "request_location"
|
const val requestLocationField = "request_location"
|
||||||
const val requestPollField = "request_poll"
|
const val requestPollField = "request_poll"
|
||||||
@@ -478,6 +485,7 @@ const val headingField = "heading"
|
|||||||
const val fromField = "from"
|
const val fromField = "from"
|
||||||
const val userChatIdField = "user_chat_id"
|
const val userChatIdField = "user_chat_id"
|
||||||
const val userField = "user"
|
const val userField = "user"
|
||||||
|
const val newOwnerField = "new_owner"
|
||||||
const val dateField = "date"
|
const val dateField = "date"
|
||||||
const val reactionsField = "reactions"
|
const val reactionsField = "reactions"
|
||||||
const val reactionField = "reaction"
|
const val reactionField = "reaction"
|
||||||
@@ -528,10 +536,12 @@ const val subscriptionPeriodField = "subscription_period"
|
|||||||
const val subscriptionPriceField = "subscription_price"
|
const val subscriptionPriceField = "subscription_price"
|
||||||
const val copyTextField = "copy_text"
|
const val copyTextField = "copy_text"
|
||||||
const val topicIdField = "topic_id"
|
const val topicIdField = "topic_id"
|
||||||
|
const val draftIdField = "draft_id"
|
||||||
|
|
||||||
const val isPublicField = "is_public"
|
const val isPublicField = "is_public"
|
||||||
|
|
||||||
const val giftField = "gift"
|
const val giftField = "gift"
|
||||||
|
const val giftUpgradeSentField = "gift_upgrade_sent"
|
||||||
const val giftsField = "gifts"
|
const val giftsField = "gifts"
|
||||||
const val rarityPerMilleField = "rarity_per_mille"
|
const val rarityPerMilleField = "rarity_per_mille"
|
||||||
const val acceptedGiftTypesField = "accepted_gift_types"
|
const val acceptedGiftTypesField = "accepted_gift_types"
|
||||||
@@ -544,6 +554,8 @@ const val isDirectMessagesField = "is_direct_messages"
|
|||||||
const val nextTransferDateField = "next_transfer_date"
|
const val nextTransferDateField = "next_transfer_date"
|
||||||
const val transferStarCountField = "transfer_star_count"
|
const val transferStarCountField = "transfer_star_count"
|
||||||
const val lastResaleStarCountField = "last_resale_star_count"
|
const val lastResaleStarCountField = "last_resale_star_count"
|
||||||
|
const val lastResaleCurrencyField = "last_resale_currency"
|
||||||
|
const val lastResaleAmountField = "last_resale_amount"
|
||||||
const val newOwnerChatIdField = "new_owner_chat_id"
|
const val newOwnerChatIdField = "new_owner_chat_id"
|
||||||
|
|
||||||
const val pointField = "point"
|
const val pointField = "point"
|
||||||
@@ -648,9 +660,16 @@ const val mediaField = "media"
|
|||||||
const val mainFrameTimestampField = "main_frame_timestamp"
|
const val mainFrameTimestampField = "main_frame_timestamp"
|
||||||
|
|
||||||
const val paidMessageStarCountField = "paid_message_star_count"
|
const val paidMessageStarCountField = "paid_message_star_count"
|
||||||
|
const val countField = "count"
|
||||||
|
const val ratingField = "rating"
|
||||||
|
const val uniqueGiftColorsField = "unique_gift_colors"
|
||||||
const val paidStarCountField = "paid_star_count"
|
const val paidStarCountField = "paid_star_count"
|
||||||
const val isPaidPostField = "is_paid_post"
|
const val isPaidPostField = "is_paid_post"
|
||||||
|
|
||||||
|
const val levelField = "level"
|
||||||
|
const val currentLevelRatingField = "current_level_rating"
|
||||||
|
const val nextLevelRatingField = "next_level_rating"
|
||||||
|
|
||||||
const val disableEditMessageField = "disable_edit_message"
|
const val disableEditMessageField = "disable_edit_message"
|
||||||
const val scoreField = "score"
|
const val scoreField = "score"
|
||||||
const val forceField = "force"
|
const val forceField = "force"
|
||||||
@@ -729,36 +748,60 @@ const val upgradeStarCountField = "upgrade_star_count"
|
|||||||
const val payToUpgradeField = "pay_for_upgrade"
|
const val payToUpgradeField = "pay_for_upgrade"
|
||||||
const val paidMediaField = "paid_media"
|
const val paidMediaField = "paid_media"
|
||||||
const val publisherChatField = "publisher_chat"
|
const val publisherChatField = "publisher_chat"
|
||||||
|
const val personalTotalCountField = "personal_total_count"
|
||||||
|
const val personalRemainingCountField = "personal_remaining_count"
|
||||||
|
const val isPremiumField2 = "is_premium"
|
||||||
|
const val hasColorsField = "has_colors"
|
||||||
|
const val uniqueGiftVariantCountField = "unique_gift_variant_count"
|
||||||
|
const val uniqueGiftNumberField = "unique_gift_number"
|
||||||
|
const val isUpgradeSeparateField = "is_upgrade_separate"
|
||||||
|
const val isFromBlockchainField = "is_from_blockchain"
|
||||||
|
|
||||||
const val centerColorField = "center_color"
|
const val centerColorField = "center_color"
|
||||||
const val edgeColorField = "edge_color"
|
const val edgeColorField = "edge_color"
|
||||||
const val symbolColorField = "symbol_color"
|
const val symbolColorField = "symbol_color"
|
||||||
const val textColorField = "text_color"
|
const val textColorField = "text_color"
|
||||||
|
const val nameColorField = "name_color"
|
||||||
|
const val baseColorField = "base_color"
|
||||||
|
const val linkColorField = "link_color"
|
||||||
|
const val modelCustomEmojiIdField = "model_custom_emoji_id"
|
||||||
|
const val symbolCustomEmojiIdField = "symbol_custom_emoji_id"
|
||||||
|
const val lightThemeMainColorField = "light_theme_main_color"
|
||||||
|
const val lightThemeOtherColorsField = "light_theme_other_colors"
|
||||||
|
const val darkThemeMainColorField = "dark_theme_main_color"
|
||||||
|
const val darkThemeOtherColorsField = "dark_theme_other_colors"
|
||||||
|
|
||||||
const val baseNameField = "base_name"
|
const val baseNameField = "base_name"
|
||||||
const val numberField = "number"
|
const val numberField = "number"
|
||||||
const val modelField = "model"
|
const val modelField = "model"
|
||||||
const val symbolField = "symbol"
|
const val symbolField = "symbol"
|
||||||
const val backdropField = "backdrop"
|
const val backdropField = "backdrop"
|
||||||
|
const val backgroundField = "background"
|
||||||
|
|
||||||
const val unlimitedGiftsField = "unlimited_gifts"
|
const val unlimitedGiftsField = "unlimited_gifts"
|
||||||
const val limitedGiftsField = "limited_gifts"
|
const val limitedGiftsField = "limited_gifts"
|
||||||
const val uniqueGiftsField = "unique_gifts"
|
const val uniqueGiftsField = "unique_gifts"
|
||||||
const val premiumSubscriptionField = "premium_subscription"
|
const val premiumSubscriptionField = "premium_subscription"
|
||||||
|
const val giftsFromChannelsField = "gifts_from_channels"
|
||||||
|
|
||||||
const val excludeUnsavedField = "exclude_unsaved"
|
const val excludeUnsavedField = "exclude_unsaved"
|
||||||
const val excludeSavedField = "exclude_saved"
|
const val excludeSavedField = "exclude_saved"
|
||||||
const val excludeUnlimitedField = "exclude_unlimited"
|
const val excludeUnlimitedField = "exclude_unlimited"
|
||||||
const val excludeLimitedField = "exclude_limited"
|
const val excludeLimitedField = "exclude_limited"
|
||||||
|
const val excludeLimitedUpgradableField = "exclude_limited_upgradable"
|
||||||
|
const val excludeLimitedNonUpgradableField = "exclude_limited_non_upgradable"
|
||||||
const val excludeUniqueField = "exclude_unique"
|
const val excludeUniqueField = "exclude_unique"
|
||||||
|
const val excludeFromBlockchainField = "exclude_from_blockchain"
|
||||||
const val sortByPriceField = "sort_by_price"
|
const val sortByPriceField = "sort_by_price"
|
||||||
|
|
||||||
const val businessConnectionIdField = "business_connection_id"
|
const val businessConnectionIdField = "business_connection_id"
|
||||||
|
const val fromBusinessConnectionIdField = "from_business_connection_id"
|
||||||
const val businessIntroField = "business_intro"
|
const val businessIntroField = "business_intro"
|
||||||
const val businessLocationField = "business_location"
|
const val businessLocationField = "business_location"
|
||||||
const val businessOpeningHoursField = "business_opening_hours"
|
const val businessOpeningHoursField = "business_opening_hours"
|
||||||
|
|
||||||
const val storyIdField = "story_id"
|
const val storyIdField = "story_id"
|
||||||
|
const val fromStoryIdField = "from_story_id"
|
||||||
const val showGiftButtonField = "show_gift_button"
|
const val showGiftButtonField = "show_gift_button"
|
||||||
|
|
||||||
const val colorField = "color"
|
const val colorField = "color"
|
||||||
|
|||||||
@@ -0,0 +1,18 @@
|
|||||||
|
package dev.inmo.tgbotapi.types
|
||||||
|
|
||||||
|
import dev.inmo.kslog.common.w
|
||||||
|
import dev.inmo.tgbotapi.utils.DefaultKTgBotAPIKSLog
|
||||||
|
import kotlinx.serialization.Serializable
|
||||||
|
import kotlin.jvm.JvmInline
|
||||||
|
|
||||||
|
@Serializable
|
||||||
|
@JvmInline
|
||||||
|
value class DraftId(
|
||||||
|
val long: Long
|
||||||
|
) {
|
||||||
|
init {
|
||||||
|
if (long == 0L) {
|
||||||
|
DefaultKTgBotAPIKSLog.w("DraftId", "In DraftId has been passed 0. According to the documentation it must not be 0")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -13,7 +13,9 @@ data class ForumTopic(
|
|||||||
@SerialName(iconColorField)
|
@SerialName(iconColorField)
|
||||||
val color: RGBColor,
|
val color: RGBColor,
|
||||||
@SerialName(iconCustomEmojiIdField)
|
@SerialName(iconCustomEmojiIdField)
|
||||||
val iconEmojiId: CustomEmojiId? = null
|
val iconEmojiId: CustomEmojiId? = null,
|
||||||
|
@SerialName(isNameImplicitField)
|
||||||
|
val isNameImplicit: Boolean = false
|
||||||
) {
|
) {
|
||||||
companion object {
|
companion object {
|
||||||
val CYAN = RGBColor(0x6FB9F0)
|
val CYAN = RGBColor(0x6FB9F0)
|
||||||
|
|||||||
@@ -0,0 +1,10 @@
|
|||||||
|
package dev.inmo.tgbotapi.types
|
||||||
|
|
||||||
|
import kotlinx.serialization.Serializable
|
||||||
|
import kotlin.jvm.JvmInline
|
||||||
|
|
||||||
|
@Serializable
|
||||||
|
@JvmInline
|
||||||
|
value class Level(
|
||||||
|
val int: Int
|
||||||
|
)
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
package dev.inmo.tgbotapi.types
|
||||||
|
|
||||||
|
import kotlinx.serialization.Serializable
|
||||||
|
import kotlin.jvm.JvmInline
|
||||||
|
|
||||||
|
@Serializable
|
||||||
|
@JvmInline
|
||||||
|
value class Rating(
|
||||||
|
val int: Int
|
||||||
|
)
|
||||||
@@ -5,6 +5,7 @@ package dev.inmo.tgbotapi.types.buttons.InlineKeyboardButtons
|
|||||||
|
|
||||||
import dev.inmo.tgbotapi.utils.internal.ClassCastsIncluded
|
import dev.inmo.tgbotapi.utils.internal.ClassCastsIncluded
|
||||||
import dev.inmo.tgbotapi.types.*
|
import dev.inmo.tgbotapi.types.*
|
||||||
|
import dev.inmo.tgbotapi.types.buttons.KeyboardButtonStyle
|
||||||
import dev.inmo.tgbotapi.types.games.CallbackGame
|
import dev.inmo.tgbotapi.types.games.CallbackGame
|
||||||
import dev.inmo.tgbotapi.types.webapps.WebAppInfo
|
import dev.inmo.tgbotapi.types.webapps.WebAppInfo
|
||||||
import kotlinx.serialization.*
|
import kotlinx.serialization.*
|
||||||
@@ -18,6 +19,9 @@ import kotlinx.serialization.json.*
|
|||||||
@ClassCastsIncluded
|
@ClassCastsIncluded
|
||||||
sealed interface InlineKeyboardButton {
|
sealed interface InlineKeyboardButton {
|
||||||
val text: String
|
val text: String
|
||||||
|
|
||||||
|
val style: KeyboardButtonStyle?
|
||||||
|
val iconCustomEmojiId: CustomEmojiId?
|
||||||
}
|
}
|
||||||
|
|
||||||
@Serializable
|
@Serializable
|
||||||
@@ -28,6 +32,10 @@ data class UnknownInlineKeyboardButton (
|
|||||||
get() = runCatching {
|
get() = runCatching {
|
||||||
rawData.jsonObject[textField] ?.jsonPrimitive ?.content
|
rawData.jsonObject[textField] ?.jsonPrimitive ?.content
|
||||||
}.getOrNull() ?: ""
|
}.getOrNull() ?: ""
|
||||||
|
override val style: KeyboardButtonStyle?
|
||||||
|
get() = null
|
||||||
|
override val iconCustomEmojiId: CustomEmojiId?
|
||||||
|
get() = null
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -36,7 +44,11 @@ data class UnknownInlineKeyboardButton (
|
|||||||
*/
|
*/
|
||||||
@Serializable
|
@Serializable
|
||||||
data class PayInlineKeyboardButton(
|
data class PayInlineKeyboardButton(
|
||||||
override val text: String
|
override val text: String,
|
||||||
|
@SerialName(iconCustomEmojiIdField)
|
||||||
|
override val iconCustomEmojiId: CustomEmojiId? = null,
|
||||||
|
@SerialName(styleField)
|
||||||
|
override val style: KeyboardButtonStyle? = null
|
||||||
) : InlineKeyboardButton {
|
) : InlineKeyboardButton {
|
||||||
@ExperimentalSerializationApi
|
@ExperimentalSerializationApi
|
||||||
@EncodeDefault
|
@EncodeDefault
|
||||||
@@ -58,7 +70,11 @@ data class CallbackDataInlineKeyboardButton(
|
|||||||
* You will receive this data in [dev.inmo.tgbotapi.types.queries.callback.DataCallbackQuery.data] field
|
* You will receive this data in [dev.inmo.tgbotapi.types.queries.callback.DataCallbackQuery.data] field
|
||||||
*/
|
*/
|
||||||
@SerialName(callbackDataField)
|
@SerialName(callbackDataField)
|
||||||
val callbackData: String
|
val callbackData: String,
|
||||||
|
@SerialName(iconCustomEmojiIdField)
|
||||||
|
override val iconCustomEmojiId: CustomEmojiId? = null,
|
||||||
|
@SerialName(styleField)
|
||||||
|
override val style: KeyboardButtonStyle? = null
|
||||||
) : InlineKeyboardButton
|
) : InlineKeyboardButton
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -67,7 +83,11 @@ data class CallbackDataInlineKeyboardButton(
|
|||||||
@Serializable
|
@Serializable
|
||||||
data class CallbackGameInlineKeyboardButton(
|
data class CallbackGameInlineKeyboardButton(
|
||||||
@SerialName(textField)
|
@SerialName(textField)
|
||||||
override val text: String
|
override val text: String,
|
||||||
|
@SerialName(iconCustomEmojiIdField)
|
||||||
|
override val iconCustomEmojiId: CustomEmojiId? = null,
|
||||||
|
@SerialName(styleField)
|
||||||
|
override val style: KeyboardButtonStyle? = null
|
||||||
) : InlineKeyboardButton {
|
) : InlineKeyboardButton {
|
||||||
@SerialName(callbackGameField)
|
@SerialName(callbackGameField)
|
||||||
@EncodeDefault
|
@EncodeDefault
|
||||||
@@ -81,7 +101,11 @@ data class CallbackGameInlineKeyboardButton(
|
|||||||
data class LoginURLInlineKeyboardButton(
|
data class LoginURLInlineKeyboardButton(
|
||||||
override val text: String,
|
override val text: String,
|
||||||
@SerialName(loginUrlField)
|
@SerialName(loginUrlField)
|
||||||
val loginUrl: LoginURL
|
val loginUrl: LoginURL,
|
||||||
|
@SerialName(iconCustomEmojiIdField)
|
||||||
|
override val iconCustomEmojiId: CustomEmojiId? = null,
|
||||||
|
@SerialName(styleField)
|
||||||
|
override val style: KeyboardButtonStyle? = null
|
||||||
) : InlineKeyboardButton
|
) : InlineKeyboardButton
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -98,7 +122,11 @@ data class LoginURLInlineKeyboardButton(
|
|||||||
data class SwitchInlineQueryCurrentChatInlineKeyboardButton(
|
data class SwitchInlineQueryCurrentChatInlineKeyboardButton(
|
||||||
override val text: String,
|
override val text: String,
|
||||||
@SerialName(switchInlineQueryCurrentChatField)
|
@SerialName(switchInlineQueryCurrentChatField)
|
||||||
val switchInlineQueryCurrentChat: String
|
val switchInlineQueryCurrentChat: String,
|
||||||
|
@SerialName(iconCustomEmojiIdField)
|
||||||
|
override val iconCustomEmojiId: CustomEmojiId? = null,
|
||||||
|
@SerialName(styleField)
|
||||||
|
override val style: KeyboardButtonStyle? = null
|
||||||
) : InlineKeyboardButton
|
) : InlineKeyboardButton
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -115,7 +143,11 @@ data class SwitchInlineQueryCurrentChatInlineKeyboardButton(
|
|||||||
data class SwitchInlineQueryChosenChatInlineKeyboardButton(
|
data class SwitchInlineQueryChosenChatInlineKeyboardButton(
|
||||||
override val text: String,
|
override val text: String,
|
||||||
@SerialName(switchInlineQueryChosenChatField)
|
@SerialName(switchInlineQueryChosenChatField)
|
||||||
val parameters: SwitchInlineQueryChosenChat
|
val parameters: SwitchInlineQueryChosenChat,
|
||||||
|
@SerialName(iconCustomEmojiIdField)
|
||||||
|
override val iconCustomEmojiId: CustomEmojiId? = null,
|
||||||
|
@SerialName(styleField)
|
||||||
|
override val style: KeyboardButtonStyle? = null
|
||||||
) : InlineKeyboardButton
|
) : InlineKeyboardButton
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -131,7 +163,11 @@ data class SwitchInlineQueryChosenChatInlineKeyboardButton(
|
|||||||
data class SwitchInlineQueryInlineKeyboardButton(
|
data class SwitchInlineQueryInlineKeyboardButton(
|
||||||
override val text: String,
|
override val text: String,
|
||||||
@SerialName(switchInlineQueryField)
|
@SerialName(switchInlineQueryField)
|
||||||
val switchInlineQuery: String
|
val switchInlineQuery: String,
|
||||||
|
@SerialName(iconCustomEmojiIdField)
|
||||||
|
override val iconCustomEmojiId: CustomEmojiId? = null,
|
||||||
|
@SerialName(styleField)
|
||||||
|
override val style: KeyboardButtonStyle? = null
|
||||||
) : InlineKeyboardButton
|
) : InlineKeyboardButton
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -141,7 +177,11 @@ data class SwitchInlineQueryInlineKeyboardButton(
|
|||||||
data class URLInlineKeyboardButton(
|
data class URLInlineKeyboardButton(
|
||||||
override val text: String,
|
override val text: String,
|
||||||
@SerialName(urlField)
|
@SerialName(urlField)
|
||||||
val url: String
|
val url: String,
|
||||||
|
@SerialName(iconCustomEmojiIdField)
|
||||||
|
override val iconCustomEmojiId: CustomEmojiId? = null,
|
||||||
|
@SerialName(styleField)
|
||||||
|
override val style: KeyboardButtonStyle? = null
|
||||||
) : InlineKeyboardButton
|
) : InlineKeyboardButton
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -151,7 +191,11 @@ data class URLInlineKeyboardButton(
|
|||||||
data class CopyTextButton(
|
data class CopyTextButton(
|
||||||
override val text: String,
|
override val text: String,
|
||||||
@SerialName(copyTextField)
|
@SerialName(copyTextField)
|
||||||
val data: CopyTextButtonData
|
val data: CopyTextButtonData,
|
||||||
|
@SerialName(iconCustomEmojiIdField)
|
||||||
|
override val iconCustomEmojiId: CustomEmojiId? = null,
|
||||||
|
@SerialName(styleField)
|
||||||
|
override val style: KeyboardButtonStyle? = null
|
||||||
) : InlineKeyboardButton
|
) : InlineKeyboardButton
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -162,5 +206,9 @@ data class CopyTextButton(
|
|||||||
data class WebAppInlineKeyboardButton(
|
data class WebAppInlineKeyboardButton(
|
||||||
override val text: String,
|
override val text: String,
|
||||||
@SerialName(webAppField)
|
@SerialName(webAppField)
|
||||||
val webApp: WebAppInfo
|
val webApp: WebAppInfo,
|
||||||
|
@SerialName(iconCustomEmojiIdField)
|
||||||
|
override val iconCustomEmojiId: CustomEmojiId? = null,
|
||||||
|
@SerialName(styleField)
|
||||||
|
override val style: KeyboardButtonStyle? = null
|
||||||
) : InlineKeyboardButton
|
) : InlineKeyboardButton
|
||||||
|
|||||||
@@ -19,6 +19,9 @@ import kotlinx.serialization.json.*
|
|||||||
@Serializable(KeyboardButtonSerializer::class)
|
@Serializable(KeyboardButtonSerializer::class)
|
||||||
sealed interface KeyboardButton {
|
sealed interface KeyboardButton {
|
||||||
val text: String
|
val text: String
|
||||||
|
|
||||||
|
val style: KeyboardButtonStyle?
|
||||||
|
val iconCustomEmojiId: CustomEmojiId?
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -30,7 +33,11 @@ sealed interface KeyboardButton {
|
|||||||
*/
|
*/
|
||||||
@Serializable
|
@Serializable
|
||||||
data class SimpleKeyboardButton(
|
data class SimpleKeyboardButton(
|
||||||
override val text: String
|
override val text: String,
|
||||||
|
@SerialName(iconCustomEmojiIdField)
|
||||||
|
override val iconCustomEmojiId: CustomEmojiId? = null,
|
||||||
|
@SerialName(styleField)
|
||||||
|
override val style: KeyboardButtonStyle? = null
|
||||||
) : KeyboardButton
|
) : KeyboardButton
|
||||||
|
|
||||||
@ConsistentCopyVisibility
|
@ConsistentCopyVisibility
|
||||||
@@ -38,7 +45,12 @@ data class SimpleKeyboardButton(
|
|||||||
data class UnknownKeyboardButton internal constructor(
|
data class UnknownKeyboardButton internal constructor(
|
||||||
override val text: String,
|
override val text: String,
|
||||||
val raw: String
|
val raw: String
|
||||||
) : KeyboardButton
|
) : KeyboardButton {
|
||||||
|
override val style: KeyboardButtonStyle?
|
||||||
|
get() = null
|
||||||
|
override val iconCustomEmojiId: CustomEmojiId?
|
||||||
|
get() = null
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Private chats only. When user will tap on this button, his contact (with his number and name) will be sent to the bot. You will be able
|
* Private chats only. When user will tap on this button, his contact (with his number and name) will be sent to the bot. You will be able
|
||||||
@@ -49,7 +61,11 @@ data class UnknownKeyboardButton internal constructor(
|
|||||||
*/
|
*/
|
||||||
@Serializable
|
@Serializable
|
||||||
data class RequestContactKeyboardButton(
|
data class RequestContactKeyboardButton(
|
||||||
override val text: String
|
override val text: String,
|
||||||
|
@SerialName(iconCustomEmojiIdField)
|
||||||
|
override val iconCustomEmojiId: CustomEmojiId? = null,
|
||||||
|
@SerialName(styleField)
|
||||||
|
override val style: KeyboardButtonStyle? = null
|
||||||
) : KeyboardButton {
|
) : KeyboardButton {
|
||||||
@SerialName(requestContactField)
|
@SerialName(requestContactField)
|
||||||
@EncodeDefault
|
@EncodeDefault
|
||||||
@@ -65,7 +81,11 @@ data class RequestContactKeyboardButton(
|
|||||||
*/
|
*/
|
||||||
@Serializable
|
@Serializable
|
||||||
data class RequestLocationKeyboardButton(
|
data class RequestLocationKeyboardButton(
|
||||||
override val text: String
|
override val text: String,
|
||||||
|
@SerialName(iconCustomEmojiIdField)
|
||||||
|
override val iconCustomEmojiId: CustomEmojiId? = null,
|
||||||
|
@SerialName(styleField)
|
||||||
|
override val style: KeyboardButtonStyle? = null
|
||||||
) : KeyboardButton {
|
) : KeyboardButton {
|
||||||
@SerialName(requestLocationField)
|
@SerialName(requestLocationField)
|
||||||
@Required
|
@Required
|
||||||
@@ -82,7 +102,11 @@ data class RequestLocationKeyboardButton(
|
|||||||
data class WebAppKeyboardButton(
|
data class WebAppKeyboardButton(
|
||||||
override val text: String,
|
override val text: String,
|
||||||
@SerialName(webAppField)
|
@SerialName(webAppField)
|
||||||
val webApp: WebAppInfo
|
val webApp: WebAppInfo,
|
||||||
|
@SerialName(iconCustomEmojiIdField)
|
||||||
|
override val iconCustomEmojiId: CustomEmojiId? = null,
|
||||||
|
@SerialName(styleField)
|
||||||
|
override val style: KeyboardButtonStyle? = null
|
||||||
) : KeyboardButton
|
) : KeyboardButton
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -96,7 +120,11 @@ data class WebAppKeyboardButton(
|
|||||||
data class RequestPollKeyboardButton(
|
data class RequestPollKeyboardButton(
|
||||||
override val text: String,
|
override val text: String,
|
||||||
@SerialName(requestPollField)
|
@SerialName(requestPollField)
|
||||||
val requestPoll: KeyboardButtonPollType
|
val requestPoll: KeyboardButtonPollType,
|
||||||
|
@SerialName(iconCustomEmojiIdField)
|
||||||
|
override val iconCustomEmojiId: CustomEmojiId? = null,
|
||||||
|
@SerialName(styleField)
|
||||||
|
override val style: KeyboardButtonStyle? = null
|
||||||
) : KeyboardButton
|
) : KeyboardButton
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -114,7 +142,11 @@ data class RequestPollKeyboardButton(
|
|||||||
data class RequestUserKeyboardButton(
|
data class RequestUserKeyboardButton(
|
||||||
override val text: String,
|
override val text: String,
|
||||||
@SerialName(requestUsersField)
|
@SerialName(requestUsersField)
|
||||||
val requestUsers: KeyboardButtonRequestUsers
|
val requestUsers: KeyboardButtonRequestUsers,
|
||||||
|
@SerialName(iconCustomEmojiIdField)
|
||||||
|
override val iconCustomEmojiId: CustomEmojiId? = null,
|
||||||
|
@SerialName(styleField)
|
||||||
|
override val style: KeyboardButtonStyle? = null
|
||||||
) : KeyboardButton
|
) : KeyboardButton
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -132,7 +164,11 @@ data class RequestUserKeyboardButton(
|
|||||||
data class RequestChatKeyboardButton(
|
data class RequestChatKeyboardButton(
|
||||||
override val text: String,
|
override val text: String,
|
||||||
@SerialName(requestChatField)
|
@SerialName(requestChatField)
|
||||||
val requestChat: KeyboardButtonRequestChat
|
val requestChat: KeyboardButtonRequestChat,
|
||||||
|
@SerialName(iconCustomEmojiIdField)
|
||||||
|
override val iconCustomEmojiId: CustomEmojiId? = null,
|
||||||
|
@SerialName(styleField)
|
||||||
|
override val style: KeyboardButtonStyle? = null
|
||||||
) : KeyboardButton
|
) : KeyboardButton
|
||||||
|
|
||||||
@RiskFeature
|
@RiskFeature
|
||||||
@@ -142,42 +178,73 @@ object KeyboardButtonSerializer : KSerializer<KeyboardButton> {
|
|||||||
|
|
||||||
override fun deserialize(decoder: Decoder): KeyboardButton {
|
override fun deserialize(decoder: Decoder): KeyboardButton {
|
||||||
val asJson = internalSerializer.deserialize(decoder)
|
val asJson = internalSerializer.deserialize(decoder)
|
||||||
|
val styleData: KeyboardButtonStyle? by lazy {
|
||||||
|
(asJson as? JsonObject)
|
||||||
|
?.get(styleField)
|
||||||
|
?.jsonPrimitive
|
||||||
|
?.let { nonstrictJsonFormat.decodeFromJsonElement(KeyboardButtonStyle.serializer(), it) }
|
||||||
|
}
|
||||||
|
val iconCustomEmojiIdData: CustomEmojiId? by lazy {
|
||||||
|
(asJson as? JsonObject)
|
||||||
|
?.get(iconCustomEmojiIdField)
|
||||||
|
?.jsonPrimitive
|
||||||
|
?.let { nonstrictJsonFormat.decodeFromJsonElement(CustomEmojiId.serializer(), it) }
|
||||||
|
}
|
||||||
|
|
||||||
return when {
|
return when {
|
||||||
asJson is JsonPrimitive -> SimpleKeyboardButton(asJson.content)
|
asJson is JsonPrimitive -> SimpleKeyboardButton(
|
||||||
|
asJson.content
|
||||||
|
)
|
||||||
asJson is JsonObject && asJson[requestContactField] != null -> RequestContactKeyboardButton(
|
asJson is JsonObject && asJson[requestContactField] != null -> RequestContactKeyboardButton(
|
||||||
asJson[textField]!!.jsonPrimitive.content
|
asJson[textField]!!.jsonPrimitive.content,
|
||||||
|
iconCustomEmojiIdData,
|
||||||
|
styleData
|
||||||
)
|
)
|
||||||
asJson is JsonObject && asJson[requestLocationField] != null -> RequestLocationKeyboardButton(
|
asJson is JsonObject && asJson[requestLocationField] != null -> RequestLocationKeyboardButton(
|
||||||
asJson[textField]!!.jsonPrimitive.content
|
asJson[textField]!!.jsonPrimitive.content,
|
||||||
|
iconCustomEmojiIdData,
|
||||||
|
styleData
|
||||||
)
|
)
|
||||||
asJson is JsonObject && asJson[webAppField] != null -> WebAppKeyboardButton(
|
asJson is JsonObject && asJson[webAppField] != null -> WebAppKeyboardButton(
|
||||||
asJson[textField]!!.jsonPrimitive.content,
|
asJson[textField]!!.jsonPrimitive.content,
|
||||||
nonstrictJsonFormat.decodeFromJsonElement(
|
nonstrictJsonFormat.decodeFromJsonElement(
|
||||||
WebAppInfo.serializer(),
|
WebAppInfo.serializer(),
|
||||||
asJson[webAppField]!!
|
asJson[webAppField]!!
|
||||||
)
|
),
|
||||||
|
iconCustomEmojiIdData,
|
||||||
|
styleData
|
||||||
)
|
)
|
||||||
asJson is JsonObject && asJson[requestPollField] != null -> RequestPollKeyboardButton(
|
asJson is JsonObject && asJson[requestPollField] != null -> RequestPollKeyboardButton(
|
||||||
asJson[textField]!!.jsonPrimitive.content,
|
asJson[textField]!!.jsonPrimitive.content,
|
||||||
nonstrictJsonFormat.decodeFromJsonElement(
|
nonstrictJsonFormat.decodeFromJsonElement(
|
||||||
KeyboardButtonPollTypeSerializer,
|
KeyboardButtonPollTypeSerializer,
|
||||||
asJson[requestPollField] ?.jsonObject ?: buildJsonObject { }
|
asJson[requestPollField] ?.jsonObject ?: buildJsonObject { }
|
||||||
)
|
),
|
||||||
|
iconCustomEmojiIdData,
|
||||||
|
styleData
|
||||||
)
|
)
|
||||||
asJson is JsonObject && asJson[requestUsersField] != null -> RequestUserKeyboardButton(
|
asJson is JsonObject && asJson[requestUsersField] != null -> RequestUserKeyboardButton(
|
||||||
asJson[textField]!!.jsonPrimitive.content,
|
asJson[textField]!!.jsonPrimitive.content,
|
||||||
nonstrictJsonFormat.decodeFromJsonElement(
|
nonstrictJsonFormat.decodeFromJsonElement(
|
||||||
KeyboardButtonRequestUsers.serializer(),
|
KeyboardButtonRequestUsers.serializer(),
|
||||||
asJson[requestUsersField] ?.jsonObject ?: buildJsonObject { }
|
asJson[requestUsersField] ?.jsonObject ?: buildJsonObject { }
|
||||||
)
|
),
|
||||||
|
iconCustomEmojiIdData,
|
||||||
|
styleData
|
||||||
)
|
)
|
||||||
asJson is JsonObject && asJson[requestChatField] != null -> RequestChatKeyboardButton(
|
asJson is JsonObject && asJson[requestChatField] != null -> RequestChatKeyboardButton(
|
||||||
asJson[textField]!!.jsonPrimitive.content,
|
asJson[textField]!!.jsonPrimitive.content,
|
||||||
nonstrictJsonFormat.decodeFromJsonElement(
|
nonstrictJsonFormat.decodeFromJsonElement(
|
||||||
KeyboardButtonRequestChat.serializer(),
|
KeyboardButtonRequestChat.serializer(),
|
||||||
asJson[requestChatField] ?.jsonObject ?: buildJsonObject { }
|
asJson[requestChatField] ?.jsonObject ?: buildJsonObject { }
|
||||||
)
|
),
|
||||||
|
iconCustomEmojiIdData,
|
||||||
|
styleData
|
||||||
|
)
|
||||||
|
asJson is JsonObject && asJson[textField] != null -> SimpleKeyboardButton(
|
||||||
|
asJson[textField]!!.jsonPrimitive.content,
|
||||||
|
iconCustomEmojiIdData,
|
||||||
|
styleData
|
||||||
)
|
)
|
||||||
else -> UnknownKeyboardButton(
|
else -> UnknownKeyboardButton(
|
||||||
when (asJson) {
|
when (asJson) {
|
||||||
@@ -196,7 +263,11 @@ object KeyboardButtonSerializer : KSerializer<KeyboardButton> {
|
|||||||
is RequestLocationKeyboardButton -> RequestLocationKeyboardButton.serializer().serialize(encoder, value)
|
is RequestLocationKeyboardButton -> RequestLocationKeyboardButton.serializer().serialize(encoder, value)
|
||||||
is WebAppKeyboardButton -> WebAppKeyboardButton.serializer().serialize(encoder, value)
|
is WebAppKeyboardButton -> WebAppKeyboardButton.serializer().serialize(encoder, value)
|
||||||
is RequestPollKeyboardButton -> RequestPollKeyboardButton.serializer().serialize(encoder, value)
|
is RequestPollKeyboardButton -> RequestPollKeyboardButton.serializer().serialize(encoder, value)
|
||||||
is SimpleKeyboardButton -> encoder.encodeString(value.text)
|
is SimpleKeyboardButton -> if (value.iconCustomEmojiId != null || value.style != null) {
|
||||||
|
SimpleKeyboardButton.serializer().serialize(encoder, value)
|
||||||
|
} else {
|
||||||
|
encoder.encodeString(value.text)
|
||||||
|
}
|
||||||
is RequestUserKeyboardButton -> RequestUserKeyboardButton.serializer().serialize(encoder, value)
|
is RequestUserKeyboardButton -> RequestUserKeyboardButton.serializer().serialize(encoder, value)
|
||||||
is RequestChatKeyboardButton -> RequestChatKeyboardButton.serializer().serialize(encoder, value)
|
is RequestChatKeyboardButton -> RequestChatKeyboardButton.serializer().serialize(encoder, value)
|
||||||
is UnknownKeyboardButton -> JsonElement.serializer().serialize(encoder, nonstrictJsonFormat.parseToJsonElement(value.raw))
|
is UnknownKeyboardButton -> JsonElement.serializer().serialize(encoder, nonstrictJsonFormat.parseToJsonElement(value.raw))
|
||||||
|
|||||||
@@ -0,0 +1,51 @@
|
|||||||
|
package dev.inmo.tgbotapi.types.buttons
|
||||||
|
|
||||||
|
import kotlinx.serialization.KSerializer
|
||||||
|
import kotlinx.serialization.Serializable
|
||||||
|
import kotlinx.serialization.builtins.serializer
|
||||||
|
import kotlinx.serialization.descriptors.SerialDescriptor
|
||||||
|
import kotlinx.serialization.encoding.Decoder
|
||||||
|
import kotlinx.serialization.encoding.Encoder
|
||||||
|
|
||||||
|
@Serializable(KeyboardButtonStyle.Serializer::class)
|
||||||
|
sealed interface KeyboardButtonStyle {
|
||||||
|
val name: String
|
||||||
|
|
||||||
|
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||||
|
@Serializable(KeyboardButtonStyle.Serializer::class)
|
||||||
|
data object Danger : KeyboardButtonStyle { override val name: String = "danger" }
|
||||||
|
|
||||||
|
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||||
|
@Serializable(KeyboardButtonStyle.Serializer::class)
|
||||||
|
data object Success : KeyboardButtonStyle { override val name: String = "success" }
|
||||||
|
|
||||||
|
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||||
|
@Serializable(KeyboardButtonStyle.Serializer::class)
|
||||||
|
data object Primary : KeyboardButtonStyle { override val name: String = "primary" }
|
||||||
|
|
||||||
|
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||||
|
@Serializable(KeyboardButtonStyle.Serializer::class)
|
||||||
|
data class Custom(override val name: String = "primary") : KeyboardButtonStyle
|
||||||
|
|
||||||
|
object Serializer : KSerializer<KeyboardButtonStyle> {
|
||||||
|
override val descriptor: SerialDescriptor
|
||||||
|
get() = String.serializer().descriptor
|
||||||
|
|
||||||
|
override fun serialize(
|
||||||
|
encoder: Encoder,
|
||||||
|
value: KeyboardButtonStyle
|
||||||
|
) {
|
||||||
|
encoder.encodeString(value.name)
|
||||||
|
}
|
||||||
|
|
||||||
|
override fun deserialize(decoder: Decoder): KeyboardButtonStyle {
|
||||||
|
return when (val rawValue = decoder.decodeString()) {
|
||||||
|
Danger.name -> Danger
|
||||||
|
Success.name -> Success
|
||||||
|
Primary.name -> Primary
|
||||||
|
else -> Custom(rawValue)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -2,7 +2,8 @@
|
|||||||
|
|
||||||
package dev.inmo.tgbotapi.types.buttons.inline
|
package dev.inmo.tgbotapi.types.buttons.inline
|
||||||
|
|
||||||
import dev.inmo.tgbotapi.types.LoginURL
|
import dev.inmo.tgbotapi.types.*
|
||||||
|
import dev.inmo.tgbotapi.types.buttons.KeyboardButtonStyle
|
||||||
import dev.inmo.tgbotapi.types.buttons.InlineKeyboardButtons.*
|
import dev.inmo.tgbotapi.types.buttons.InlineKeyboardButtons.*
|
||||||
import dev.inmo.tgbotapi.types.webapps.WebAppInfo
|
import dev.inmo.tgbotapi.types.webapps.WebAppInfo
|
||||||
|
|
||||||
@@ -10,63 +11,79 @@ import dev.inmo.tgbotapi.types.webapps.WebAppInfo
|
|||||||
* Creates [PayInlineKeyboardButton]
|
* Creates [PayInlineKeyboardButton]
|
||||||
*/
|
*/
|
||||||
fun payInlineButton(
|
fun payInlineButton(
|
||||||
text: String
|
text: String,
|
||||||
) = PayInlineKeyboardButton(text)
|
iconCustomEmojiId: CustomEmojiId? = null,
|
||||||
|
style: KeyboardButtonStyle? = null
|
||||||
|
) = PayInlineKeyboardButton(text, iconCustomEmojiId, style)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates [CallbackDataInlineKeyboardButton]
|
* Creates [CallbackDataInlineKeyboardButton]
|
||||||
*/
|
*/
|
||||||
fun dataInlineButton(
|
fun dataInlineButton(
|
||||||
text: String,
|
text: String,
|
||||||
data: String
|
data: String,
|
||||||
) = CallbackDataInlineKeyboardButton(text, data)
|
iconCustomEmojiId: CustomEmojiId? = null,
|
||||||
|
style: KeyboardButtonStyle? = null
|
||||||
|
) = CallbackDataInlineKeyboardButton(text, data, iconCustomEmojiId, style)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates [CallbackGameInlineKeyboardButton]
|
* Creates [CallbackGameInlineKeyboardButton]
|
||||||
*/
|
*/
|
||||||
fun gameInlineButton(
|
fun gameInlineButton(
|
||||||
text: String
|
text: String,
|
||||||
) = CallbackGameInlineKeyboardButton(text)
|
iconCustomEmojiId: CustomEmojiId? = null,
|
||||||
|
style: KeyboardButtonStyle? = null
|
||||||
|
) = CallbackGameInlineKeyboardButton(text, iconCustomEmojiId, style)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates [LoginURLInlineKeyboardButton]
|
* Creates [LoginURLInlineKeyboardButton]
|
||||||
*/
|
*/
|
||||||
fun loginInlineButton(
|
fun loginInlineButton(
|
||||||
text: String,
|
text: String,
|
||||||
loginUrl: LoginURL
|
loginUrl: LoginURL,
|
||||||
) = LoginURLInlineKeyboardButton(text, loginUrl)
|
iconCustomEmojiId: CustomEmojiId? = null,
|
||||||
|
style: KeyboardButtonStyle? = null
|
||||||
|
) = LoginURLInlineKeyboardButton(text, loginUrl, iconCustomEmojiId, style)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates [CopyTextButton]
|
* Creates [CopyTextButton]
|
||||||
*/
|
*/
|
||||||
fun copyTextButton(
|
fun copyTextButton(
|
||||||
text: String,
|
text: String,
|
||||||
data: CopyTextButtonData
|
data: CopyTextButtonData,
|
||||||
) = CopyTextButton(text, data)
|
iconCustomEmojiId: CustomEmojiId? = null,
|
||||||
|
style: KeyboardButtonStyle? = null
|
||||||
|
) = CopyTextButton(text, data, iconCustomEmojiId, style)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates [CopyTextButton]
|
* Creates [CopyTextButton]
|
||||||
*/
|
*/
|
||||||
fun copyTextButton(
|
fun copyTextButton(
|
||||||
text: String,
|
text: String,
|
||||||
data: String
|
data: String,
|
||||||
) = copyTextButton(text, CopyTextButtonData(data))
|
iconCustomEmojiId: CustomEmojiId? = null,
|
||||||
|
style: KeyboardButtonStyle? = null
|
||||||
|
) = copyTextButton(text, CopyTextButtonData(data), iconCustomEmojiId, style)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates [SwitchInlineQueryCurrentChatInlineKeyboardButton]
|
* Creates [SwitchInlineQueryCurrentChatInlineKeyboardButton]
|
||||||
*/
|
*/
|
||||||
fun inlineQueryInCurrentChatInlineButton(
|
fun inlineQueryInCurrentChatInlineButton(
|
||||||
text: String,
|
text: String,
|
||||||
data: String
|
data: String,
|
||||||
) = SwitchInlineQueryCurrentChatInlineKeyboardButton(text, data)
|
iconCustomEmojiId: CustomEmojiId? = null,
|
||||||
|
style: KeyboardButtonStyle? = null
|
||||||
|
) = SwitchInlineQueryCurrentChatInlineKeyboardButton(text, data, iconCustomEmojiId, style)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates [SwitchInlineQueryChosenChatInlineKeyboardButton]
|
* Creates [SwitchInlineQueryChosenChatInlineKeyboardButton]
|
||||||
*/
|
*/
|
||||||
fun inlineQueryInCurrentChatInlineButton(
|
fun inlineQueryInCurrentChatInlineButton(
|
||||||
text: String,
|
text: String,
|
||||||
parameters: SwitchInlineQueryChosenChat
|
parameters: SwitchInlineQueryChosenChat,
|
||||||
) = SwitchInlineQueryChosenChatInlineKeyboardButton(text, parameters)
|
iconCustomEmojiId: CustomEmojiId? = null,
|
||||||
|
style: KeyboardButtonStyle? = null
|
||||||
|
) = SwitchInlineQueryChosenChatInlineKeyboardButton(text, parameters, iconCustomEmojiId, style)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates [SwitchInlineQueryChosenChatInlineKeyboardButton]
|
* Creates [SwitchInlineQueryChosenChatInlineKeyboardButton]
|
||||||
@@ -78,6 +95,8 @@ fun inlineQueryInCurrentChatInlineButton(
|
|||||||
allowBots: Boolean = false,
|
allowBots: Boolean = false,
|
||||||
allowGroups: Boolean = false,
|
allowGroups: Boolean = false,
|
||||||
allowChannels: Boolean = false,
|
allowChannels: Boolean = false,
|
||||||
|
iconCustomEmojiId: CustomEmojiId? = null,
|
||||||
|
style: KeyboardButtonStyle? = null
|
||||||
) = inlineQueryInCurrentChatInlineButton(
|
) = inlineQueryInCurrentChatInlineButton(
|
||||||
text,
|
text,
|
||||||
SwitchInlineQueryChosenChat(
|
SwitchInlineQueryChosenChat(
|
||||||
@@ -86,7 +105,9 @@ fun inlineQueryInCurrentChatInlineButton(
|
|||||||
allowBots = allowBots,
|
allowBots = allowBots,
|
||||||
allowGroups = allowGroups,
|
allowGroups = allowGroups,
|
||||||
allowChannels = allowChannels
|
allowChannels = allowChannels
|
||||||
)
|
),
|
||||||
|
iconCustomEmojiId,
|
||||||
|
style
|
||||||
)
|
)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -95,36 +116,46 @@ fun inlineQueryInCurrentChatInlineButton(
|
|||||||
fun inlineQueryInAnyCurrentChatInlineButton(
|
fun inlineQueryInAnyCurrentChatInlineButton(
|
||||||
text: String,
|
text: String,
|
||||||
query: String? = null,
|
query: String? = null,
|
||||||
) = inlineQueryInCurrentChatInlineButton(text, query, allowUsers = true, allowBots = true, allowGroups = true, allowChannels = true)
|
iconCustomEmojiId: CustomEmojiId? = null,
|
||||||
|
style: KeyboardButtonStyle? = null
|
||||||
|
) = inlineQueryInCurrentChatInlineButton(text, query, allowUsers = true, allowBots = true, allowGroups = true, allowChannels = true, iconCustomEmojiId = iconCustomEmojiId, style = style)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates [SwitchInlineQueryInlineKeyboardButton]
|
* Creates [SwitchInlineQueryInlineKeyboardButton]
|
||||||
*/
|
*/
|
||||||
fun inlineQueryInlineButton(
|
fun inlineQueryInlineButton(
|
||||||
text: String,
|
text: String,
|
||||||
data: String
|
data: String,
|
||||||
) = SwitchInlineQueryInlineKeyboardButton(text, data)
|
iconCustomEmojiId: CustomEmojiId? = null,
|
||||||
|
style: KeyboardButtonStyle? = null
|
||||||
|
) = SwitchInlineQueryInlineKeyboardButton(text, data, iconCustomEmojiId, style)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates [URLInlineKeyboardButton]
|
* Creates [URLInlineKeyboardButton]
|
||||||
*/
|
*/
|
||||||
fun urlInlineButton(
|
fun urlInlineButton(
|
||||||
text: String,
|
text: String,
|
||||||
url: String
|
url: String,
|
||||||
) = URLInlineKeyboardButton(text, url)
|
iconCustomEmojiId: CustomEmojiId? = null,
|
||||||
|
style: KeyboardButtonStyle? = null
|
||||||
|
) = URLInlineKeyboardButton(text, url, iconCustomEmojiId, style)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates [WebAppInlineKeyboardButton]. Please, remember that this button is available in private chats only
|
* Creates [WebAppInlineKeyboardButton]. Please, remember that this button is available in private chats only
|
||||||
*/
|
*/
|
||||||
fun webAppInlineButton(
|
fun webAppInlineButton(
|
||||||
text: String,
|
text: String,
|
||||||
webApp: WebAppInfo
|
webApp: WebAppInfo,
|
||||||
) = WebAppInlineKeyboardButton(text, webApp)
|
iconCustomEmojiId: CustomEmojiId? = null,
|
||||||
|
style: KeyboardButtonStyle? = null
|
||||||
|
) = WebAppInlineKeyboardButton(text, webApp, iconCustomEmojiId, style)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates [WebAppInlineKeyboardButton]. Please, remember that this button is available in private chats only
|
* Creates [WebAppInlineKeyboardButton]. Please, remember that this button is available in private chats only
|
||||||
*/
|
*/
|
||||||
fun webAppInlineButton(
|
fun webAppInlineButton(
|
||||||
text: String,
|
text: String,
|
||||||
url: String
|
url: String,
|
||||||
) = webAppInlineButton(text, WebAppInfo(url))
|
iconCustomEmojiId: CustomEmojiId? = null,
|
||||||
|
style: KeyboardButtonStyle? = null
|
||||||
|
) = webAppInlineButton(text, WebAppInfo(url), iconCustomEmojiId, style)
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
package dev.inmo.tgbotapi.types.buttons.reply
|
package dev.inmo.tgbotapi.types.buttons.reply
|
||||||
|
|
||||||
|
import dev.inmo.tgbotapi.types.*
|
||||||
import dev.inmo.tgbotapi.types.buttons.*
|
import dev.inmo.tgbotapi.types.buttons.*
|
||||||
import dev.inmo.tgbotapi.types.chat.member.ChatCommonAdministratorRights
|
import dev.inmo.tgbotapi.types.chat.member.ChatCommonAdministratorRights
|
||||||
import dev.inmo.tgbotapi.types.keyboardButtonRequestUserLimit
|
import dev.inmo.tgbotapi.types.keyboardButtonRequestUserLimit
|
||||||
@@ -13,46 +14,58 @@ import dev.inmo.tgbotapi.types.webapps.WebAppInfo
|
|||||||
* Creates [SimpleKeyboardButton]
|
* Creates [SimpleKeyboardButton]
|
||||||
*/
|
*/
|
||||||
fun simpleReplyButton(
|
fun simpleReplyButton(
|
||||||
text: String
|
text: String,
|
||||||
) = SimpleKeyboardButton(text)
|
iconCustomEmojiId: CustomEmojiId? = null,
|
||||||
|
style: KeyboardButtonStyle? = null
|
||||||
|
) = SimpleKeyboardButton(text, iconCustomEmojiId, style)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates [RequestContactKeyboardButton]
|
* Creates [RequestContactKeyboardButton]
|
||||||
*/
|
*/
|
||||||
fun requestContactReplyButton(
|
fun requestContactReplyButton(
|
||||||
text: String
|
text: String,
|
||||||
) = RequestContactKeyboardButton(text)
|
iconCustomEmojiId: CustomEmojiId? = null,
|
||||||
|
style: KeyboardButtonStyle? = null
|
||||||
|
) = RequestContactKeyboardButton(text, iconCustomEmojiId, style)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates [RequestLocationKeyboardButton]
|
* Creates [RequestLocationKeyboardButton]
|
||||||
*/
|
*/
|
||||||
fun requestLocationReplyButton(
|
fun requestLocationReplyButton(
|
||||||
text: String
|
text: String,
|
||||||
) = RequestLocationKeyboardButton(text)
|
iconCustomEmojiId: CustomEmojiId? = null,
|
||||||
|
style: KeyboardButtonStyle? = null
|
||||||
|
) = RequestLocationKeyboardButton(text, iconCustomEmojiId, style)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates [RequestPollKeyboardButton]
|
* Creates [RequestPollKeyboardButton]
|
||||||
*/
|
*/
|
||||||
fun requestPollReplyButton(
|
fun requestPollReplyButton(
|
||||||
text: String,
|
text: String,
|
||||||
pollType: KeyboardButtonPollType
|
pollType: KeyboardButtonPollType,
|
||||||
) = RequestPollKeyboardButton(text, pollType)
|
iconCustomEmojiId: CustomEmojiId? = null,
|
||||||
|
style: KeyboardButtonStyle? = null
|
||||||
|
) = RequestPollKeyboardButton(text, pollType, iconCustomEmojiId, style)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates [WebAppKeyboardButton]
|
* Creates [WebAppKeyboardButton]
|
||||||
*/
|
*/
|
||||||
fun webAppReplyButton(
|
fun webAppReplyButton(
|
||||||
text: String,
|
text: String,
|
||||||
webApp: WebAppInfo
|
webApp: WebAppInfo,
|
||||||
) = WebAppKeyboardButton(text, webApp)
|
iconCustomEmojiId: CustomEmojiId? = null,
|
||||||
|
style: KeyboardButtonStyle? = null
|
||||||
|
) = WebAppKeyboardButton(text, webApp, iconCustomEmojiId, style)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates [WebAppKeyboardButton]
|
* Creates [WebAppKeyboardButton]
|
||||||
*/
|
*/
|
||||||
fun webAppReplyButton(
|
fun webAppReplyButton(
|
||||||
text: String,
|
text: String,
|
||||||
url: String
|
url: String,
|
||||||
) = webAppReplyButton(text, WebAppInfo(url))
|
iconCustomEmojiId: CustomEmojiId? = null,
|
||||||
|
style: KeyboardButtonStyle? = null
|
||||||
|
) = webAppReplyButton(text, WebAppInfo(url), iconCustomEmojiId, style)
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -60,10 +73,14 @@ fun webAppReplyButton(
|
|||||||
*/
|
*/
|
||||||
fun requestUsersReplyButton(
|
fun requestUsersReplyButton(
|
||||||
text: String,
|
text: String,
|
||||||
requestUser: KeyboardButtonRequestUsers
|
requestUser: KeyboardButtonRequestUsers,
|
||||||
|
iconCustomEmojiId: CustomEmojiId? = null,
|
||||||
|
style: KeyboardButtonStyle? = null
|
||||||
) = RequestUserKeyboardButton(
|
) = RequestUserKeyboardButton(
|
||||||
text,
|
text,
|
||||||
requestUser
|
requestUser,
|
||||||
|
iconCustomEmojiId,
|
||||||
|
style
|
||||||
)
|
)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -76,6 +93,8 @@ fun requestBotsReplyButton(
|
|||||||
requestName: Boolean? = null,
|
requestName: Boolean? = null,
|
||||||
requestUsername: Boolean? = null,
|
requestUsername: Boolean? = null,
|
||||||
requestPhoto: Boolean? = null,
|
requestPhoto: Boolean? = null,
|
||||||
|
iconCustomEmojiId: CustomEmojiId? = null,
|
||||||
|
style: KeyboardButtonStyle? = null
|
||||||
) = requestUsersReplyButton(
|
) = requestUsersReplyButton(
|
||||||
text,
|
text,
|
||||||
KeyboardButtonRequestUsers.Bot(
|
KeyboardButtonRequestUsers.Bot(
|
||||||
@@ -84,7 +103,9 @@ fun requestBotsReplyButton(
|
|||||||
requestName = requestName,
|
requestName = requestName,
|
||||||
requestUsername = requestUsername,
|
requestUsername = requestUsername,
|
||||||
requestPhoto = requestPhoto
|
requestPhoto = requestPhoto
|
||||||
)
|
),
|
||||||
|
iconCustomEmojiId,
|
||||||
|
style
|
||||||
)
|
)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -98,6 +119,8 @@ fun requestUsersReplyButton(
|
|||||||
requestName: Boolean? = null,
|
requestName: Boolean? = null,
|
||||||
requestUsername: Boolean? = null,
|
requestUsername: Boolean? = null,
|
||||||
requestPhoto: Boolean? = null,
|
requestPhoto: Boolean? = null,
|
||||||
|
iconCustomEmojiId: CustomEmojiId? = null,
|
||||||
|
style: KeyboardButtonStyle? = null
|
||||||
) = requestUsersReplyButton(
|
) = requestUsersReplyButton(
|
||||||
text,
|
text,
|
||||||
KeyboardButtonRequestUsers.Common(
|
KeyboardButtonRequestUsers.Common(
|
||||||
@@ -107,7 +130,9 @@ fun requestUsersReplyButton(
|
|||||||
requestName = requestName,
|
requestName = requestName,
|
||||||
requestUsername = requestUsername,
|
requestUsername = requestUsername,
|
||||||
requestPhoto = requestPhoto
|
requestPhoto = requestPhoto
|
||||||
)
|
),
|
||||||
|
iconCustomEmojiId,
|
||||||
|
style
|
||||||
)
|
)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -121,6 +146,8 @@ fun requestUserReplyButton(
|
|||||||
requestName: Boolean? = null,
|
requestName: Boolean? = null,
|
||||||
requestUsername: Boolean? = null,
|
requestUsername: Boolean? = null,
|
||||||
requestPhoto: Boolean? = null,
|
requestPhoto: Boolean? = null,
|
||||||
|
iconCustomEmojiId: CustomEmojiId? = null,
|
||||||
|
style: KeyboardButtonStyle? = null
|
||||||
) = requestUsersReplyButton(
|
) = requestUsersReplyButton(
|
||||||
text,
|
text,
|
||||||
requestId,
|
requestId,
|
||||||
@@ -128,7 +155,9 @@ fun requestUserReplyButton(
|
|||||||
maxCount,
|
maxCount,
|
||||||
requestName = requestName,
|
requestName = requestName,
|
||||||
requestUsername = requestUsername,
|
requestUsername = requestUsername,
|
||||||
requestPhoto = requestPhoto
|
requestPhoto = requestPhoto,
|
||||||
|
iconCustomEmojiId = iconCustomEmojiId,
|
||||||
|
style = style
|
||||||
)
|
)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -142,6 +171,8 @@ fun requestUsersOrBotsReplyButton(
|
|||||||
requestName: Boolean? = null,
|
requestName: Boolean? = null,
|
||||||
requestUsername: Boolean? = null,
|
requestUsername: Boolean? = null,
|
||||||
requestPhoto: Boolean? = null,
|
requestPhoto: Boolean? = null,
|
||||||
|
iconCustomEmojiId: CustomEmojiId? = null,
|
||||||
|
style: KeyboardButtonStyle? = null
|
||||||
) = requestUsersReplyButton(
|
) = requestUsersReplyButton(
|
||||||
text,
|
text,
|
||||||
KeyboardButtonRequestUsers.Any(
|
KeyboardButtonRequestUsers.Any(
|
||||||
@@ -151,7 +182,9 @@ fun requestUsersOrBotsReplyButton(
|
|||||||
requestName = requestName,
|
requestName = requestName,
|
||||||
requestUsername = requestUsername,
|
requestUsername = requestUsername,
|
||||||
requestPhoto = requestPhoto
|
requestPhoto = requestPhoto
|
||||||
)
|
),
|
||||||
|
iconCustomEmojiId,
|
||||||
|
style
|
||||||
)
|
)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -163,6 +196,8 @@ fun requestUserOrBotReplyButton(
|
|||||||
requestName: Boolean? = null,
|
requestName: Boolean? = null,
|
||||||
requestUsername: Boolean? = null,
|
requestUsername: Boolean? = null,
|
||||||
requestPhoto: Boolean? = null,
|
requestPhoto: Boolean? = null,
|
||||||
|
iconCustomEmojiId: CustomEmojiId? = null,
|
||||||
|
style: KeyboardButtonStyle? = null
|
||||||
) = requestUsersReplyButton(
|
) = requestUsersReplyButton(
|
||||||
text,
|
text,
|
||||||
KeyboardButtonRequestUsers.Any(
|
KeyboardButtonRequestUsers.Any(
|
||||||
@@ -170,7 +205,9 @@ fun requestUserOrBotReplyButton(
|
|||||||
requestName = requestName,
|
requestName = requestName,
|
||||||
requestUsername = requestUsername,
|
requestUsername = requestUsername,
|
||||||
requestPhoto = requestPhoto
|
requestPhoto = requestPhoto
|
||||||
)
|
),
|
||||||
|
iconCustomEmojiId,
|
||||||
|
style
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
@@ -179,10 +216,14 @@ fun requestUserOrBotReplyButton(
|
|||||||
*/
|
*/
|
||||||
fun requestChatReplyButton(
|
fun requestChatReplyButton(
|
||||||
text: String,
|
text: String,
|
||||||
requestChat: KeyboardButtonRequestChat
|
requestChat: KeyboardButtonRequestChat,
|
||||||
|
iconCustomEmojiId: CustomEmojiId? = null,
|
||||||
|
style: KeyboardButtonStyle? = null
|
||||||
) = RequestChatKeyboardButton(
|
) = RequestChatKeyboardButton(
|
||||||
text,
|
text,
|
||||||
requestChat
|
requestChat,
|
||||||
|
iconCustomEmojiId,
|
||||||
|
style
|
||||||
)
|
)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -201,6 +242,8 @@ fun requestChatReplyButton(
|
|||||||
requestTitle: Boolean? = null,
|
requestTitle: Boolean? = null,
|
||||||
requestUsername: Boolean? = null,
|
requestUsername: Boolean? = null,
|
||||||
requestPhoto: Boolean? = null,
|
requestPhoto: Boolean? = null,
|
||||||
|
iconCustomEmojiId: CustomEmojiId? = null,
|
||||||
|
style: KeyboardButtonStyle? = null
|
||||||
) = requestChatReplyButton(
|
) = requestChatReplyButton(
|
||||||
text,
|
text,
|
||||||
KeyboardButtonRequestChat(
|
KeyboardButtonRequestChat(
|
||||||
@@ -215,7 +258,9 @@ fun requestChatReplyButton(
|
|||||||
requestTitle = requestTitle,
|
requestTitle = requestTitle,
|
||||||
requestUsername = requestUsername,
|
requestUsername = requestUsername,
|
||||||
requestPhoto = requestPhoto,
|
requestPhoto = requestPhoto,
|
||||||
)
|
),
|
||||||
|
iconCustomEmojiId,
|
||||||
|
style
|
||||||
)
|
)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -232,6 +277,8 @@ fun requestChannelReplyButton(
|
|||||||
requestTitle: Boolean? = null,
|
requestTitle: Boolean? = null,
|
||||||
requestUsername: Boolean? = null,
|
requestUsername: Boolean? = null,
|
||||||
requestPhoto: Boolean? = null,
|
requestPhoto: Boolean? = null,
|
||||||
|
iconCustomEmojiId: CustomEmojiId? = null,
|
||||||
|
style: KeyboardButtonStyle? = null
|
||||||
) = requestChatReplyButton(
|
) = requestChatReplyButton(
|
||||||
text,
|
text,
|
||||||
KeyboardButtonRequestChat.Channel(
|
KeyboardButtonRequestChat.Channel(
|
||||||
@@ -244,7 +291,9 @@ fun requestChannelReplyButton(
|
|||||||
requestTitle = requestTitle,
|
requestTitle = requestTitle,
|
||||||
requestUsername = requestUsername,
|
requestUsername = requestUsername,
|
||||||
requestPhoto = requestPhoto,
|
requestPhoto = requestPhoto,
|
||||||
)
|
),
|
||||||
|
iconCustomEmojiId,
|
||||||
|
style
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
@@ -263,6 +312,8 @@ fun requestChannelReplyButton(
|
|||||||
requestTitle: Boolean? = null,
|
requestTitle: Boolean? = null,
|
||||||
requestUsername: Boolean? = null,
|
requestUsername: Boolean? = null,
|
||||||
requestPhoto: Boolean? = null,
|
requestPhoto: Boolean? = null,
|
||||||
|
iconCustomEmojiId: CustomEmojiId? = null,
|
||||||
|
style: KeyboardButtonStyle? = null
|
||||||
) = requestChatReplyButton(
|
) = requestChatReplyButton(
|
||||||
text,
|
text,
|
||||||
KeyboardButtonRequestChat.Group(
|
KeyboardButtonRequestChat.Group(
|
||||||
@@ -276,5 +327,7 @@ fun requestChannelReplyButton(
|
|||||||
requestTitle = requestTitle,
|
requestTitle = requestTitle,
|
||||||
requestUsername = requestUsername,
|
requestUsername = requestUsername,
|
||||||
requestPhoto = requestPhoto,
|
requestPhoto = requestPhoto,
|
||||||
)
|
),
|
||||||
|
iconCustomEmojiId,
|
||||||
|
style
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -13,11 +13,21 @@ sealed interface UsernameChat : Chat {
|
|||||||
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||||
@Serializable(ChatSerializer::class)
|
@Serializable(ChatSerializer::class)
|
||||||
sealed interface PrivateChat : Chat, UsernameChat {
|
sealed interface PrivateChat : Chat, UsernameChat {
|
||||||
override val id: UserId
|
override val id: IdChatIdentifier
|
||||||
val firstName: String
|
val firstName: String
|
||||||
val lastName: String
|
val lastName: String
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||||
|
@Serializable(ChatSerializer::class)
|
||||||
|
sealed interface PrivateUserChat : PrivateChat
|
||||||
|
|
||||||
|
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||||
|
@Serializable(ChatSerializer::class)
|
||||||
|
sealed interface PrivateForumChat : PrivateUserChat, ForumChat {
|
||||||
|
override val id: IdChatIdentifier
|
||||||
|
}
|
||||||
|
|
||||||
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||||
@Serializable(ChatSerializer::class)
|
@Serializable(ChatSerializer::class)
|
||||||
sealed interface BusinessChat : Chat {
|
sealed interface BusinessChat : Chat {
|
||||||
@@ -51,7 +61,11 @@ sealed interface SupergroupChat : GroupChat, SuperPublicChat
|
|||||||
|
|
||||||
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||||
@Serializable(ChatSerializer::class)
|
@Serializable(ChatSerializer::class)
|
||||||
sealed interface ForumChat : SupergroupChat
|
sealed interface ForumChat : Chat
|
||||||
|
|
||||||
|
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||||
|
@Serializable(ChatSerializer::class)
|
||||||
|
sealed interface SupergroupForumChat : SupergroupChat, ForumChat
|
||||||
|
|
||||||
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||||
@Serializable(ChatSerializer::class)
|
@Serializable(ChatSerializer::class)
|
||||||
|
|||||||
@@ -81,8 +81,16 @@ object ChatSerializer : KSerializer<Chat> {
|
|||||||
val original = decodedJson[originField]
|
val original = decodedJson[originField]
|
||||||
|
|
||||||
when (type) {
|
when (type) {
|
||||||
ChatType.Sender -> formatter.decodeFromJsonElement(PrivateChatImpl.serializer(), decodedJson)
|
ChatType.Sender -> if (isForum) {
|
||||||
ChatType.Private -> formatter.decodeFromJsonElement(PrivateChatImpl.serializer(), decodedJson)
|
formatter.decodeFromJsonElement(PrivateForumChatImpl.serializer(), decodedJson)
|
||||||
|
} else {
|
||||||
|
formatter.decodeFromJsonElement(PrivateChatImpl.serializer(), decodedJson)
|
||||||
|
}
|
||||||
|
ChatType.Private -> if (isForum) {
|
||||||
|
formatter.decodeFromJsonElement(PrivateForumChatImpl.serializer(), decodedJson)
|
||||||
|
} else {
|
||||||
|
formatter.decodeFromJsonElement(PrivateChatImpl.serializer(), decodedJson)
|
||||||
|
}
|
||||||
ChatType.Group -> formatter.decodeFromJsonElement(GroupChatImpl.serializer(), decodedJson)
|
ChatType.Group -> formatter.decodeFromJsonElement(GroupChatImpl.serializer(), decodedJson)
|
||||||
ChatType.Supergroup -> when {
|
ChatType.Supergroup -> when {
|
||||||
isForum -> formatter.decodeFromJsonElement(ForumChatImpl.serializer(), decodedJson)
|
isForum -> formatter.decodeFromJsonElement(ForumChatImpl.serializer(), decodedJson)
|
||||||
@@ -128,8 +136,16 @@ object PreviewChatSerializer : KSerializer<PreviewChat> {
|
|||||||
val original = decodedJson[originField]
|
val original = decodedJson[originField]
|
||||||
|
|
||||||
return when (type) {
|
return when (type) {
|
||||||
ChatType.Sender -> formatter.decodeFromJsonElement(PrivateChatImpl.serializer(), decodedJson)
|
ChatType.Sender -> if (isForum) {
|
||||||
ChatType.Private -> formatter.decodeFromJsonElement(PrivateChatImpl.serializer(), decodedJson)
|
formatter.decodeFromJsonElement(PrivateForumChatImpl.serializer(), decodedJson)
|
||||||
|
} else {
|
||||||
|
formatter.decodeFromJsonElement(PrivateChatImpl.serializer(), decodedJson)
|
||||||
|
}
|
||||||
|
ChatType.Private -> if (isForum) {
|
||||||
|
formatter.decodeFromJsonElement(PrivateForumChatImpl.serializer(), decodedJson)
|
||||||
|
} else {
|
||||||
|
formatter.decodeFromJsonElement(PrivateChatImpl.serializer(), decodedJson)
|
||||||
|
}
|
||||||
ChatType.Group -> formatter.decodeFromJsonElement(GroupChatImpl.serializer(), decodedJson)
|
ChatType.Group -> formatter.decodeFromJsonElement(GroupChatImpl.serializer(), decodedJson)
|
||||||
ChatType.Supergroup -> {
|
ChatType.Supergroup -> {
|
||||||
when {
|
when {
|
||||||
@@ -156,6 +172,7 @@ object PreviewChatSerializer : KSerializer<PreviewChat> {
|
|||||||
override fun serialize(encoder: Encoder, value: PreviewChat) {
|
override fun serialize(encoder: Encoder, value: PreviewChat) {
|
||||||
when (value) {
|
when (value) {
|
||||||
is PrivateChatImpl -> PrivateChatImpl.serializer().serialize(encoder, value)
|
is PrivateChatImpl -> PrivateChatImpl.serializer().serialize(encoder, value)
|
||||||
|
is PrivateForumChatImpl -> PrivateForumChatImpl.serializer().serialize(encoder, value)
|
||||||
is BusinessChatImpl -> BusinessChatImpl.serializer().serialize(encoder, value)
|
is BusinessChatImpl -> BusinessChatImpl.serializer().serialize(encoder, value)
|
||||||
is GroupChatImpl -> GroupChatImpl.serializer().serialize(encoder, value)
|
is GroupChatImpl -> GroupChatImpl.serializer().serialize(encoder, value)
|
||||||
is SupergroupChatImpl -> SupergroupChatImpl.serializer().serialize(encoder, value)
|
is SupergroupChatImpl -> SupergroupChatImpl.serializer().serialize(encoder, value)
|
||||||
@@ -183,8 +200,16 @@ sealed class ExtendedChatSerializer : KSerializer<ExtendedChat> {
|
|||||||
val original = decodedJson[originField]
|
val original = decodedJson[originField]
|
||||||
|
|
||||||
return when (type) {
|
return when (type) {
|
||||||
ChatType.Sender -> formatter.decodeFromJsonElement(ExtendedPrivateChatImpl.serializer(), decodedJson)
|
ChatType.Sender -> if (isForum) {
|
||||||
ChatType.Private -> formatter.decodeFromJsonElement(ExtendedPrivateChatImpl.serializer(), decodedJson)
|
formatter.decodeFromJsonElement(ExtendedPrivateForumChatImpl.serializer(), decodedJson)
|
||||||
|
} else {
|
||||||
|
formatter.decodeFromJsonElement(ExtendedPrivateChatImpl.serializer(), decodedJson)
|
||||||
|
}
|
||||||
|
ChatType.Private -> if (isForum) {
|
||||||
|
formatter.decodeFromJsonElement(ExtendedPrivateForumChatImpl.serializer(), decodedJson)
|
||||||
|
} else {
|
||||||
|
formatter.decodeFromJsonElement(ExtendedPrivateChatImpl.serializer(), decodedJson)
|
||||||
|
}
|
||||||
ChatType.Group -> formatter.decodeFromJsonElement(ExtendedGroupChatImpl.serializer(), decodedJson)
|
ChatType.Group -> formatter.decodeFromJsonElement(ExtendedGroupChatImpl.serializer(), decodedJson)
|
||||||
ChatType.Supergroup -> {
|
ChatType.Supergroup -> {
|
||||||
when {
|
when {
|
||||||
@@ -212,6 +237,7 @@ sealed class ExtendedChatSerializer : KSerializer<ExtendedChat> {
|
|||||||
when (value) {
|
when (value) {
|
||||||
is ExtendedBusinessChatImpl -> ExtendedBusinessChatImpl.serializer().serialize(encoder, value)
|
is ExtendedBusinessChatImpl -> ExtendedBusinessChatImpl.serializer().serialize(encoder, value)
|
||||||
is ExtendedPrivateChatImpl -> ExtendedPrivateChatImpl.serializer().serialize(encoder, value)
|
is ExtendedPrivateChatImpl -> ExtendedPrivateChatImpl.serializer().serialize(encoder, value)
|
||||||
|
is ExtendedPrivateForumChatImpl -> ExtendedPrivateForumChatImpl.serializer().serialize(encoder, value)
|
||||||
is ExtendedGroupChatImpl -> ExtendedGroupChatImpl.serializer().serialize(encoder, value)
|
is ExtendedGroupChatImpl -> ExtendedGroupChatImpl.serializer().serialize(encoder, value)
|
||||||
is ExtendedSupergroupChatImpl -> ExtendedSupergroupChatImpl.serializer().serialize(encoder, value)
|
is ExtendedSupergroupChatImpl -> ExtendedSupergroupChatImpl.serializer().serialize(encoder, value)
|
||||||
is ExtendedForumChatImpl -> ExtendedForumChatImpl.serializer().serialize(encoder, value)
|
is ExtendedForumChatImpl -> ExtendedForumChatImpl.serializer().serialize(encoder, value)
|
||||||
@@ -238,7 +264,7 @@ sealed class ExtendedChatSerializer : KSerializer<ExtendedChat> {
|
|||||||
class BasedOnBusinessConnection(private val businessConnectionId: BusinessConnectionId) : ExtendedChatSerializer() {
|
class BasedOnBusinessConnection(private val businessConnectionId: BusinessConnectionId) : ExtendedChatSerializer() {
|
||||||
override fun deserialize(decoder: Decoder): ExtendedChat {
|
override fun deserialize(decoder: Decoder): ExtendedChat {
|
||||||
return super.deserialize(decoder).let {
|
return super.deserialize(decoder).let {
|
||||||
if (it is ExtendedPrivateChatImpl) {
|
if (it is ExtendedPrivateChatImpl || it is ExtendedPrivateForumChatImpl) {
|
||||||
ExtendedBusinessChatImpl(
|
ExtendedBusinessChatImpl(
|
||||||
BusinessChatId(it.id.chatId, businessConnectionId),
|
BusinessChatId(it.id.chatId, businessConnectionId),
|
||||||
it
|
it
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ import dev.inmo.tgbotapi.types.business_connection.BusinessLocation
|
|||||||
import dev.inmo.tgbotapi.types.business_connection.BusinessOpeningHours
|
import dev.inmo.tgbotapi.types.business_connection.BusinessOpeningHours
|
||||||
import dev.inmo.tgbotapi.types.colors.ColorId
|
import dev.inmo.tgbotapi.types.colors.ColorId
|
||||||
import dev.inmo.tgbotapi.types.gifts.AcceptedGiftTypes
|
import dev.inmo.tgbotapi.types.gifts.AcceptedGiftTypes
|
||||||
|
import dev.inmo.tgbotapi.types.gifts.unique.UniqueGiftColors
|
||||||
import dev.inmo.tgbotapi.types.message.abstracts.Message
|
import dev.inmo.tgbotapi.types.message.abstracts.Message
|
||||||
import dev.inmo.tgbotapi.types.message.abstracts.TelegramBotAPIMessageDeserializeOnlySerializer
|
import dev.inmo.tgbotapi.types.message.abstracts.TelegramBotAPIMessageDeserializeOnlySerializer
|
||||||
import dev.inmo.tgbotapi.types.reactions.Reaction
|
import dev.inmo.tgbotapi.types.reactions.Reaction
|
||||||
@@ -65,7 +66,13 @@ data class ExtendedChannelChatImpl(
|
|||||||
@SerialName(hasVisibleHistoryField)
|
@SerialName(hasVisibleHistoryField)
|
||||||
override val newMembersSeeHistory: Boolean = false,
|
override val newMembersSeeHistory: Boolean = false,
|
||||||
@SerialName(maxReactionCountField)
|
@SerialName(maxReactionCountField)
|
||||||
override val maxReactionsCount: Int = 3
|
override val maxReactionsCount: Int = 3,
|
||||||
|
@SerialName(ratingField)
|
||||||
|
override val rating: UserRating? = null,
|
||||||
|
@SerialName(paidMessageStarCountField)
|
||||||
|
override val paidMessageStarCount: Int? = null,
|
||||||
|
@SerialName(uniqueGiftColorsField)
|
||||||
|
override val uniqueGiftColors: UniqueGiftColors? = null
|
||||||
) : ExtendedChannelChat
|
) : ExtendedChannelChat
|
||||||
|
|
||||||
@Serializable
|
@Serializable
|
||||||
@@ -109,6 +116,12 @@ data class ExtendedGroupChatImpl(
|
|||||||
override val maxReactionsCount: Int = 3,
|
override val maxReactionsCount: Int = 3,
|
||||||
@SerialName(acceptedGiftTypesField)
|
@SerialName(acceptedGiftTypesField)
|
||||||
override val acceptedGiftTypes: AcceptedGiftTypes = AcceptedGiftTypes(),
|
override val acceptedGiftTypes: AcceptedGiftTypes = AcceptedGiftTypes(),
|
||||||
|
@SerialName(ratingField)
|
||||||
|
override val rating: UserRating? = null,
|
||||||
|
@SerialName(paidMessageStarCountField)
|
||||||
|
override val paidMessageStarCount: Int? = null,
|
||||||
|
@SerialName(uniqueGiftColorsField)
|
||||||
|
override val uniqueGiftColors: UniqueGiftColors? = null
|
||||||
) : ExtendedGroupChat
|
) : ExtendedGroupChat
|
||||||
|
|
||||||
@Serializable
|
@Serializable
|
||||||
@@ -165,7 +178,61 @@ data class ExtendedPrivateChatImpl(
|
|||||||
override val acceptedGiftTypes: AcceptedGiftTypes = AcceptedGiftTypes(),
|
override val acceptedGiftTypes: AcceptedGiftTypes = AcceptedGiftTypes(),
|
||||||
) : ExtendedPrivateChat
|
) : ExtendedPrivateChat
|
||||||
|
|
||||||
typealias ExtendedUser = ExtendedPrivateChatImpl
|
@Serializable
|
||||||
|
@RiskFeature("This class is a subject of changes. It is better to use ExtendedPrivateChat due")
|
||||||
|
data class ExtendedPrivateForumChatImpl(
|
||||||
|
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||||
|
@SerialName(idField)
|
||||||
|
override val id: IdChatIdentifier,
|
||||||
|
@SerialName(photoField)
|
||||||
|
override val chatPhoto: ChatPhoto? = null,
|
||||||
|
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||||
|
@SerialName(usernameField)
|
||||||
|
override val username: Username? = null,
|
||||||
|
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||||
|
@SerialName(activeUsernamesField)
|
||||||
|
override val activeUsernames: List<Username> = emptyList(),
|
||||||
|
@SerialName(firstNameField)
|
||||||
|
override val firstName: String = "",
|
||||||
|
@SerialName(lastNameField)
|
||||||
|
override val lastName: String = "",
|
||||||
|
@SerialName(bioField)
|
||||||
|
override val bio: String = "",
|
||||||
|
@SerialName(hasPrivateForwardsField)
|
||||||
|
override val hasPrivateForwards: Boolean = false,
|
||||||
|
@SerialName(hasRestrictedVoiceAndVideoMessagesField)
|
||||||
|
override val hasRestrictedVoiceAndVideoMessages: Boolean = false,
|
||||||
|
@SerialName(emojiStatusCustomEmojiIdField)
|
||||||
|
override val statusEmojiId: CustomEmojiId? = null,
|
||||||
|
@SerialName(emojiStatusExpirationDateField)
|
||||||
|
override val statusEmojiExpiration: TelegramDate? = null,
|
||||||
|
@SerialName(accentColorIdField)
|
||||||
|
override val accentColorId: ColorId = ColorId(0),
|
||||||
|
@SerialName(profileAccentColorIdField)
|
||||||
|
override val profileAccentColorId: ColorId? = null,
|
||||||
|
@SerialName(backgroundCustomEmojiIdField)
|
||||||
|
override val backgroundCustomEmojiId: CustomEmojiId? = null,
|
||||||
|
@SerialName(profileBackgroundCustomEmojiIdField)
|
||||||
|
override val profileBackgroundCustomEmojiId: CustomEmojiId? = null,
|
||||||
|
@SerialName(businessIntroField)
|
||||||
|
override val businessIntro: BusinessIntro? = null,
|
||||||
|
@SerialName(businessLocationField)
|
||||||
|
override val businessLocation: BusinessLocation? = null,
|
||||||
|
@SerialName(businessOpeningHoursField)
|
||||||
|
override val businessOpeningHours: BusinessOpeningHours? = null,
|
||||||
|
@SerialName(birthdateField)
|
||||||
|
override val birthdate: Birthdate? = null,
|
||||||
|
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||||
|
@SerialName(personalChatField)
|
||||||
|
@Serializable(PreviewChatSerializer::class)
|
||||||
|
override val personalChat: PreviewChannelChat? = null,
|
||||||
|
@SerialName(maxReactionCountField)
|
||||||
|
override val maxReactionsCount: Int = 3,
|
||||||
|
@SerialName(acceptedGiftTypesField)
|
||||||
|
override val acceptedGiftTypes: AcceptedGiftTypes = AcceptedGiftTypes(),
|
||||||
|
) : ExtendedPrivateForumChat
|
||||||
|
|
||||||
|
typealias ExtendedUser = ExtendedPrivateChat
|
||||||
|
|
||||||
@Serializable
|
@Serializable
|
||||||
@RiskFeature("This class is a subject of changes. It is better to use ExtendedSupergroupChat due")
|
@RiskFeature("This class is a subject of changes. It is better to use ExtendedSupergroupChat due")
|
||||||
@@ -235,6 +302,12 @@ data class ExtendedSupergroupChatImpl(
|
|||||||
override val maxReactionsCount: Int = 3,
|
override val maxReactionsCount: Int = 3,
|
||||||
@SerialName(acceptedGiftTypesField)
|
@SerialName(acceptedGiftTypesField)
|
||||||
override val acceptedGiftTypes: AcceptedGiftTypes = AcceptedGiftTypes(),
|
override val acceptedGiftTypes: AcceptedGiftTypes = AcceptedGiftTypes(),
|
||||||
|
@SerialName(ratingField)
|
||||||
|
override val rating: UserRating? = null,
|
||||||
|
@SerialName(paidMessageStarCountField)
|
||||||
|
override val paidMessageStarCount: Int? = null,
|
||||||
|
@SerialName(uniqueGiftColorsField)
|
||||||
|
override val uniqueGiftColors: UniqueGiftColors? = null
|
||||||
) : ExtendedSupergroupChat
|
) : ExtendedSupergroupChat
|
||||||
|
|
||||||
@Serializable
|
@Serializable
|
||||||
@@ -305,6 +378,12 @@ data class ExtendedForumChatImpl(
|
|||||||
override val maxReactionsCount: Int = 3,
|
override val maxReactionsCount: Int = 3,
|
||||||
@SerialName(acceptedGiftTypesField)
|
@SerialName(acceptedGiftTypesField)
|
||||||
override val acceptedGiftTypes: AcceptedGiftTypes = AcceptedGiftTypes(),
|
override val acceptedGiftTypes: AcceptedGiftTypes = AcceptedGiftTypes(),
|
||||||
|
@SerialName(ratingField)
|
||||||
|
override val rating: UserRating? = null,
|
||||||
|
@SerialName(paidMessageStarCountField)
|
||||||
|
override val paidMessageStarCount: Int? = null,
|
||||||
|
@SerialName(uniqueGiftColorsField)
|
||||||
|
override val uniqueGiftColors: UniqueGiftColors? = null
|
||||||
) : ExtendedForumChat
|
) : ExtendedForumChat
|
||||||
|
|
||||||
@Serializable
|
@Serializable
|
||||||
@@ -378,6 +457,12 @@ data class ExtendedChannelDirectMessagesChatImpl(
|
|||||||
override val maxReactionsCount: Int = 3,
|
override val maxReactionsCount: Int = 3,
|
||||||
@SerialName(acceptedGiftTypesField)
|
@SerialName(acceptedGiftTypesField)
|
||||||
override val acceptedGiftTypes: AcceptedGiftTypes = AcceptedGiftTypes(),
|
override val acceptedGiftTypes: AcceptedGiftTypes = AcceptedGiftTypes(),
|
||||||
|
@SerialName(ratingField)
|
||||||
|
override val rating: UserRating? = null,
|
||||||
|
@SerialName(paidMessageStarCountField)
|
||||||
|
override val paidMessageStarCount: Int? = null,
|
||||||
|
@SerialName(uniqueGiftColorsField)
|
||||||
|
override val uniqueGiftColors: UniqueGiftColors? = null
|
||||||
) : ExtendedChannelDirectMessagesChat {
|
) : ExtendedChannelDirectMessagesChat {
|
||||||
@OptIn(ExperimentalSerializationApi::class)
|
@OptIn(ExperimentalSerializationApi::class)
|
||||||
@SerialName(isDirectMessagesField)
|
@SerialName(isDirectMessagesField)
|
||||||
@@ -419,6 +504,10 @@ data class ExtendedBot(
|
|||||||
override val maxReactionsCount: Int = 3,
|
override val maxReactionsCount: Int = 3,
|
||||||
@SerialName(hasMainWebAppField)
|
@SerialName(hasMainWebAppField)
|
||||||
val hasMainWebApp: Boolean = false,
|
val hasMainWebApp: Boolean = false,
|
||||||
|
@SerialName(hasTopicsEnabledField)
|
||||||
|
val hasTopicsEnabled: Boolean = false,
|
||||||
|
@SerialName(allowUsersToCreateTopicsField)
|
||||||
|
val allowUsersToCreateTopics: Boolean = false,
|
||||||
@SerialName(acceptedGiftTypesField)
|
@SerialName(acceptedGiftTypesField)
|
||||||
override val acceptedGiftTypes: AcceptedGiftTypes = AcceptedGiftTypes(),
|
override val acceptedGiftTypes: AcceptedGiftTypes = AcceptedGiftTypes(),
|
||||||
) : Bot(), ExtendedChat {
|
) : Bot(), ExtendedChat {
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ import dev.inmo.tgbotapi.types.business_connection.BusinessLocation
|
|||||||
import dev.inmo.tgbotapi.types.business_connection.BusinessOpeningHours
|
import dev.inmo.tgbotapi.types.business_connection.BusinessOpeningHours
|
||||||
import dev.inmo.tgbotapi.types.colors.ColorId
|
import dev.inmo.tgbotapi.types.colors.ColorId
|
||||||
import dev.inmo.tgbotapi.types.gifts.AcceptedGiftTypes
|
import dev.inmo.tgbotapi.types.gifts.AcceptedGiftTypes
|
||||||
|
import dev.inmo.tgbotapi.types.gifts.unique.UniqueGiftColors
|
||||||
import dev.inmo.tgbotapi.types.message.abstracts.Message
|
import dev.inmo.tgbotapi.types.message.abstracts.Message
|
||||||
import dev.inmo.tgbotapi.types.message.abstracts.TelegramBotAPIMessageDeserializeOnlySerializer
|
import dev.inmo.tgbotapi.types.message.abstracts.TelegramBotAPIMessageDeserializeOnlySerializer
|
||||||
import dev.inmo.tgbotapi.types.reactions.Reaction
|
import dev.inmo.tgbotapi.types.reactions.Reaction
|
||||||
@@ -56,7 +57,7 @@ sealed interface ExtendedGroupChat : GroupChat, ExtendedPublicChat {
|
|||||||
|
|
||||||
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||||
@Serializable(ExtendedChatSerializer.Companion::class)
|
@Serializable(ExtendedChatSerializer.Companion::class)
|
||||||
sealed interface ExtendedPrivateChat : PrivateChat, ExtendedChatWithUsername, ExtendedNonBotChat {
|
sealed interface ExtendedPrivateChat : PrivateUserChat, ExtendedChatWithUsername, ExtendedNonBotChat {
|
||||||
val bio: String
|
val bio: String
|
||||||
val hasPrivateForwards: Boolean
|
val hasPrivateForwards: Boolean
|
||||||
val hasRestrictedVoiceAndVideoMessages: Boolean
|
val hasRestrictedVoiceAndVideoMessages: Boolean
|
||||||
@@ -72,6 +73,10 @@ sealed interface ExtendedPrivateChat : PrivateChat, ExtendedChatWithUsername, Ex
|
|||||||
get() = hasPrivateForwards
|
get() = hasPrivateForwards
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||||
|
@Serializable(ExtendedChatSerializer.Companion::class)
|
||||||
|
sealed interface ExtendedPrivateForumChat : ExtendedPrivateChat, PrivateForumChat
|
||||||
|
|
||||||
sealed interface ExtendedPublicChat : ExtendedChat, PublicChat, ExtendedNonBotChat {
|
sealed interface ExtendedPublicChat : ExtendedChat, PublicChat, ExtendedNonBotChat {
|
||||||
val description: String
|
val description: String
|
||||||
val inviteLink: String?
|
val inviteLink: String?
|
||||||
@@ -81,6 +86,9 @@ sealed interface ExtendedPublicChat : ExtendedChat, PublicChat, ExtendedNonBotCh
|
|||||||
val membersHidden: Boolean
|
val membersHidden: Boolean
|
||||||
val availableReactions: List<Reaction>?
|
val availableReactions: List<Reaction>?
|
||||||
val newMembersSeeHistory: Boolean
|
val newMembersSeeHistory: Boolean
|
||||||
|
val rating: UserRating?
|
||||||
|
val paidMessageStarCount: Int?
|
||||||
|
val uniqueGiftColors: UniqueGiftColors?
|
||||||
}
|
}
|
||||||
|
|
||||||
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||||
@@ -112,7 +120,7 @@ sealed interface ExtendedSupergroupChat : SupergroupChat, ExtendedGroupChat, Ext
|
|||||||
|
|
||||||
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||||
@Serializable(ExtendedChatSerializer.Companion::class)
|
@Serializable(ExtendedChatSerializer.Companion::class)
|
||||||
sealed interface ExtendedForumChat : ExtendedSupergroupChat, ForumChat
|
sealed interface ExtendedForumChat : ExtendedSupergroupChat, SupergroupForumChat
|
||||||
|
|
||||||
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||||
@Serializable(PreviewChatSerializer::class)
|
@Serializable(PreviewChatSerializer::class)
|
||||||
|
|||||||
@@ -33,6 +33,20 @@ data class PrivateChatImpl(
|
|||||||
@SerialName(lastNameField)
|
@SerialName(lastNameField)
|
||||||
override val lastName: String = ""
|
override val lastName: String = ""
|
||||||
) : PreviewPrivateChat
|
) : PreviewPrivateChat
|
||||||
|
@Serializable
|
||||||
|
@RiskFeature("This class is a subject of changes. It is better to use PrivateChat due")
|
||||||
|
data class PrivateForumChatImpl(
|
||||||
|
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||||
|
@SerialName(idField)
|
||||||
|
override val id: IdChatIdentifier,
|
||||||
|
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||||
|
@SerialName(usernameField)
|
||||||
|
override val username: Username? = null,
|
||||||
|
@SerialName(firstNameField)
|
||||||
|
override val firstName: String = "",
|
||||||
|
@SerialName(lastNameField)
|
||||||
|
override val lastName: String = ""
|
||||||
|
) : PreviewPrivateForumChat
|
||||||
|
|
||||||
@Serializable
|
@Serializable
|
||||||
@RiskFeature("This class is a subject of changes. It is better to use PrivateChat due")
|
@RiskFeature("This class is a subject of changes. It is better to use PrivateChat due")
|
||||||
@@ -138,7 +152,7 @@ data class CommonBot(
|
|||||||
data class CommonUser(
|
data class CommonUser(
|
||||||
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||||
@SerialName(idField)
|
@SerialName(idField)
|
||||||
override val id: UserId,
|
override val id: IdChatIdentifier,
|
||||||
@SerialName(firstNameField)
|
@SerialName(firstNameField)
|
||||||
override val firstName: String,
|
override val firstName: String,
|
||||||
@SerialName(lastNameField)
|
@SerialName(lastNameField)
|
||||||
|
|||||||
@@ -11,7 +11,11 @@ sealed interface PreviewUsernameChat : PreviewChat, UsernameChat
|
|||||||
|
|
||||||
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||||
@Serializable(PreviewChatSerializer::class)
|
@Serializable(PreviewChatSerializer::class)
|
||||||
sealed interface PreviewPrivateChat : PreviewUsernameChat, PrivateChat
|
sealed interface PreviewPrivateChat : PreviewUsernameChat, PrivateUserChat
|
||||||
|
|
||||||
|
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||||
|
@Serializable(PreviewChatSerializer::class)
|
||||||
|
sealed interface PreviewPrivateForumChat : PreviewPrivateChat, PrivateForumChat
|
||||||
|
|
||||||
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||||
@Serializable(PreviewChatSerializer::class)
|
@Serializable(PreviewChatSerializer::class)
|
||||||
@@ -39,7 +43,7 @@ sealed interface PreviewSupergroupChat : PreviewGroupChat, PreviewSuperPublicCha
|
|||||||
|
|
||||||
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||||
@Serializable(PreviewChatSerializer::class)
|
@Serializable(PreviewChatSerializer::class)
|
||||||
sealed interface PreviewForumChat : PreviewSupergroupChat, ForumChat
|
sealed interface PreviewForumChat : PreviewSupergroupChat, SupergroupForumChat
|
||||||
|
|
||||||
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||||
@Serializable(PreviewChatSerializer::class)
|
@Serializable(PreviewChatSerializer::class)
|
||||||
|
|||||||
@@ -0,0 +1,17 @@
|
|||||||
|
package dev.inmo.tgbotapi.types.chat
|
||||||
|
|
||||||
|
import dev.inmo.tgbotapi.types.*
|
||||||
|
import kotlinx.serialization.SerialName
|
||||||
|
import kotlinx.serialization.Serializable
|
||||||
|
|
||||||
|
@Serializable
|
||||||
|
data class UserRating(
|
||||||
|
@SerialName(levelField)
|
||||||
|
val level: Level,
|
||||||
|
@SerialName(ratingField)
|
||||||
|
val rating: Rating,
|
||||||
|
@SerialName(currentLevelRatingField)
|
||||||
|
val currentLevelRating: Rating,
|
||||||
|
@SerialName(nextLevelRatingField)
|
||||||
|
val nextLevelRating: Rating? = null
|
||||||
|
)
|
||||||
@@ -3,8 +3,10 @@ package dev.inmo.tgbotapi.types.checklists
|
|||||||
import dev.inmo.micro_utils.common.Warning
|
import dev.inmo.micro_utils.common.Warning
|
||||||
import dev.inmo.tgbotapi.abstracts.TextedInput
|
import dev.inmo.tgbotapi.abstracts.TextedInput
|
||||||
import dev.inmo.tgbotapi.types.TelegramDate
|
import dev.inmo.tgbotapi.types.TelegramDate
|
||||||
|
import dev.inmo.tgbotapi.types.chat.PreviewChat
|
||||||
import dev.inmo.tgbotapi.types.chat.PreviewUser
|
import dev.inmo.tgbotapi.types.chat.PreviewUser
|
||||||
import dev.inmo.tgbotapi.types.completedByUserField
|
import dev.inmo.tgbotapi.types.completedByUserField
|
||||||
|
import dev.inmo.tgbotapi.types.completedByChatField
|
||||||
import dev.inmo.tgbotapi.types.completionDateField
|
import dev.inmo.tgbotapi.types.completionDateField
|
||||||
import dev.inmo.tgbotapi.types.idField
|
import dev.inmo.tgbotapi.types.idField
|
||||||
import dev.inmo.tgbotapi.types.message.ParseMode
|
import dev.inmo.tgbotapi.types.message.ParseMode
|
||||||
@@ -130,6 +132,8 @@ sealed interface ChecklistTask : TextedInput {
|
|||||||
override val id: ChecklistTaskId,
|
override val id: ChecklistTaskId,
|
||||||
@SerialName(completedByUserField)
|
@SerialName(completedByUserField)
|
||||||
override val completedByUser: PreviewUser,
|
override val completedByUser: PreviewUser,
|
||||||
|
@SerialName(completedByChatField)
|
||||||
|
val completedByChat: PreviewChat? = null,
|
||||||
@SerialName(completionDateField)
|
@SerialName(completionDateField)
|
||||||
override val completionDate: TelegramDate,
|
override val completionDate: TelegramDate,
|
||||||
@SerialName(textEntitiesField)
|
@SerialName(textEntitiesField)
|
||||||
@@ -145,10 +149,12 @@ sealed interface ChecklistTask : TextedInput {
|
|||||||
id: ChecklistTaskId,
|
id: ChecklistTaskId,
|
||||||
text: String,
|
text: String,
|
||||||
completedByUser: PreviewUser,
|
completedByUser: PreviewUser,
|
||||||
|
completedByChat: PreviewChat? = null,
|
||||||
completionDate: TelegramDate,
|
completionDate: TelegramDate,
|
||||||
): this(
|
): this(
|
||||||
id,
|
id,
|
||||||
completedByUser,
|
completedByUser,
|
||||||
|
completedByChat,
|
||||||
completionDate,
|
completionDate,
|
||||||
listOf(
|
listOf(
|
||||||
RegularTextSource(text)
|
RegularTextSource(text)
|
||||||
@@ -176,6 +182,8 @@ sealed interface ChecklistTask : TextedInput {
|
|||||||
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||||
@SerialName(completedByUserField)
|
@SerialName(completedByUserField)
|
||||||
val completedByUser: PreviewUser? = null,
|
val completedByUser: PreviewUser? = null,
|
||||||
|
@SerialName(completedByChatField)
|
||||||
|
val completedByChat: PreviewChat? = null,
|
||||||
@SerialName(completionDateField)
|
@SerialName(completionDateField)
|
||||||
val completionDate: TelegramDate = TelegramDate(0), // TelegramDate(0) is the default according to https://core.telegram.org/bots/api#checklisttask
|
val completionDate: TelegramDate = TelegramDate(0), // TelegramDate(0) is the default according to https://core.telegram.org/bots/api#checklisttask
|
||||||
)
|
)
|
||||||
@@ -190,6 +198,7 @@ sealed interface ChecklistTask : TextedInput {
|
|||||||
raw.completedByUser != null -> Done(
|
raw.completedByUser != null -> Done(
|
||||||
id = raw.id,
|
id = raw.id,
|
||||||
completedByUser = raw.completedByUser,
|
completedByUser = raw.completedByUser,
|
||||||
|
completedByChat = raw.completedByChat,
|
||||||
completionDate = raw.completionDate,
|
completionDate = raw.completionDate,
|
||||||
textSources = raw.textSources.asTextSources(raw.text),
|
textSources = raw.textSources.asTextSources(raw.text),
|
||||||
)
|
)
|
||||||
@@ -207,6 +216,7 @@ sealed interface ChecklistTask : TextedInput {
|
|||||||
id = value.id,
|
id = value.id,
|
||||||
text = value.text,
|
text = value.text,
|
||||||
completedByUser = value.completedByUser,
|
completedByUser = value.completedByUser,
|
||||||
|
completedByChat = (value as? Done)?.completedByChat,
|
||||||
completionDate = value.completionDate ?: TelegramDate(0),
|
completionDate = value.completionDate ?: TelegramDate(0),
|
||||||
textSources = value.textSources.toRawMessageEntities()
|
textSources = value.textSources.toRawMessageEntities()
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
package dev.inmo.tgbotapi.types.gifts
|
package dev.inmo.tgbotapi.types.gifts
|
||||||
|
|
||||||
|
import dev.inmo.tgbotapi.types.giftsFromChannelsField
|
||||||
import dev.inmo.tgbotapi.types.limitedGiftsField
|
import dev.inmo.tgbotapi.types.limitedGiftsField
|
||||||
import dev.inmo.tgbotapi.types.premiumSubscriptionField
|
import dev.inmo.tgbotapi.types.premiumSubscriptionField
|
||||||
import dev.inmo.tgbotapi.types.uniqueGiftsField
|
import dev.inmo.tgbotapi.types.uniqueGiftsField
|
||||||
@@ -17,5 +18,7 @@ data class AcceptedGiftTypes(
|
|||||||
@SerialName(uniqueGiftsField)
|
@SerialName(uniqueGiftsField)
|
||||||
val uniqueGifts: Boolean = false,
|
val uniqueGifts: Boolean = false,
|
||||||
@SerialName(premiumSubscriptionField)
|
@SerialName(premiumSubscriptionField)
|
||||||
val premiumSubscription: Boolean = false
|
val premiumSubscription: Boolean = false,
|
||||||
|
@SerialName(giftsFromChannelsField)
|
||||||
|
val giftsFromChannels: Boolean = false
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ import dev.inmo.tgbotapi.types.*
|
|||||||
import dev.inmo.tgbotapi.types.chat.PreviewChat
|
import dev.inmo.tgbotapi.types.chat.PreviewChat
|
||||||
import dev.inmo.tgbotapi.types.files.Sticker
|
import dev.inmo.tgbotapi.types.files.Sticker
|
||||||
import dev.inmo.tgbotapi.types.gifts.unique.UniqueGiftBackdrop
|
import dev.inmo.tgbotapi.types.gifts.unique.UniqueGiftBackdrop
|
||||||
|
import dev.inmo.tgbotapi.types.gifts.unique.UniqueGiftColors
|
||||||
import dev.inmo.tgbotapi.types.gifts.unique.UniqueGiftModel
|
import dev.inmo.tgbotapi.types.gifts.unique.UniqueGiftModel
|
||||||
import dev.inmo.tgbotapi.types.gifts.unique.UniqueGiftSymbol
|
import dev.inmo.tgbotapi.types.gifts.unique.UniqueGiftSymbol
|
||||||
import kotlinx.serialization.KSerializer
|
import kotlinx.serialization.KSerializer
|
||||||
@@ -15,15 +16,22 @@ import kotlinx.serialization.encoding.Encoder
|
|||||||
|
|
||||||
@Serializable(Gift.Companion::class)
|
@Serializable(Gift.Companion::class)
|
||||||
sealed interface Gift {
|
sealed interface Gift {
|
||||||
|
val id: GiftId?
|
||||||
val publisherChat: PreviewChat?
|
val publisherChat: PreviewChat?
|
||||||
@Serializable(Regular.Companion::class)
|
@Serializable(Regular.Companion::class)
|
||||||
sealed interface Regular : Gift {
|
sealed interface Regular : Gift {
|
||||||
val id: GiftId
|
override val id: GiftId
|
||||||
val sticker: Sticker
|
val sticker: Sticker
|
||||||
val starCount: Int
|
val starCount: Int
|
||||||
val totalCount: Int?
|
val totalCount: Int?
|
||||||
val upgradeStarCount: Int?
|
val upgradeStarCount: Int?
|
||||||
val remainingCount: Int?
|
val remainingCount: Int?
|
||||||
|
val personalTotalCount: Int?
|
||||||
|
val personalRemainingCount: Int?
|
||||||
|
val isPremium: Boolean
|
||||||
|
val hasColors: Boolean
|
||||||
|
val background: dev.inmo.tgbotapi.types.gifts.GiftBackground?
|
||||||
|
val uniqueGiftVariantCount: Int?
|
||||||
|
|
||||||
@Serializable
|
@Serializable
|
||||||
data class Unlimited(
|
data class Unlimited(
|
||||||
@@ -37,6 +45,18 @@ sealed interface Gift {
|
|||||||
override val upgradeStarCount: Int? = null,
|
override val upgradeStarCount: Int? = null,
|
||||||
@SerialName(publisherChatField)
|
@SerialName(publisherChatField)
|
||||||
override val publisherChat: PreviewChat? = null,
|
override val publisherChat: PreviewChat? = null,
|
||||||
|
@SerialName(personalTotalCountField)
|
||||||
|
override val personalTotalCount: Int? = null,
|
||||||
|
@SerialName(personalRemainingCountField)
|
||||||
|
override val personalRemainingCount: Int? = null,
|
||||||
|
@SerialName(isPremiumField2)
|
||||||
|
override val isPremium: Boolean = false,
|
||||||
|
@SerialName(hasColorsField)
|
||||||
|
override val hasColors: Boolean = false,
|
||||||
|
@SerialName(backgroundField)
|
||||||
|
override val background: dev.inmo.tgbotapi.types.gifts.GiftBackground? = null,
|
||||||
|
@SerialName(uniqueGiftVariantCountField)
|
||||||
|
override val uniqueGiftVariantCount: Int? = null,
|
||||||
) : Regular {
|
) : Regular {
|
||||||
override val totalCount: Int?
|
override val totalCount: Int?
|
||||||
get() = null
|
get() = null
|
||||||
@@ -60,6 +80,18 @@ sealed interface Gift {
|
|||||||
override val upgradeStarCount: Int? = null,
|
override val upgradeStarCount: Int? = null,
|
||||||
@SerialName(publisherChatField)
|
@SerialName(publisherChatField)
|
||||||
override val publisherChat: PreviewChat? = null,
|
override val publisherChat: PreviewChat? = null,
|
||||||
|
@SerialName(personalTotalCountField)
|
||||||
|
override val personalTotalCount: Int? = null,
|
||||||
|
@SerialName(personalRemainingCountField)
|
||||||
|
override val personalRemainingCount: Int? = null,
|
||||||
|
@SerialName(isPremiumField2)
|
||||||
|
override val isPremium: Boolean = false,
|
||||||
|
@SerialName(hasColorsField)
|
||||||
|
override val hasColors: Boolean = false,
|
||||||
|
@SerialName(backgroundField)
|
||||||
|
override val background: dev.inmo.tgbotapi.types.gifts.GiftBackground? = null,
|
||||||
|
@SerialName(uniqueGiftVariantCountField)
|
||||||
|
override val uniqueGiftVariantCount: Int? = null,
|
||||||
) : Regular
|
) : Regular
|
||||||
|
|
||||||
companion object : KSerializer<Regular> {
|
companion object : KSerializer<Regular> {
|
||||||
@@ -73,6 +105,12 @@ sealed interface Gift {
|
|||||||
val remaining_count: Int? = null,
|
val remaining_count: Int? = null,
|
||||||
val upgrade_star_count: Int? = null,
|
val upgrade_star_count: Int? = null,
|
||||||
val publisher_chat: PreviewChat? = null,
|
val publisher_chat: PreviewChat? = null,
|
||||||
|
val personal_total_count: Int? = null,
|
||||||
|
val personal_remaining_count: Int? = null,
|
||||||
|
val is_premium: Boolean = false,
|
||||||
|
val has_colors: Boolean = false,
|
||||||
|
val background: dev.inmo.tgbotapi.types.gifts.GiftBackground? = null,
|
||||||
|
val unique_gift_variant_count: Int? = null,
|
||||||
)
|
)
|
||||||
|
|
||||||
override val descriptor: SerialDescriptor
|
override val descriptor: SerialDescriptor
|
||||||
@@ -89,7 +127,13 @@ sealed interface Gift {
|
|||||||
totalCount = surrogate.total_count,
|
totalCount = surrogate.total_count,
|
||||||
remainingCount = surrogate.remaining_count,
|
remainingCount = surrogate.remaining_count,
|
||||||
upgradeStarCount = surrogate.upgrade_star_count,
|
upgradeStarCount = surrogate.upgrade_star_count,
|
||||||
publisherChat = surrogate.publisher_chat
|
publisherChat = surrogate.publisher_chat,
|
||||||
|
personalTotalCount = surrogate.personal_total_count,
|
||||||
|
personalRemainingCount = surrogate.personal_remaining_count,
|
||||||
|
isPremium = surrogate.is_premium,
|
||||||
|
hasColors = surrogate.has_colors,
|
||||||
|
background = surrogate.background,
|
||||||
|
uniqueGiftVariantCount = surrogate.unique_gift_variant_count
|
||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
Unlimited(
|
Unlimited(
|
||||||
@@ -98,6 +142,12 @@ sealed interface Gift {
|
|||||||
starCount = surrogate.star_count,
|
starCount = surrogate.star_count,
|
||||||
upgradeStarCount = surrogate.upgrade_star_count,
|
upgradeStarCount = surrogate.upgrade_star_count,
|
||||||
publisherChat = surrogate.publisher_chat,
|
publisherChat = surrogate.publisher_chat,
|
||||||
|
personalTotalCount = surrogate.personal_total_count,
|
||||||
|
personalRemainingCount = surrogate.personal_remaining_count,
|
||||||
|
isPremium = surrogate.is_premium,
|
||||||
|
hasColors = surrogate.has_colors,
|
||||||
|
background = surrogate.background,
|
||||||
|
uniqueGiftVariantCount = surrogate.unique_gift_variant_count
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -110,7 +160,13 @@ sealed interface Gift {
|
|||||||
total_count = value.totalCount,
|
total_count = value.totalCount,
|
||||||
remaining_count = value.remainingCount,
|
remaining_count = value.remainingCount,
|
||||||
upgrade_star_count = value.upgradeStarCount,
|
upgrade_star_count = value.upgradeStarCount,
|
||||||
publisher_chat = value.publisherChat
|
publisher_chat = value.publisherChat,
|
||||||
|
personal_total_count = value.personalTotalCount,
|
||||||
|
personal_remaining_count = value.personalRemainingCount,
|
||||||
|
is_premium = value.isPremium,
|
||||||
|
has_colors = value.hasColors,
|
||||||
|
background = value.background,
|
||||||
|
unique_gift_variant_count = value.uniqueGiftVariantCount
|
||||||
)
|
)
|
||||||
RegularGiftSurrogate.serializer().serialize(encoder, surrogate)
|
RegularGiftSurrogate.serializer().serialize(encoder, surrogate)
|
||||||
}
|
}
|
||||||
@@ -119,6 +175,8 @@ sealed interface Gift {
|
|||||||
|
|
||||||
@Serializable
|
@Serializable
|
||||||
data class Unique(
|
data class Unique(
|
||||||
|
@SerialName(giftIdField)
|
||||||
|
override val id: GiftId? = null,
|
||||||
@SerialName(baseNameField)
|
@SerialName(baseNameField)
|
||||||
val baseName: String,
|
val baseName: String,
|
||||||
@SerialName(nameField)
|
@SerialName(nameField)
|
||||||
@@ -132,7 +190,13 @@ sealed interface Gift {
|
|||||||
@SerialName(backdropField)
|
@SerialName(backdropField)
|
||||||
val backdrop: UniqueGiftBackdrop,
|
val backdrop: UniqueGiftBackdrop,
|
||||||
@SerialName(publisherChatField)
|
@SerialName(publisherChatField)
|
||||||
override val publisherChat: PreviewChat? = null
|
override val publisherChat: PreviewChat? = null,
|
||||||
|
@SerialName(isFromBlockchainField)
|
||||||
|
val isFromBlockchain: Boolean = false,
|
||||||
|
@SerialName(isPremiumField2)
|
||||||
|
val isPremium: Boolean = false,
|
||||||
|
@SerialName(colorsField)
|
||||||
|
val colors: UniqueGiftColors? = null
|
||||||
) : Gift
|
) : Gift
|
||||||
|
|
||||||
companion object : KSerializer<Gift> {
|
companion object : KSerializer<Gift> {
|
||||||
@@ -146,6 +210,12 @@ sealed interface Gift {
|
|||||||
val total_count: Int? = null,
|
val total_count: Int? = null,
|
||||||
val remaining_count: Int? = null,
|
val remaining_count: Int? = null,
|
||||||
val upgrade_star_count: Int? = null,
|
val upgrade_star_count: Int? = null,
|
||||||
|
val personal_total_count: Int? = null,
|
||||||
|
val personal_remaining_count: Int? = null,
|
||||||
|
val is_premium: Boolean = false,
|
||||||
|
val has_colors: Boolean = false,
|
||||||
|
val background: dev.inmo.tgbotapi.types.gifts.GiftBackground? = null,
|
||||||
|
val unique_gift_variant_count: Int? = null,
|
||||||
// unique gift fields
|
// unique gift fields
|
||||||
val base_name: String? = null,
|
val base_name: String? = null,
|
||||||
val name: String? = null,
|
val name: String? = null,
|
||||||
@@ -153,6 +223,8 @@ sealed interface Gift {
|
|||||||
val model: UniqueGiftModel? = null,
|
val model: UniqueGiftModel? = null,
|
||||||
val symbol: UniqueGiftSymbol? = null,
|
val symbol: UniqueGiftSymbol? = null,
|
||||||
val backdrop: UniqueGiftBackdrop? = null,
|
val backdrop: UniqueGiftBackdrop? = null,
|
||||||
|
val is_from_blockchain: Boolean = false,
|
||||||
|
val colors: dev.inmo.tgbotapi.types.gifts.unique.UniqueGiftColors? = null,
|
||||||
val publisher_chat: PreviewChat? = null,
|
val publisher_chat: PreviewChat? = null,
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -164,13 +236,17 @@ sealed interface Gift {
|
|||||||
|
|
||||||
return if (surrogate.base_name != null && surrogate.name != null && surrogate.number != null && surrogate.model != null && surrogate.symbol != null && surrogate.backdrop != null) {
|
return if (surrogate.base_name != null && surrogate.name != null && surrogate.number != null && surrogate.model != null && surrogate.symbol != null && surrogate.backdrop != null) {
|
||||||
Unique(
|
Unique(
|
||||||
|
id = surrogate.id,
|
||||||
baseName = surrogate.base_name,
|
baseName = surrogate.base_name,
|
||||||
name = surrogate.name,
|
name = surrogate.name,
|
||||||
number = surrogate.number,
|
number = surrogate.number,
|
||||||
model = surrogate.model,
|
model = surrogate.model,
|
||||||
symbol = surrogate.symbol,
|
symbol = surrogate.symbol,
|
||||||
backdrop = surrogate.backdrop,
|
backdrop = surrogate.backdrop,
|
||||||
publisherChat = surrogate.publisher_chat
|
publisherChat = surrogate.publisher_chat,
|
||||||
|
isFromBlockchain = surrogate.is_from_blockchain,
|
||||||
|
isPremium = surrogate.is_premium,
|
||||||
|
colors = surrogate.colors
|
||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
decoder.decodeSerializableValue(Regular.serializer())
|
decoder.decodeSerializableValue(Regular.serializer())
|
||||||
@@ -182,18 +258,26 @@ sealed interface Gift {
|
|||||||
value: Gift
|
value: Gift
|
||||||
) {
|
) {
|
||||||
val surrogate = GiftSurrogate(
|
val surrogate = GiftSurrogate(
|
||||||
id = (value as? Regular)?.id,
|
id = value.id,
|
||||||
sticker = (value as? Regular)?.sticker,
|
sticker = (value as? Regular)?.sticker,
|
||||||
star_count = (value as? Regular)?.starCount,
|
star_count = (value as? Regular)?.starCount,
|
||||||
total_count = (value as? Regular.Limited)?.totalCount,
|
total_count = (value as? Regular.Limited)?.totalCount,
|
||||||
remaining_count = (value as? Regular.Limited)?.remainingCount,
|
remaining_count = (value as? Regular.Limited)?.remainingCount,
|
||||||
upgrade_star_count = (value as? Regular)?.upgradeStarCount,
|
upgrade_star_count = (value as? Regular)?.upgradeStarCount,
|
||||||
|
personal_total_count = (value as? Regular)?.personalTotalCount,
|
||||||
|
personal_remaining_count = (value as? Regular)?.personalRemainingCount,
|
||||||
|
is_premium = (value as? Regular)?.isPremium ?: (value as? Unique)?.isPremium ?: false,
|
||||||
|
has_colors = (value as? Regular)?.hasColors ?: false,
|
||||||
|
background = (value as? Regular)?.background,
|
||||||
|
unique_gift_variant_count = (value as? Regular)?.uniqueGiftVariantCount,
|
||||||
base_name = (value as? Unique)?.baseName,
|
base_name = (value as? Unique)?.baseName,
|
||||||
name = (value as? Unique)?.name,
|
name = (value as? Unique)?.name,
|
||||||
number = (value as? Unique)?.number,
|
number = (value as? Unique)?.number,
|
||||||
model = (value as? Unique)?.model,
|
model = (value as? Unique)?.model,
|
||||||
symbol = (value as? Unique)?.symbol,
|
symbol = (value as? Unique)?.symbol,
|
||||||
backdrop = (value as? Unique)?.backdrop,
|
backdrop = (value as? Unique)?.backdrop,
|
||||||
|
is_from_blockchain = (value as? Unique)?.isFromBlockchain ?: false,
|
||||||
|
colors = (value as? Unique)?.colors,
|
||||||
publisher_chat = value.publisherChat,
|
publisher_chat = value.publisherChat,
|
||||||
)
|
)
|
||||||
GiftSurrogate.serializer().serialize(encoder, surrogate)
|
GiftSurrogate.serializer().serialize(encoder, surrogate)
|
||||||
|
|||||||
@@ -0,0 +1,19 @@
|
|||||||
|
package dev.inmo.tgbotapi.types.gifts
|
||||||
|
|
||||||
|
import dev.inmo.tgbotapi.types.centerColorField
|
||||||
|
import dev.inmo.tgbotapi.types.edgeColorField
|
||||||
|
import dev.inmo.tgbotapi.types.textColorField
|
||||||
|
import dev.inmo.tgbotapi.utils.RGBColor
|
||||||
|
import kotlinx.serialization.SerialName
|
||||||
|
import kotlinx.serialization.Serializable
|
||||||
|
|
||||||
|
|
||||||
|
@Serializable
|
||||||
|
data class GiftBackground(
|
||||||
|
@SerialName(centerColorField)
|
||||||
|
val centerColor: RGBColor,
|
||||||
|
@SerialName(edgeColorField)
|
||||||
|
val edgeColor: RGBColor,
|
||||||
|
@SerialName(textColorField)
|
||||||
|
val textColor: RGBColor
|
||||||
|
)
|
||||||
@@ -9,6 +9,7 @@ import dev.inmo.tgbotapi.types.message.asTextSources
|
|||||||
import dev.inmo.tgbotapi.types.message.textsources.TextSource
|
import dev.inmo.tgbotapi.types.message.textsources.TextSource
|
||||||
import dev.inmo.tgbotapi.types.message.textsources.TextSourcesList
|
import dev.inmo.tgbotapi.types.message.textsources.TextSourcesList
|
||||||
import dev.inmo.tgbotapi.types.message.toRawMessageEntities
|
import dev.inmo.tgbotapi.types.message.toRawMessageEntities
|
||||||
|
import dev.inmo.tgbotapi.types.payments.abstracts.Currency
|
||||||
import dev.inmo.tgbotapi.utils.internal.ClassCastsIncluded
|
import dev.inmo.tgbotapi.utils.internal.ClassCastsIncluded
|
||||||
import kotlinx.serialization.EncodeDefault
|
import kotlinx.serialization.EncodeDefault
|
||||||
import kotlinx.serialization.KSerializer
|
import kotlinx.serialization.KSerializer
|
||||||
@@ -51,6 +52,8 @@ sealed interface GiftSentOrReceived : CommonEvent {
|
|||||||
val prepaidUpgradeStarCount: Int?
|
val prepaidUpgradeStarCount: Int?
|
||||||
val canBeUpgraded: Boolean
|
val canBeUpgraded: Boolean
|
||||||
val isPrivate: Boolean
|
val isPrivate: Boolean
|
||||||
|
val isUpgradeSeparate: Boolean
|
||||||
|
val uniqueGiftNumber: Int?
|
||||||
|
|
||||||
@Serializable
|
@Serializable
|
||||||
data class Common(
|
data class Common(
|
||||||
@@ -68,6 +71,10 @@ sealed interface GiftSentOrReceived : CommonEvent {
|
|||||||
private val entities: RawMessageEntities? = null,
|
private val entities: RawMessageEntities? = null,
|
||||||
@SerialName(isPrivateField)
|
@SerialName(isPrivateField)
|
||||||
override val isPrivate: Boolean = false,
|
override val isPrivate: Boolean = false,
|
||||||
|
@SerialName(isUpgradeSeparateField)
|
||||||
|
override val isUpgradeSeparate: Boolean = false,
|
||||||
|
@SerialName(uniqueGiftNumberField)
|
||||||
|
override val uniqueGiftNumber: Int? = null,
|
||||||
@SerialName(nextTransferDateField)
|
@SerialName(nextTransferDateField)
|
||||||
override val nextTransferDate: TelegramDate? = null
|
override val nextTransferDate: TelegramDate? = null
|
||||||
) : Regular {
|
) : Regular {
|
||||||
@@ -96,6 +103,10 @@ sealed interface GiftSentOrReceived : CommonEvent {
|
|||||||
private val entities: RawMessageEntities? = null,
|
private val entities: RawMessageEntities? = null,
|
||||||
@SerialName(isPrivateField)
|
@SerialName(isPrivateField)
|
||||||
override val isPrivate: Boolean = false,
|
override val isPrivate: Boolean = false,
|
||||||
|
@SerialName(isUpgradeSeparateField)
|
||||||
|
override val isUpgradeSeparate: Boolean = false,
|
||||||
|
@SerialName(uniqueGiftNumberField)
|
||||||
|
override val uniqueGiftNumber: Int? = null,
|
||||||
@SerialName(nextTransferDateField)
|
@SerialName(nextTransferDateField)
|
||||||
override val nextTransferDate: TelegramDate? = null
|
override val nextTransferDate: TelegramDate? = null
|
||||||
) : Regular, GiftSentOrReceived.ReceivedInBusinessAccount {
|
) : Regular, GiftSentOrReceived.ReceivedInBusinessAccount {
|
||||||
@@ -123,6 +134,10 @@ sealed interface GiftSentOrReceived : CommonEvent {
|
|||||||
val entities: RawMessageEntities? = null,
|
val entities: RawMessageEntities? = null,
|
||||||
@SerialName(isPrivateField)
|
@SerialName(isPrivateField)
|
||||||
val isPrivate: Boolean = false,
|
val isPrivate: Boolean = false,
|
||||||
|
@SerialName(isUpgradeSeparateField)
|
||||||
|
val isUpgradeSeparate: Boolean = false,
|
||||||
|
@SerialName(uniqueGiftNumberField)
|
||||||
|
val uniqueGiftNumber: Int? = null,
|
||||||
@SerialName(nextTransferDateField)
|
@SerialName(nextTransferDateField)
|
||||||
val nextTransferDate: TelegramDate? = null
|
val nextTransferDate: TelegramDate? = null
|
||||||
)
|
)
|
||||||
@@ -150,6 +165,8 @@ sealed interface GiftSentOrReceived : CommonEvent {
|
|||||||
text = surrogate.text,
|
text = surrogate.text,
|
||||||
entities = surrogate.entities,
|
entities = surrogate.entities,
|
||||||
isPrivate = surrogate.isPrivate,
|
isPrivate = surrogate.isPrivate,
|
||||||
|
isUpgradeSeparate = surrogate.isUpgradeSeparate,
|
||||||
|
uniqueGiftNumber = surrogate.uniqueGiftNumber,
|
||||||
nextTransferDate = surrogate.nextTransferDate
|
nextTransferDate = surrogate.nextTransferDate
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
@@ -163,6 +180,8 @@ sealed interface GiftSentOrReceived : CommonEvent {
|
|||||||
text = surrogate.text,
|
text = surrogate.text,
|
||||||
entities = surrogate.entities,
|
entities = surrogate.entities,
|
||||||
isPrivate = surrogate.isPrivate,
|
isPrivate = surrogate.isPrivate,
|
||||||
|
isUpgradeSeparate = surrogate.isUpgradeSeparate,
|
||||||
|
uniqueGiftNumber = surrogate.uniqueGiftNumber,
|
||||||
nextTransferDate = surrogate.nextTransferDate
|
nextTransferDate = surrogate.nextTransferDate
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
@@ -178,7 +197,9 @@ sealed interface GiftSentOrReceived : CommonEvent {
|
|||||||
text: String? = null,
|
text: String? = null,
|
||||||
textSources: TextSourcesList = emptyList(),
|
textSources: TextSourcesList = emptyList(),
|
||||||
position: Int,
|
position: Int,
|
||||||
isPrivate: Boolean = false
|
isPrivate: Boolean = false,
|
||||||
|
isUpgradeSeparate: Boolean = false,
|
||||||
|
uniqueGiftNumber: Int? = null
|
||||||
) = ownedGiftId ?.let {
|
) = ownedGiftId ?.let {
|
||||||
ReceivedInBusinessAccount(
|
ReceivedInBusinessAccount(
|
||||||
gift,
|
gift,
|
||||||
@@ -188,7 +209,9 @@ sealed interface GiftSentOrReceived : CommonEvent {
|
|||||||
canBeUpgraded,
|
canBeUpgraded,
|
||||||
text,
|
text,
|
||||||
textSources.toRawMessageEntities(position),
|
textSources.toRawMessageEntities(position),
|
||||||
isPrivate
|
isPrivate,
|
||||||
|
isUpgradeSeparate,
|
||||||
|
uniqueGiftNumber
|
||||||
)
|
)
|
||||||
} ?: Common(
|
} ?: Common(
|
||||||
gift,
|
gift,
|
||||||
@@ -197,7 +220,9 @@ sealed interface GiftSentOrReceived : CommonEvent {
|
|||||||
canBeUpgraded,
|
canBeUpgraded,
|
||||||
text,
|
text,
|
||||||
textSources.toRawMessageEntities(position),
|
textSources.toRawMessageEntities(position),
|
||||||
isPrivate
|
isPrivate,
|
||||||
|
isUpgradeSeparate,
|
||||||
|
uniqueGiftNumber
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -207,7 +232,10 @@ sealed interface GiftSentOrReceived : CommonEvent {
|
|||||||
override val gift: Gift.Unique
|
override val gift: Gift.Unique
|
||||||
val origin: String?
|
val origin: String?
|
||||||
val originTyped: Origin?
|
val originTyped: Origin?
|
||||||
|
@Deprecated("Use lastResaleCurrency and lastResaleAmount instead")
|
||||||
val lastResaleStarCount: Int?
|
val lastResaleStarCount: Int?
|
||||||
|
val lastResaleCurrency: String?
|
||||||
|
val lastResaleAmount: Long?
|
||||||
val transferStarCount: Int?
|
val transferStarCount: Int?
|
||||||
|
|
||||||
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||||
@@ -215,11 +243,15 @@ sealed interface GiftSentOrReceived : CommonEvent {
|
|||||||
sealed interface Origin {
|
sealed interface Origin {
|
||||||
val string: String
|
val string: String
|
||||||
@Serializable(Origin.Companion::class)
|
@Serializable(Origin.Companion::class)
|
||||||
object Upgrade : Origin { override val string: String = "upgrade" }
|
data object Upgrade : Origin { override val string: String = "upgrade" }
|
||||||
@Serializable(Origin.Companion::class)
|
@Serializable(Origin.Companion::class)
|
||||||
object Transfer : Origin { override val string: String = "transfer" }
|
data object Transfer : Origin { override val string: String = "transfer" }
|
||||||
@Serializable(Origin.Companion::class)
|
@Serializable(Origin.Companion::class)
|
||||||
object Resale : Origin { override val string: String = "resale" }
|
data object Resale : Origin { override val string: String = "resale" }
|
||||||
|
@Serializable(Origin.Companion::class)
|
||||||
|
data object GiftedUpgrade : Origin { override val string: String = "gifted_upgrade" }
|
||||||
|
@Serializable(Origin.Companion::class)
|
||||||
|
data object Offer : Origin { override val string: String = "offer" }
|
||||||
@Serializable(Origin.Companion::class)
|
@Serializable(Origin.Companion::class)
|
||||||
@JvmInline
|
@JvmInline
|
||||||
value class Unknown(override val string: String) : Origin
|
value class Unknown(override val string: String) : Origin
|
||||||
@@ -231,6 +263,8 @@ sealed interface GiftSentOrReceived : CommonEvent {
|
|||||||
Upgrade.string -> Upgrade
|
Upgrade.string -> Upgrade
|
||||||
Transfer.string -> Transfer
|
Transfer.string -> Transfer
|
||||||
Resale.string -> Resale
|
Resale.string -> Resale
|
||||||
|
GiftedUpgrade.string -> GiftedUpgrade
|
||||||
|
Offer.string -> Offer
|
||||||
else -> Unknown(value)
|
else -> Unknown(value)
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -254,8 +288,13 @@ sealed interface GiftSentOrReceived : CommonEvent {
|
|||||||
override val gift: Gift.Unique,
|
override val gift: Gift.Unique,
|
||||||
@SerialName(originField)
|
@SerialName(originField)
|
||||||
override val originTyped: Origin? = null,
|
override val originTyped: Origin? = null,
|
||||||
|
@Deprecated("Use lastResaleCurrency and lastResaleAmount instead")
|
||||||
@SerialName(lastResaleStarCountField)
|
@SerialName(lastResaleStarCountField)
|
||||||
override val lastResaleStarCount: Int? = null,
|
override val lastResaleStarCount: Int? = null,
|
||||||
|
@SerialName(lastResaleCurrencyField)
|
||||||
|
override val lastResaleCurrency: Currency? = null,
|
||||||
|
@SerialName(lastResaleAmountField)
|
||||||
|
override val lastResaleAmount: Long? = null,
|
||||||
@SerialName(transferStarCountField)
|
@SerialName(transferStarCountField)
|
||||||
override val transferStarCount: Int? = null,
|
override val transferStarCount: Int? = null,
|
||||||
@SerialName(nextTransferDateField)
|
@SerialName(nextTransferDateField)
|
||||||
@@ -271,12 +310,16 @@ sealed interface GiftSentOrReceived : CommonEvent {
|
|||||||
gift: Gift.Unique,
|
gift: Gift.Unique,
|
||||||
origin: String?,
|
origin: String?,
|
||||||
lastResaleStarCount: Int? = null,
|
lastResaleStarCount: Int? = null,
|
||||||
|
lastResaleCurrency: Currency? = null,
|
||||||
|
lastResaleAmount: Long? = null,
|
||||||
transferStarCount: Int? = null,
|
transferStarCount: Int? = null,
|
||||||
nextTransferDate: TelegramDate? = null
|
nextTransferDate: TelegramDate? = null
|
||||||
) : this(
|
) : this(
|
||||||
gift,
|
gift,
|
||||||
origin ?.let { Origin.fromString(it) },
|
origin ?.let { Origin.fromString(it) },
|
||||||
lastResaleStarCount,
|
lastResaleStarCount,
|
||||||
|
lastResaleCurrency,
|
||||||
|
lastResaleAmount,
|
||||||
transferStarCount,
|
transferStarCount,
|
||||||
nextTransferDate
|
nextTransferDate
|
||||||
)
|
)
|
||||||
@@ -290,8 +333,13 @@ sealed interface GiftSentOrReceived : CommonEvent {
|
|||||||
override val ownedGiftId: GiftId,
|
override val ownedGiftId: GiftId,
|
||||||
@SerialName(originField)
|
@SerialName(originField)
|
||||||
override val originTyped: Origin? = null,
|
override val originTyped: Origin? = null,
|
||||||
|
@Deprecated("Use lastResaleCurrency and lastResaleAmount instead")
|
||||||
@SerialName(lastResaleStarCountField)
|
@SerialName(lastResaleStarCountField)
|
||||||
override val lastResaleStarCount: Int? = null,
|
override val lastResaleStarCount: Int? = null,
|
||||||
|
@SerialName(lastResaleCurrencyField)
|
||||||
|
override val lastResaleCurrency: Currency? = null,
|
||||||
|
@SerialName(lastResaleAmountField)
|
||||||
|
override val lastResaleAmount: Long? = null,
|
||||||
@SerialName(transferStarCountField)
|
@SerialName(transferStarCountField)
|
||||||
override val transferStarCount: Int? = null,
|
override val transferStarCount: Int? = null,
|
||||||
@SerialName(nextTransferDateField)
|
@SerialName(nextTransferDateField)
|
||||||
@@ -305,6 +353,8 @@ sealed interface GiftSentOrReceived : CommonEvent {
|
|||||||
ownedGiftId: GiftId,
|
ownedGiftId: GiftId,
|
||||||
origin: String? = null,
|
origin: String? = null,
|
||||||
lastResaleStarCount: Int? = null,
|
lastResaleStarCount: Int? = null,
|
||||||
|
lastResaleCurrency: Currency? = null,
|
||||||
|
lastResaleAmount: Long? = null,
|
||||||
transferStarCount: Int? = null,
|
transferStarCount: Int? = null,
|
||||||
nextTransferDate: TelegramDate? = null
|
nextTransferDate: TelegramDate? = null
|
||||||
) : this(
|
) : this(
|
||||||
@@ -312,6 +362,8 @@ sealed interface GiftSentOrReceived : CommonEvent {
|
|||||||
ownedGiftId = ownedGiftId,
|
ownedGiftId = ownedGiftId,
|
||||||
originTyped = origin ?.let { Origin.fromString(it) },
|
originTyped = origin ?.let { Origin.fromString(it) },
|
||||||
lastResaleStarCount = lastResaleStarCount,
|
lastResaleStarCount = lastResaleStarCount,
|
||||||
|
lastResaleCurrency = lastResaleCurrency,
|
||||||
|
lastResaleAmount = lastResaleAmount,
|
||||||
transferStarCount = transferStarCount,
|
transferStarCount = transferStarCount,
|
||||||
nextTransferDate = nextTransferDate
|
nextTransferDate = nextTransferDate
|
||||||
)
|
)
|
||||||
@@ -328,6 +380,10 @@ sealed interface GiftSentOrReceived : CommonEvent {
|
|||||||
val origin: Origin? = null,
|
val origin: Origin? = null,
|
||||||
@SerialName(lastResaleStarCountField)
|
@SerialName(lastResaleStarCountField)
|
||||||
val lastResaleStarCount: Int? = null,
|
val lastResaleStarCount: Int? = null,
|
||||||
|
@SerialName(lastResaleCurrencyField)
|
||||||
|
val lastResaleCurrency: Currency? = null,
|
||||||
|
@SerialName(lastResaleAmountField)
|
||||||
|
val lastResaleAmount: Long? = null,
|
||||||
@SerialName(transferStarCountField)
|
@SerialName(transferStarCountField)
|
||||||
val transferStarCount: Int? = null,
|
val transferStarCount: Int? = null,
|
||||||
@SerialName(nextTransferDateField)
|
@SerialName(nextTransferDateField)
|
||||||
@@ -353,6 +409,8 @@ sealed interface GiftSentOrReceived : CommonEvent {
|
|||||||
gift = surrogate.gift,
|
gift = surrogate.gift,
|
||||||
originTyped = surrogate.origin,
|
originTyped = surrogate.origin,
|
||||||
lastResaleStarCount = surrogate.lastResaleStarCount,
|
lastResaleStarCount = surrogate.lastResaleStarCount,
|
||||||
|
lastResaleCurrency = surrogate.lastResaleCurrency,
|
||||||
|
lastResaleAmount = surrogate.lastResaleAmount,
|
||||||
transferStarCount = surrogate.transferStarCount,
|
transferStarCount = surrogate.transferStarCount,
|
||||||
nextTransferDate = surrogate.nextTransferDate
|
nextTransferDate = surrogate.nextTransferDate
|
||||||
)
|
)
|
||||||
@@ -363,6 +421,8 @@ sealed interface GiftSentOrReceived : CommonEvent {
|
|||||||
ownedGiftId = surrogate.ownedGiftId,
|
ownedGiftId = surrogate.ownedGiftId,
|
||||||
originTyped = surrogate.origin,
|
originTyped = surrogate.origin,
|
||||||
lastResaleStarCount = surrogate.lastResaleStarCount,
|
lastResaleStarCount = surrogate.lastResaleStarCount,
|
||||||
|
lastResaleCurrency = surrogate.lastResaleCurrency,
|
||||||
|
lastResaleAmount = surrogate.lastResaleAmount,
|
||||||
transferStarCount = surrogate.transferStarCount,
|
transferStarCount = surrogate.transferStarCount,
|
||||||
nextTransferDate = surrogate.nextTransferDate
|
nextTransferDate = surrogate.nextTransferDate
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -0,0 +1,23 @@
|
|||||||
|
package dev.inmo.tgbotapi.types.gifts.unique
|
||||||
|
|
||||||
|
import dev.inmo.tgbotapi.types.*
|
||||||
|
import dev.inmo.tgbotapi.utils.RGBColor
|
||||||
|
import kotlinx.serialization.SerialName
|
||||||
|
import kotlinx.serialization.Serializable
|
||||||
|
|
||||||
|
|
||||||
|
@Serializable
|
||||||
|
data class UniqueGiftColors(
|
||||||
|
@SerialName(modelCustomEmojiIdField)
|
||||||
|
val modelCustomEmojiId: CustomEmojiId,
|
||||||
|
@SerialName(symbolCustomEmojiIdField)
|
||||||
|
val symbolCustomEmojiId: CustomEmojiId,
|
||||||
|
@SerialName(lightThemeMainColorField)
|
||||||
|
val lightThemeMainColor: RGBColor,
|
||||||
|
@SerialName(lightThemeOtherColorsField)
|
||||||
|
val lightThemeOtherColors: List<RGBColor>,
|
||||||
|
@SerialName(darkThemeMainColorField)
|
||||||
|
val darkThemeMainColor: RGBColor,
|
||||||
|
@SerialName(darkThemeOtherColorsField)
|
||||||
|
val darkThemeOtherColors: List<RGBColor>
|
||||||
|
)
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
package dev.inmo.tgbotapi.types.message.ChatEvents
|
||||||
|
|
||||||
|
import dev.inmo.tgbotapi.types.chat.CommonUser
|
||||||
|
import dev.inmo.tgbotapi.types.message.ChatEvents.abstracts.PublicChatEvent
|
||||||
|
import dev.inmo.tgbotapi.types.newOwnerField
|
||||||
|
import kotlinx.serialization.SerialName
|
||||||
|
import kotlinx.serialization.Serializable
|
||||||
|
|
||||||
|
@Serializable
|
||||||
|
data class ChatOwnerChanged(
|
||||||
|
@SerialName(newOwnerField)
|
||||||
|
val newOwner: CommonUser
|
||||||
|
) : PublicChatEvent
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
package dev.inmo.tgbotapi.types.message.ChatEvents
|
||||||
|
|
||||||
|
import dev.inmo.tgbotapi.types.chat.CommonUser
|
||||||
|
import dev.inmo.tgbotapi.types.message.ChatEvents.abstracts.PublicChatEvent
|
||||||
|
import dev.inmo.tgbotapi.types.newOwnerField
|
||||||
|
import kotlinx.serialization.SerialName
|
||||||
|
import kotlinx.serialization.Serializable
|
||||||
|
|
||||||
|
@Serializable
|
||||||
|
data class ChatOwnerLeft(
|
||||||
|
@SerialName(newOwnerField)
|
||||||
|
val newOwner: CommonUser? = null
|
||||||
|
) : PublicChatEvent
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
package dev.inmo.tgbotapi.types.message.ChatEvents.abstracts
|
||||||
|
|
||||||
|
interface PrivateForumEvent : PrivateEvent
|
||||||
@@ -3,7 +3,9 @@ package dev.inmo.tgbotapi.types.message.ChatEvents.forum
|
|||||||
import dev.inmo.tgbotapi.types.CustomEmojiId
|
import dev.inmo.tgbotapi.types.CustomEmojiId
|
||||||
import dev.inmo.tgbotapi.types.iconColorField
|
import dev.inmo.tgbotapi.types.iconColorField
|
||||||
import dev.inmo.tgbotapi.types.iconCustomEmojiIdField
|
import dev.inmo.tgbotapi.types.iconCustomEmojiIdField
|
||||||
|
import dev.inmo.tgbotapi.types.isNameImplicitField
|
||||||
import dev.inmo.tgbotapi.types.message.ChatEvents.abstracts.ForumEvent
|
import dev.inmo.tgbotapi.types.message.ChatEvents.abstracts.ForumEvent
|
||||||
|
import dev.inmo.tgbotapi.types.message.ChatEvents.abstracts.PrivateForumEvent
|
||||||
import dev.inmo.tgbotapi.types.nameField
|
import dev.inmo.tgbotapi.types.nameField
|
||||||
import dev.inmo.tgbotapi.utils.RGBColor
|
import dev.inmo.tgbotapi.utils.RGBColor
|
||||||
import kotlinx.serialization.SerialName
|
import kotlinx.serialization.SerialName
|
||||||
@@ -16,5 +18,7 @@ data class ForumTopicCreated(
|
|||||||
@SerialName(iconColorField)
|
@SerialName(iconColorField)
|
||||||
val iconColor: RGBColor,
|
val iconColor: RGBColor,
|
||||||
@SerialName(iconCustomEmojiIdField)
|
@SerialName(iconCustomEmojiIdField)
|
||||||
val iconEmojiId: CustomEmojiId? = null
|
val iconEmojiId: CustomEmojiId? = null,
|
||||||
) : ForumEvent
|
@SerialName(isNameImplicitField)
|
||||||
|
val isNameImplicit: Boolean = false
|
||||||
|
) : ForumEvent, PrivateForumEvent
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ import dev.inmo.tgbotapi.types.CustomEmojiId
|
|||||||
import dev.inmo.tgbotapi.types.iconColorField
|
import dev.inmo.tgbotapi.types.iconColorField
|
||||||
import dev.inmo.tgbotapi.types.iconCustomEmojiIdField
|
import dev.inmo.tgbotapi.types.iconCustomEmojiIdField
|
||||||
import dev.inmo.tgbotapi.types.message.ChatEvents.abstracts.ForumEvent
|
import dev.inmo.tgbotapi.types.message.ChatEvents.abstracts.ForumEvent
|
||||||
|
import dev.inmo.tgbotapi.types.message.ChatEvents.abstracts.PrivateForumEvent
|
||||||
import dev.inmo.tgbotapi.types.nameField
|
import dev.inmo.tgbotapi.types.nameField
|
||||||
import dev.inmo.tgbotapi.utils.RGBColor
|
import dev.inmo.tgbotapi.utils.RGBColor
|
||||||
import kotlinx.serialization.SerialName
|
import kotlinx.serialization.SerialName
|
||||||
@@ -15,4 +16,4 @@ data class ForumTopicEdited(
|
|||||||
val name: String,
|
val name: String,
|
||||||
@SerialName(iconCustomEmojiIdField)
|
@SerialName(iconCustomEmojiIdField)
|
||||||
val iconEmojiId: CustomEmojiId? = null
|
val iconEmojiId: CustomEmojiId? = null
|
||||||
) : ForumEvent
|
) : ForumEvent, PrivateForumEvent
|
||||||
|
|||||||
@@ -0,0 +1,36 @@
|
|||||||
|
package dev.inmo.tgbotapi.types.message
|
||||||
|
|
||||||
|
import korlibs.time.DateTime
|
||||||
|
import dev.inmo.tgbotapi.types.*
|
||||||
|
import dev.inmo.tgbotapi.types.buttons.InlineKeyboardMarkup
|
||||||
|
import dev.inmo.tgbotapi.types.chat.*
|
||||||
|
import dev.inmo.tgbotapi.types.chat.CommonBot
|
||||||
|
import dev.inmo.tgbotapi.types.chat.User
|
||||||
|
import dev.inmo.tgbotapi.types.message.ChatEvents.forum.ForumTopicCreated
|
||||||
|
import dev.inmo.tgbotapi.types.message.abstracts.AccessibleMessage
|
||||||
|
import dev.inmo.tgbotapi.types.message.abstracts.PrivateContentMessage
|
||||||
|
import dev.inmo.tgbotapi.types.message.abstracts.PrivateForumContentMessage
|
||||||
|
import dev.inmo.tgbotapi.types.message.content.MessageContent
|
||||||
|
import kotlinx.serialization.SerialName
|
||||||
|
|
||||||
|
data class PrivateForumContentMessageImpl<T: MessageContent>(
|
||||||
|
override val messageId: MessageId,
|
||||||
|
override val threadId: MessageThreadId,
|
||||||
|
override val threadCreatingInfo: ForumTopicCreated?,
|
||||||
|
override val from: User,
|
||||||
|
override val chat: PreviewPrivateChat,
|
||||||
|
override val content: T,
|
||||||
|
override val date: DateTime,
|
||||||
|
override val editDate: DateTime?,
|
||||||
|
override val hasProtectedContent: Boolean,
|
||||||
|
override val forwardOrigin: MessageOrigin?,
|
||||||
|
override val replyInfo: ReplyInfo?,
|
||||||
|
override val replyMarkup: InlineKeyboardMarkup?,
|
||||||
|
override val senderBot: CommonBot?,
|
||||||
|
override val mediaGroupId: MediaGroupId?,
|
||||||
|
override val fromOffline: Boolean,
|
||||||
|
override val effectId: EffectId?,
|
||||||
|
@SerialName(paidStarCountField)
|
||||||
|
override val cost: Int? = null
|
||||||
|
) : PrivateForumContentMessage<T> {
|
||||||
|
}
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
package dev.inmo.tgbotapi.types.message
|
||||||
|
|
||||||
|
import korlibs.time.DateTime
|
||||||
|
import dev.inmo.tgbotapi.types.MessageId
|
||||||
|
import dev.inmo.tgbotapi.types.chat.PreviewPrivateChat
|
||||||
|
import dev.inmo.tgbotapi.types.chat.PreviewPrivateForumChat
|
||||||
|
import dev.inmo.tgbotapi.types.chat.PrivateChat
|
||||||
|
import dev.inmo.tgbotapi.types.message.ChatEvents.abstracts.PrivateEvent
|
||||||
|
import dev.inmo.tgbotapi.types.message.ChatEvents.abstracts.PrivateForumEvent
|
||||||
|
import dev.inmo.tgbotapi.types.message.abstracts.ChatEventMessage
|
||||||
|
|
||||||
|
data class PrivateForumEventMessage<T : PrivateForumEvent>(
|
||||||
|
override val messageId: MessageId,
|
||||||
|
override val chat: PreviewPrivateForumChat,
|
||||||
|
override val chatEvent: T,
|
||||||
|
override val date: DateTime
|
||||||
|
) : ChatEventMessage<T>
|
||||||
@@ -201,6 +201,9 @@ internal data class RawMessage(
|
|||||||
// Gifts
|
// Gifts
|
||||||
private val gift: GiftSentOrReceived.Regular? = null,
|
private val gift: GiftSentOrReceived.Regular? = null,
|
||||||
private val unique_gift: GiftSentOrReceived.Unique? = null,
|
private val unique_gift: GiftSentOrReceived.Unique? = null,
|
||||||
|
private val gift_upgrade_sent: GiftSentOrReceived? = null,
|
||||||
|
private val chat_owner_left: ChatOwnerLeft? = null,
|
||||||
|
private val chat_owner_changed: ChatOwnerChanged? = null,
|
||||||
) {
|
) {
|
||||||
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||||
private val checkedFrom = from ?.takeIf { !it.isFakeTelegramUser() }
|
private val checkedFrom = from ?.takeIf { !it.isFakeTelegramUser() }
|
||||||
@@ -299,6 +302,8 @@ internal data class RawMessage(
|
|||||||
forum_topic_reopened != null -> forum_topic_reopened
|
forum_topic_reopened != null -> forum_topic_reopened
|
||||||
video_chat_ended != null -> video_chat_ended
|
video_chat_ended != null -> video_chat_ended
|
||||||
video_chat_participants_invited != null -> video_chat_participants_invited
|
video_chat_participants_invited != null -> video_chat_participants_invited
|
||||||
|
chat_owner_left != null -> chat_owner_left
|
||||||
|
chat_owner_changed != null -> chat_owner_changed
|
||||||
delete_chat_photo -> DeleteChatPhoto()
|
delete_chat_photo -> DeleteChatPhoto()
|
||||||
group_chat_created -> GroupChatCreated(
|
group_chat_created -> GroupChatCreated(
|
||||||
migrate_to_chat_id
|
migrate_to_chat_id
|
||||||
@@ -328,6 +333,7 @@ internal data class RawMessage(
|
|||||||
paid_message_price_changed != null -> paid_message_price_changed
|
paid_message_price_changed != null -> paid_message_price_changed
|
||||||
gift != null -> gift
|
gift != null -> gift
|
||||||
unique_gift != null -> unique_gift
|
unique_gift != null -> unique_gift
|
||||||
|
gift_upgrade_sent != null -> gift_upgrade_sent
|
||||||
checklist_tasks_done != null -> checklist_tasks_done
|
checklist_tasks_done != null -> checklist_tasks_done
|
||||||
checklist_tasks_added != null -> checklist_tasks_added
|
checklist_tasks_added != null -> checklist_tasks_added
|
||||||
direct_message_price_changed != null -> direct_message_price_changed
|
direct_message_price_changed != null -> direct_message_price_changed
|
||||||
@@ -378,12 +384,37 @@ internal data class RawMessage(
|
|||||||
chatEvent as? ChannelEvent ?: throwWrongChatEvent(ChannelEvent::class, chatEvent),
|
chatEvent as? ChannelEvent ?: throwWrongChatEvent(ChannelEvent::class, chatEvent),
|
||||||
date.asDate
|
date.asDate
|
||||||
)
|
)
|
||||||
is PreviewPrivateChat -> PrivateEventMessage(
|
is PreviewPrivateChat -> if (chat is PrivateForumChat || is_topic_message == true || messageThreadId != null) {
|
||||||
messageId,
|
PrivateEventMessage(
|
||||||
chat,
|
messageId,
|
||||||
chatEvent as? PrivateEvent ?: throwWrongChatEvent(PrivateEvent::class, chatEvent),
|
if (chat is PrivateForumChat) {
|
||||||
date.asDate
|
chat
|
||||||
)
|
} else {
|
||||||
|
PrivateForumChatImpl(
|
||||||
|
id = if (messageThreadId == null) {
|
||||||
|
chat.id
|
||||||
|
} else {
|
||||||
|
ChatIdWithThreadId(
|
||||||
|
chat.id.chatId,
|
||||||
|
chat.id.threadId ?: messageThreadId
|
||||||
|
)
|
||||||
|
},
|
||||||
|
username = chat.username,
|
||||||
|
firstName = chat.firstName,
|
||||||
|
lastName = chat.lastName
|
||||||
|
)
|
||||||
|
},
|
||||||
|
chatEvent as? PrivateEvent ?: throwWrongChatEvent(PrivateEvent::class, chatEvent),
|
||||||
|
date.asDate
|
||||||
|
)
|
||||||
|
} else {
|
||||||
|
PrivateEventMessage(
|
||||||
|
messageId,
|
||||||
|
chat,
|
||||||
|
chatEvent as? PrivateEvent ?: throwWrongChatEvent(PrivateEvent::class, chatEvent),
|
||||||
|
date.asDate
|
||||||
|
)
|
||||||
|
}
|
||||||
else -> error("Expected one of the public chats, but was $chat (in extracting of chat event message)")
|
else -> error("Expected one of the public chats, but was $chat (in extracting of chat event message)")
|
||||||
}
|
}
|
||||||
} ?: content?.let { content ->
|
} ?: content?.let { content ->
|
||||||
@@ -746,23 +777,64 @@ internal data class RawMessage(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
is PreviewPrivateChat -> if (business_connection_id == null) {
|
is PreviewPrivateChat -> if (business_connection_id == null) {
|
||||||
PrivateContentMessageImpl(
|
when {
|
||||||
messageId = messageId,
|
is_topic_message == true -> {
|
||||||
from = checkedFrom ?: from ?: error("Was detected common message, but owner (sender) of the message was not found"),
|
val chatId = ChatIdWithThreadId(
|
||||||
chat = chat,
|
chat.id.chatId,
|
||||||
content = content,
|
messageThreadId ?: error("Was detected forum private message, but message thread id was not found")
|
||||||
date = date.asDate,
|
)
|
||||||
editDate = edit_date?.asDate,
|
val actualForumChat = when (chat) {
|
||||||
hasProtectedContent = has_protected_content == true,
|
is PrivateForumChatImpl -> chat.copy(id = chatId)
|
||||||
forwardOrigin = forward_origin,
|
is CommonUser -> chat.copy(id = chatId)
|
||||||
replyInfo = replyInfo,
|
is CommonBot -> chat
|
||||||
replyMarkup = reply_markup,
|
is PrivateChatImpl -> PrivateForumChatImpl(
|
||||||
senderBot = via_bot,
|
id = chatId,
|
||||||
mediaGroupId = media_group_id,
|
username = chat.username,
|
||||||
fromOffline = is_from_offline,
|
firstName = chat.firstName,
|
||||||
effectId = effect_id,
|
lastName = chat.lastName
|
||||||
cost = paid_star_count,
|
)
|
||||||
)
|
}
|
||||||
|
PrivateForumContentMessageImpl(
|
||||||
|
messageId = messageId,
|
||||||
|
from = checkedFrom ?: from ?: error("Was detected common message, but owner (sender) of the message was not found"),
|
||||||
|
threadId = messageThreadId,
|
||||||
|
threadCreatingInfo = forum_topic_created,
|
||||||
|
chat = actualForumChat,
|
||||||
|
content = content,
|
||||||
|
date = date.asDate,
|
||||||
|
editDate = edit_date?.asDate,
|
||||||
|
hasProtectedContent = has_protected_content == true,
|
||||||
|
forwardOrigin = forward_origin,
|
||||||
|
replyInfo = replyInfo,
|
||||||
|
replyMarkup = reply_markup,
|
||||||
|
senderBot = via_bot,
|
||||||
|
mediaGroupId = media_group_id,
|
||||||
|
fromOffline = is_from_offline,
|
||||||
|
effectId = effect_id,
|
||||||
|
cost = paid_star_count,
|
||||||
|
)
|
||||||
|
}
|
||||||
|
else -> {
|
||||||
|
PrivateContentMessageImpl(
|
||||||
|
messageId = messageId,
|
||||||
|
from = checkedFrom ?: from
|
||||||
|
?: error("Was detected common message, but owner (sender) of the message was not found"),
|
||||||
|
chat = chat,
|
||||||
|
content = content,
|
||||||
|
date = date.asDate,
|
||||||
|
editDate = edit_date?.asDate,
|
||||||
|
hasProtectedContent = has_protected_content == true,
|
||||||
|
forwardOrigin = forward_origin,
|
||||||
|
replyInfo = replyInfo,
|
||||||
|
replyMarkup = reply_markup,
|
||||||
|
senderBot = via_bot,
|
||||||
|
mediaGroupId = media_group_id,
|
||||||
|
fromOffline = is_from_offline,
|
||||||
|
effectId = effect_id,
|
||||||
|
cost = paid_star_count,
|
||||||
|
)
|
||||||
|
}
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
BusinessContentMessageImpl(
|
BusinessContentMessageImpl(
|
||||||
messageId = messageId,
|
messageId = messageId,
|
||||||
|
|||||||
@@ -0,0 +1,9 @@
|
|||||||
|
package dev.inmo.tgbotapi.types.message.abstracts
|
||||||
|
|
||||||
|
import dev.inmo.tgbotapi.types.MessageThreadId
|
||||||
|
import dev.inmo.tgbotapi.types.chat.PreviewPrivateChat
|
||||||
|
import dev.inmo.tgbotapi.types.message.content.MessageContent
|
||||||
|
|
||||||
|
interface PrivateForumContentMessage<T: MessageContent> : PrivateContentMessage<T>, PossiblyTopicMessage {
|
||||||
|
override val threadId: MessageThreadId
|
||||||
|
}
|
||||||
@@ -17,9 +17,9 @@ data class TextMentionTextSource @RiskFeature(DirectInvocationOfTextSourceConstr
|
|||||||
val user: User,
|
val user: User,
|
||||||
override val subsources: TextSourcesList
|
override val subsources: TextSourcesList
|
||||||
) : MultilevelTextSource {
|
) : MultilevelTextSource {
|
||||||
override val markdown: String by lazy { source.textMentionMarkdown(user.id) }
|
override val markdown: String by lazy { source.textMentionMarkdown(user.id.toChatId()) }
|
||||||
override val markdownV2: String by lazy { textMentionMarkdownV2(user.id) }
|
override val markdownV2: String by lazy { textMentionMarkdownV2(user.id.toChatId()) }
|
||||||
override val html: String by lazy { textMentionHTML(user.id) }
|
override val html: String by lazy { textMentionHTML(user.id.toChatId()) }
|
||||||
}
|
}
|
||||||
|
|
||||||
fun mentionTextSource(parts: TextSourcesList, user: User) = TextMentionTextSource(parts.makeString(), user, parts)
|
fun mentionTextSource(parts: TextSourcesList, user: User) = TextMentionTextSource(parts.makeString(), user, parts)
|
||||||
|
|||||||
@@ -52,6 +52,7 @@ object EncryptedElementSerializer : KSerializer<EncryptedPassportElement> {
|
|||||||
val json = value.let {
|
val json = value.let {
|
||||||
encryptedElementsClassesByTypes.forEach { (key, encapsulator) ->
|
encryptedElementsClassesByTypes.forEach { (key, encapsulator) ->
|
||||||
val json = encapsulator.encapsulate(value) { data ->
|
val json = encapsulator.encapsulate(value) { data ->
|
||||||
|
@Suppress("UNCHECKED_CAST")
|
||||||
nonstrictJsonFormat.encodeToJsonElement(this as KSerializer<EncryptedPassportElement>, data).jsonObject
|
nonstrictJsonFormat.encodeToJsonElement(this as KSerializer<EncryptedPassportElement>, data).jsonObject
|
||||||
} ?: return@forEach
|
} ?: return@forEach
|
||||||
return@let JsonObject(json + (typeField to JsonPrimitive(key)))
|
return@let JsonObject(json + (typeField to JsonPrimitive(key)))
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ data class UsersShared(
|
|||||||
) : this(requestId, listOf(user))
|
) : this(requestId, listOf(user))
|
||||||
|
|
||||||
override val chatId: ChatId
|
override val chatId: ChatId
|
||||||
get() = userId
|
get() = userId.toChatId()
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
operator fun invoke(
|
operator fun invoke(
|
||||||
|
|||||||
@@ -0,0 +1,16 @@
|
|||||||
|
package dev.inmo.tgbotapi.utils
|
||||||
|
|
||||||
|
import kotlin.reflect.KClass
|
||||||
|
|
||||||
|
fun <T : Throwable> Throwable.causedBy(kclass: KClass<T>, additionalFilterOnHappened: (T) -> T? = { it }): T? {
|
||||||
|
var current = this
|
||||||
|
while (kclass.isInstance(current) == false) {
|
||||||
|
when {
|
||||||
|
kclass.isInstance(current) -> @Suppress("UNCHECKED_CAST") return additionalFilterOnHappened(current as T)
|
||||||
|
else -> current = current.cause ?: return null
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Suppress("UNCHECKED_CAST")
|
||||||
|
return current as T
|
||||||
|
}
|
||||||
@@ -14,16 +14,9 @@ import kotlinx.coroutines.CancellationException
|
|||||||
* @return the first [CancellationException] found in the cause chain, or `null` if none present
|
* @return the first [CancellationException] found in the cause chain, or `null` if none present
|
||||||
*/
|
*/
|
||||||
fun Throwable.causedCancellationException(): CancellationException? {
|
fun Throwable.causedCancellationException(): CancellationException? {
|
||||||
var current = this
|
return causedBy(CancellationException::class) {
|
||||||
while (current !is CancellationException) {
|
it.takeIf { it.cause == null }
|
||||||
when {
|
|
||||||
// It is possible, that API will be changed and cancellation will be caused by something else
|
|
||||||
current is CancellationException && current.cause == null -> return current
|
|
||||||
else -> current = current.cause ?: return null
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return current
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -0,0 +1,9 @@
|
|||||||
|
package dev.inmo.tgbotapi.utils
|
||||||
|
|
||||||
|
import io.ktor.util.network.UnresolvedAddressException
|
||||||
|
|
||||||
|
fun Throwable.causedUnresolvedAddressException(): UnresolvedAddressException? {
|
||||||
|
return causedBy(UnresolvedAddressException::class)
|
||||||
|
}
|
||||||
|
|
||||||
|
fun Throwable.isCausedUnresolvedAddressException(): Boolean = causedUnresolvedAddressException() != null
|
||||||
@@ -0,0 +1,25 @@
|
|||||||
|
package dev.inmo.tgbotapi.utils
|
||||||
|
|
||||||
|
import dev.inmo.tgbotapi.types.DraftId
|
||||||
|
import kotlinx.coroutines.NonCancellable.isActive
|
||||||
|
import kotlinx.coroutines.sync.Mutex
|
||||||
|
import kotlinx.coroutines.sync.withLock
|
||||||
|
import kotlin.random.Random
|
||||||
|
|
||||||
|
class DraftIdAllocator {
|
||||||
|
val allocated = mutableSetOf<DraftId>()
|
||||||
|
val mutex = Mutex()
|
||||||
|
|
||||||
|
suspend fun allocate(): DraftId = mutex.withLock {
|
||||||
|
while (isActive) {
|
||||||
|
val draftId = DraftId(Random.nextLong())
|
||||||
|
if (allocated.add(draftId)) {
|
||||||
|
return draftId
|
||||||
|
}
|
||||||
|
}
|
||||||
|
error("Unable to allocate a unique draft ID")
|
||||||
|
}
|
||||||
|
suspend fun free(draftId: DraftId) = mutex.withLock {
|
||||||
|
allocated.remove(draftId)
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,6 +1,7 @@
|
|||||||
package dev.inmo.tgbotapi.utils
|
package dev.inmo.tgbotapi.utils
|
||||||
|
|
||||||
import dev.inmo.tgbotapi.types.chat.*
|
import dev.inmo.tgbotapi.types.chat.*
|
||||||
|
import dev.inmo.tgbotapi.types.toChatId
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Trying to convert current [PrivateChat] to [User]
|
* Trying to convert current [PrivateChat] to [User]
|
||||||
@@ -13,9 +14,11 @@ import dev.inmo.tgbotapi.types.chat.*
|
|||||||
* language)
|
* language)
|
||||||
*/
|
*/
|
||||||
fun PrivateChat.toUser(): User = when (this) {
|
fun PrivateChat.toUser(): User = when (this) {
|
||||||
is ExtendedPrivateChatImpl -> CommonUser(id, firstName, lastName, username)
|
|
||||||
is CommonUser -> this
|
is CommonUser -> this
|
||||||
is CommonBot -> this
|
is CommonBot -> this
|
||||||
is PrivateChatImpl -> CommonUser(id, firstName, lastName, username)
|
|
||||||
is ExtendedBot -> this
|
is ExtendedBot -> this
|
||||||
|
is ExtendedPrivateChatImpl -> CommonUser(id, firstName, lastName, username)
|
||||||
|
is PrivateChatImpl -> CommonUser(id, firstName, lastName, username)
|
||||||
|
is ExtendedPrivateForumChatImpl -> CommonUser(id.toChatId(), firstName, lastName, username)
|
||||||
|
is PrivateForumChatImpl -> CommonUser(id.toChatId(), firstName, lastName, username)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ import com.squareup.kotlinpoet.FileSpec
|
|||||||
import com.squareup.kotlinpoet.asClassName
|
import com.squareup.kotlinpoet.asClassName
|
||||||
import com.squareup.kotlinpoet.ksp.writeTo
|
import com.squareup.kotlinpoet.ksp.writeTo
|
||||||
import dev.inmo.micro_ksp.generator.resolveSubclasses
|
import dev.inmo.micro_ksp.generator.resolveSubclasses
|
||||||
|
import dev.inmo.micro_ksp.generator.withNoSuchElementWorkaround
|
||||||
import dev.inmo.tgbotapi.types.message.ChatEvents.abstracts.ChatEvent
|
import dev.inmo.tgbotapi.types.message.ChatEvents.abstracts.ChatEvent
|
||||||
import dev.inmo.tgbotapi.utils.RiskFeature
|
import dev.inmo.tgbotapi.utils.RiskFeature
|
||||||
import dev.inmo.tgbotapi.utils.internal.ClassCastsExcluded
|
import dev.inmo.tgbotapi.utils.internal.ClassCastsExcluded
|
||||||
@@ -30,7 +31,9 @@ class TelegramBotAPISymbolProcessor(
|
|||||||
val classes = resolver.getSymbolsWithAnnotation(classCastsIncludedClassName.canonicalName).filterIsInstance<KSClassDeclaration>()
|
val classes = resolver.getSymbolsWithAnnotation(classCastsIncludedClassName.canonicalName).filterIsInstance<KSClassDeclaration>()
|
||||||
val classesRegexes: Map<KSClassDeclaration, Pair<Regex?, Regex?>> = classes.mapNotNull {
|
val classesRegexes: Map<KSClassDeclaration, Pair<Regex?, Regex?>> = classes.mapNotNull {
|
||||||
it to (it.getAnnotationsByType(ClassCastsIncluded::class).firstNotNullOfOrNull {
|
it to (it.getAnnotationsByType(ClassCastsIncluded::class).firstNotNullOfOrNull {
|
||||||
it.typesRegex.takeIf { it.isNotEmpty() } ?.let(::Regex) to it.excludeRegex.takeIf { it.isNotEmpty() } ?.let(::Regex)
|
val typesRegex = withNoSuchElementWorkaround("") { it.typesRegex }
|
||||||
|
val excludeRegex = withNoSuchElementWorkaround("") { it.excludeRegex }
|
||||||
|
typesRegex.takeIf { it.isNotEmpty() } ?.let(::Regex) to excludeRegex.takeIf { it.isNotEmpty() } ?.let(::Regex)
|
||||||
} ?: return@mapNotNull null)
|
} ?: return@mapNotNull null)
|
||||||
}.toMap()
|
}.toMap()
|
||||||
val classesSubtypes = mutableMapOf<KSClassDeclaration, MutableSet<KSClassDeclaration>>()
|
val classesSubtypes = mutableMapOf<KSClassDeclaration, MutableSet<KSClassDeclaration>>()
|
||||||
|
|||||||
@@ -48,6 +48,8 @@ public final class dev/inmo/tgbotapi/extensions/utils/ClassCastsKt {
|
|||||||
public static final fun asChatInviteLinkWithLimitedMembers (Ldev/inmo/tgbotapi/types/ChatInviteLink;)Ldev/inmo/tgbotapi/types/ChatInviteLinkWithLimitedMembers;
|
public static final fun asChatInviteLinkWithLimitedMembers (Ldev/inmo/tgbotapi/types/ChatInviteLink;)Ldev/inmo/tgbotapi/types/ChatInviteLinkWithLimitedMembers;
|
||||||
public static final fun asChatJoinRequestUpdate (Ldev/inmo/tgbotapi/types/update/abstracts/Update;)Ldev/inmo/tgbotapi/types/update/ChatJoinRequestUpdate;
|
public static final fun asChatJoinRequestUpdate (Ldev/inmo/tgbotapi/types/update/abstracts/Update;)Ldev/inmo/tgbotapi/types/update/ChatJoinRequestUpdate;
|
||||||
public static final fun asChatMemberUpdatedUpdate (Ldev/inmo/tgbotapi/types/update/abstracts/Update;)Ldev/inmo/tgbotapi/types/update/abstracts/ChatMemberUpdatedUpdate;
|
public static final fun asChatMemberUpdatedUpdate (Ldev/inmo/tgbotapi/types/update/abstracts/Update;)Ldev/inmo/tgbotapi/types/update/abstracts/ChatMemberUpdatedUpdate;
|
||||||
|
public static final fun asChatOwnerChanged (Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChatEvent;)Ldev/inmo/tgbotapi/types/message/ChatEvents/ChatOwnerChanged;
|
||||||
|
public static final fun asChatOwnerLeft (Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChatEvent;)Ldev/inmo/tgbotapi/types/message/ChatEvents/ChatOwnerLeft;
|
||||||
public static final fun asChooseStickerAction (Ldev/inmo/tgbotapi/types/actions/BotAction;)Ldev/inmo/tgbotapi/types/actions/ChooseStickerAction;
|
public static final fun asChooseStickerAction (Ldev/inmo/tgbotapi/types/actions/BotAction;)Ldev/inmo/tgbotapi/types/actions/ChooseStickerAction;
|
||||||
public static final fun asChosenInlineResultUpdate (Ldev/inmo/tgbotapi/types/update/abstracts/Update;)Ldev/inmo/tgbotapi/types/update/ChosenInlineResultUpdate;
|
public static final fun asChosenInlineResultUpdate (Ldev/inmo/tgbotapi/types/update/abstracts/Update;)Ldev/inmo/tgbotapi/types/update/ChosenInlineResultUpdate;
|
||||||
public static final fun asCodeTextSource (Ldev/inmo/tgbotapi/types/message/textsources/TextSource;)Ldev/inmo/tgbotapi/types/message/textsources/CodeTextSource;
|
public static final fun asCodeTextSource (Ldev/inmo/tgbotapi/types/message/textsources/TextSource;)Ldev/inmo/tgbotapi/types/message/textsources/CodeTextSource;
|
||||||
@@ -391,6 +393,8 @@ public final class dev/inmo/tgbotapi/extensions/utils/ClassCastsKt {
|
|||||||
public static final fun requireChatInviteLinkWithLimitedMembers (Ldev/inmo/tgbotapi/types/ChatInviteLink;)Ldev/inmo/tgbotapi/types/ChatInviteLinkWithLimitedMembers;
|
public static final fun requireChatInviteLinkWithLimitedMembers (Ldev/inmo/tgbotapi/types/ChatInviteLink;)Ldev/inmo/tgbotapi/types/ChatInviteLinkWithLimitedMembers;
|
||||||
public static final fun requireChatJoinRequestUpdate (Ldev/inmo/tgbotapi/types/update/abstracts/Update;)Ldev/inmo/tgbotapi/types/update/ChatJoinRequestUpdate;
|
public static final fun requireChatJoinRequestUpdate (Ldev/inmo/tgbotapi/types/update/abstracts/Update;)Ldev/inmo/tgbotapi/types/update/ChatJoinRequestUpdate;
|
||||||
public static final fun requireChatMemberUpdatedUpdate (Ldev/inmo/tgbotapi/types/update/abstracts/Update;)Ldev/inmo/tgbotapi/types/update/abstracts/ChatMemberUpdatedUpdate;
|
public static final fun requireChatMemberUpdatedUpdate (Ldev/inmo/tgbotapi/types/update/abstracts/Update;)Ldev/inmo/tgbotapi/types/update/abstracts/ChatMemberUpdatedUpdate;
|
||||||
|
public static final fun requireChatOwnerChanged (Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChatEvent;)Ldev/inmo/tgbotapi/types/message/ChatEvents/ChatOwnerChanged;
|
||||||
|
public static final fun requireChatOwnerLeft (Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChatEvent;)Ldev/inmo/tgbotapi/types/message/ChatEvents/ChatOwnerLeft;
|
||||||
public static final fun requireChooseStickerAction (Ldev/inmo/tgbotapi/types/actions/BotAction;)Ldev/inmo/tgbotapi/types/actions/ChooseStickerAction;
|
public static final fun requireChooseStickerAction (Ldev/inmo/tgbotapi/types/actions/BotAction;)Ldev/inmo/tgbotapi/types/actions/ChooseStickerAction;
|
||||||
public static final fun requireChosenInlineResultUpdate (Ldev/inmo/tgbotapi/types/update/abstracts/Update;)Ldev/inmo/tgbotapi/types/update/ChosenInlineResultUpdate;
|
public static final fun requireChosenInlineResultUpdate (Ldev/inmo/tgbotapi/types/update/abstracts/Update;)Ldev/inmo/tgbotapi/types/update/ChosenInlineResultUpdate;
|
||||||
public static final fun requireCodeTextSource (Ldev/inmo/tgbotapi/types/message/textsources/TextSource;)Ldev/inmo/tgbotapi/types/message/textsources/CodeTextSource;
|
public static final fun requireCodeTextSource (Ldev/inmo/tgbotapi/types/message/textsources/TextSource;)Ldev/inmo/tgbotapi/types/message/textsources/CodeTextSource;
|
||||||
@@ -734,6 +738,8 @@ public final class dev/inmo/tgbotapi/extensions/utils/ClassCastsKt {
|
|||||||
public static final fun whenChatInviteLinkWithLimitedMembers (Ldev/inmo/tgbotapi/types/ChatInviteLink;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
public static final fun whenChatInviteLinkWithLimitedMembers (Ldev/inmo/tgbotapi/types/ChatInviteLink;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
||||||
public static final fun whenChatJoinRequestUpdate (Ldev/inmo/tgbotapi/types/update/abstracts/Update;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
public static final fun whenChatJoinRequestUpdate (Ldev/inmo/tgbotapi/types/update/abstracts/Update;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
||||||
public static final fun whenChatMemberUpdatedUpdate (Ldev/inmo/tgbotapi/types/update/abstracts/Update;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
public static final fun whenChatMemberUpdatedUpdate (Ldev/inmo/tgbotapi/types/update/abstracts/Update;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
||||||
|
public static final fun whenChatOwnerChanged (Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChatEvent;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
||||||
|
public static final fun whenChatOwnerLeft (Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChatEvent;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
||||||
public static final fun whenChooseStickerAction (Ldev/inmo/tgbotapi/types/actions/BotAction;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
public static final fun whenChooseStickerAction (Ldev/inmo/tgbotapi/types/actions/BotAction;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
||||||
public static final fun whenChosenInlineResultUpdate (Ldev/inmo/tgbotapi/types/update/abstracts/Update;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
public static final fun whenChosenInlineResultUpdate (Ldev/inmo/tgbotapi/types/update/abstracts/Update;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
||||||
public static final fun whenCodeTextSource (Ldev/inmo/tgbotapi/types/message/textsources/TextSource;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
public static final fun whenCodeTextSource (Ldev/inmo/tgbotapi/types/message/textsources/TextSource;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
||||||
@@ -1223,6 +1229,10 @@ public final class dev/inmo/tgbotapi/extensions/utils/ClassCastsNewKt {
|
|||||||
public static final fun chatMessageReactionsCountUpdatedUpdateOrThrow (Ldev/inmo/tgbotapi/types/update/abstracts/Update;)Ldev/inmo/tgbotapi/types/update/ChatMessageReactionsCountUpdatedUpdate;
|
public static final fun chatMessageReactionsCountUpdatedUpdateOrThrow (Ldev/inmo/tgbotapi/types/update/abstracts/Update;)Ldev/inmo/tgbotapi/types/update/ChatMessageReactionsCountUpdatedUpdate;
|
||||||
public static final fun chatOrNull (Ldev/inmo/tgbotapi/types/payments/stars/TransactionPartner;)Ldev/inmo/tgbotapi/types/payments/stars/TransactionPartner$Chat;
|
public static final fun chatOrNull (Ldev/inmo/tgbotapi/types/payments/stars/TransactionPartner;)Ldev/inmo/tgbotapi/types/payments/stars/TransactionPartner$Chat;
|
||||||
public static final fun chatOrThrow (Ldev/inmo/tgbotapi/types/payments/stars/TransactionPartner;)Ldev/inmo/tgbotapi/types/payments/stars/TransactionPartner$Chat;
|
public static final fun chatOrThrow (Ldev/inmo/tgbotapi/types/payments/stars/TransactionPartner;)Ldev/inmo/tgbotapi/types/payments/stars/TransactionPartner$Chat;
|
||||||
|
public static final fun chatOwnerChangedOrNull (Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChatEvent;)Ldev/inmo/tgbotapi/types/message/ChatEvents/ChatOwnerChanged;
|
||||||
|
public static final fun chatOwnerChangedOrThrow (Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChatEvent;)Ldev/inmo/tgbotapi/types/message/ChatEvents/ChatOwnerChanged;
|
||||||
|
public static final fun chatOwnerLeftOrNull (Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChatEvent;)Ldev/inmo/tgbotapi/types/message/ChatEvents/ChatOwnerLeft;
|
||||||
|
public static final fun chatOwnerLeftOrThrow (Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChatEvent;)Ldev/inmo/tgbotapi/types/message/ChatEvents/ChatOwnerLeft;
|
||||||
public static final fun chatSharedOrNull (Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChatEvent;)Ldev/inmo/tgbotapi/types/request/ChatShared;
|
public static final fun chatSharedOrNull (Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChatEvent;)Ldev/inmo/tgbotapi/types/request/ChatShared;
|
||||||
public static final fun chatSharedOrNull (Ldev/inmo/tgbotapi/types/request/RequestResponse;)Ldev/inmo/tgbotapi/types/request/ChatShared;
|
public static final fun chatSharedOrNull (Ldev/inmo/tgbotapi/types/request/RequestResponse;)Ldev/inmo/tgbotapi/types/request/ChatShared;
|
||||||
public static final fun chatSharedOrThrow (Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChatEvent;)Ldev/inmo/tgbotapi/types/request/ChatShared;
|
public static final fun chatSharedOrThrow (Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChatEvent;)Ldev/inmo/tgbotapi/types/request/ChatShared;
|
||||||
@@ -1425,6 +1435,8 @@ public final class dev/inmo/tgbotapi/extensions/utils/ClassCastsNewKt {
|
|||||||
public static final fun extendedNonBotChatOrThrow (Ldev/inmo/tgbotapi/types/chat/Chat;)Ldev/inmo/tgbotapi/types/chat/ExtendedNonBotChat;
|
public static final fun extendedNonBotChatOrThrow (Ldev/inmo/tgbotapi/types/chat/Chat;)Ldev/inmo/tgbotapi/types/chat/ExtendedNonBotChat;
|
||||||
public static final fun extendedPrivateChatOrNull (Ldev/inmo/tgbotapi/types/chat/Chat;)Ldev/inmo/tgbotapi/types/chat/ExtendedPrivateChat;
|
public static final fun extendedPrivateChatOrNull (Ldev/inmo/tgbotapi/types/chat/Chat;)Ldev/inmo/tgbotapi/types/chat/ExtendedPrivateChat;
|
||||||
public static final fun extendedPrivateChatOrThrow (Ldev/inmo/tgbotapi/types/chat/Chat;)Ldev/inmo/tgbotapi/types/chat/ExtendedPrivateChat;
|
public static final fun extendedPrivateChatOrThrow (Ldev/inmo/tgbotapi/types/chat/Chat;)Ldev/inmo/tgbotapi/types/chat/ExtendedPrivateChat;
|
||||||
|
public static final fun extendedPrivateForumChatOrNull (Ldev/inmo/tgbotapi/types/chat/Chat;)Ldev/inmo/tgbotapi/types/chat/ExtendedPrivateForumChat;
|
||||||
|
public static final fun extendedPrivateForumChatOrThrow (Ldev/inmo/tgbotapi/types/chat/Chat;)Ldev/inmo/tgbotapi/types/chat/ExtendedPrivateForumChat;
|
||||||
public static final fun extendedPublicChatOrNull (Ldev/inmo/tgbotapi/types/chat/Chat;)Ldev/inmo/tgbotapi/types/chat/ExtendedPublicChat;
|
public static final fun extendedPublicChatOrNull (Ldev/inmo/tgbotapi/types/chat/Chat;)Ldev/inmo/tgbotapi/types/chat/ExtendedPublicChat;
|
||||||
public static final fun extendedPublicChatOrThrow (Ldev/inmo/tgbotapi/types/chat/Chat;)Ldev/inmo/tgbotapi/types/chat/ExtendedPublicChat;
|
public static final fun extendedPublicChatOrThrow (Ldev/inmo/tgbotapi/types/chat/Chat;)Ldev/inmo/tgbotapi/types/chat/ExtendedPublicChat;
|
||||||
public static final fun extendedSupergroupChatOrNull (Ldev/inmo/tgbotapi/types/chat/Chat;)Ldev/inmo/tgbotapi/types/chat/ExtendedSupergroupChat;
|
public static final fun extendedSupergroupChatOrNull (Ldev/inmo/tgbotapi/types/chat/Chat;)Ldev/inmo/tgbotapi/types/chat/ExtendedSupergroupChat;
|
||||||
@@ -1644,6 +1656,8 @@ public final class dev/inmo/tgbotapi/extensions/utils/ClassCastsNewKt {
|
|||||||
public static final fun ifChatMemberUpdatedUpdate (Ldev/inmo/tgbotapi/types/update/abstracts/Update;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
public static final fun ifChatMemberUpdatedUpdate (Ldev/inmo/tgbotapi/types/update/abstracts/Update;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
||||||
public static final fun ifChatMessageReactionUpdatedUpdate (Ldev/inmo/tgbotapi/types/update/abstracts/Update;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
public static final fun ifChatMessageReactionUpdatedUpdate (Ldev/inmo/tgbotapi/types/update/abstracts/Update;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
||||||
public static final fun ifChatMessageReactionsCountUpdatedUpdate (Ldev/inmo/tgbotapi/types/update/abstracts/Update;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
public static final fun ifChatMessageReactionsCountUpdatedUpdate (Ldev/inmo/tgbotapi/types/update/abstracts/Update;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
||||||
|
public static final fun ifChatOwnerChanged (Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChatEvent;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
||||||
|
public static final fun ifChatOwnerLeft (Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChatEvent;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
||||||
public static final fun ifChatShared (Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChatEvent;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
public static final fun ifChatShared (Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChatEvent;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
||||||
public static final fun ifChatShared (Ldev/inmo/tgbotapi/types/request/RequestResponse;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
public static final fun ifChatShared (Ldev/inmo/tgbotapi/types/request/RequestResponse;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
||||||
public static final fun ifChatSharedRequest (Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChatEvent;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
public static final fun ifChatSharedRequest (Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChatEvent;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
||||||
@@ -1745,6 +1759,7 @@ public final class dev/inmo/tgbotapi/extensions/utils/ClassCastsNewKt {
|
|||||||
public static final fun ifExtendedGroupChat (Ldev/inmo/tgbotapi/types/chat/Chat;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
public static final fun ifExtendedGroupChat (Ldev/inmo/tgbotapi/types/chat/Chat;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
||||||
public static final fun ifExtendedNonBotChat (Ldev/inmo/tgbotapi/types/chat/Chat;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
public static final fun ifExtendedNonBotChat (Ldev/inmo/tgbotapi/types/chat/Chat;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
||||||
public static final fun ifExtendedPrivateChat (Ldev/inmo/tgbotapi/types/chat/Chat;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
public static final fun ifExtendedPrivateChat (Ldev/inmo/tgbotapi/types/chat/Chat;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
||||||
|
public static final fun ifExtendedPrivateForumChat (Ldev/inmo/tgbotapi/types/chat/Chat;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
||||||
public static final fun ifExtendedPublicChat (Ldev/inmo/tgbotapi/types/chat/Chat;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
public static final fun ifExtendedPublicChat (Ldev/inmo/tgbotapi/types/chat/Chat;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
||||||
public static final fun ifExtendedSupergroupChat (Ldev/inmo/tgbotapi/types/chat/Chat;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
public static final fun ifExtendedSupergroupChat (Ldev/inmo/tgbotapi/types/chat/Chat;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
||||||
public static final fun ifExternal (Ldev/inmo/tgbotapi/types/ReplyInfo;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
public static final fun ifExternal (Ldev/inmo/tgbotapi/types/ReplyInfo;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
||||||
@@ -1975,6 +1990,7 @@ public final class dev/inmo/tgbotapi/extensions/utils/ClassCastsNewKt {
|
|||||||
public static final fun ifPreviewForumChat (Ldev/inmo/tgbotapi/types/chat/Chat;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
public static final fun ifPreviewForumChat (Ldev/inmo/tgbotapi/types/chat/Chat;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
||||||
public static final fun ifPreviewGroupChat (Ldev/inmo/tgbotapi/types/chat/Chat;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
public static final fun ifPreviewGroupChat (Ldev/inmo/tgbotapi/types/chat/Chat;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
||||||
public static final fun ifPreviewPrivateChat (Ldev/inmo/tgbotapi/types/chat/Chat;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
public static final fun ifPreviewPrivateChat (Ldev/inmo/tgbotapi/types/chat/Chat;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
||||||
|
public static final fun ifPreviewPrivateForumChat (Ldev/inmo/tgbotapi/types/chat/Chat;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
||||||
public static final fun ifPreviewPublicChat (Ldev/inmo/tgbotapi/types/chat/Chat;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
public static final fun ifPreviewPublicChat (Ldev/inmo/tgbotapi/types/chat/Chat;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
||||||
public static final fun ifPreviewSuperPublicChat (Ldev/inmo/tgbotapi/types/chat/Chat;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
public static final fun ifPreviewSuperPublicChat (Ldev/inmo/tgbotapi/types/chat/Chat;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
||||||
public static final fun ifPreviewSupergroupChat (Ldev/inmo/tgbotapi/types/chat/Chat;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
public static final fun ifPreviewSupergroupChat (Ldev/inmo/tgbotapi/types/chat/Chat;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
||||||
@@ -1986,6 +2002,12 @@ public final class dev/inmo/tgbotapi/extensions/utils/ClassCastsNewKt {
|
|||||||
public static final fun ifPrivateContentMessage (Ldev/inmo/tgbotapi/types/message/abstracts/Message;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
public static final fun ifPrivateContentMessage (Ldev/inmo/tgbotapi/types/message/abstracts/Message;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
||||||
public static final fun ifPrivateEvent (Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChatEvent;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
public static final fun ifPrivateEvent (Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChatEvent;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
||||||
public static final fun ifPrivateEventMessage (Ldev/inmo/tgbotapi/types/message/abstracts/Message;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
public static final fun ifPrivateEventMessage (Ldev/inmo/tgbotapi/types/message/abstracts/Message;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
||||||
|
public static final fun ifPrivateForumChat (Ldev/inmo/tgbotapi/types/chat/Chat;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
||||||
|
public static final fun ifPrivateForumContentMessage (Ldev/inmo/tgbotapi/abstracts/OptionallyWithUser;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
||||||
|
public static final fun ifPrivateForumContentMessage (Ldev/inmo/tgbotapi/types/message/abstracts/Message;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
||||||
|
public static final fun ifPrivateForumEvent (Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChatEvent;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
||||||
|
public static final fun ifPrivateForumEventMessage (Ldev/inmo/tgbotapi/types/message/abstracts/Message;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
||||||
|
public static final fun ifPrivateUserChat (Ldev/inmo/tgbotapi/types/chat/Chat;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
||||||
public static final fun ifProximityAlertTriggered (Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChatEvent;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
public static final fun ifProximityAlertTriggered (Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChatEvent;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
||||||
public static final fun ifPublicChat (Ldev/inmo/tgbotapi/types/chat/Chat;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
public static final fun ifPublicChat (Ldev/inmo/tgbotapi/types/chat/Chat;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
||||||
public static final fun ifPublicChatEvent (Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChatEvent;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
public static final fun ifPublicChatEvent (Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChatEvent;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
||||||
@@ -2053,6 +2075,7 @@ public final class dev/inmo/tgbotapi/extensions/utils/ClassCastsNewKt {
|
|||||||
public static final fun ifSupergroupEvent (Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChatEvent;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
public static final fun ifSupergroupEvent (Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChatEvent;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
||||||
public static final fun ifSupergroupEventMessage (Ldev/inmo/tgbotapi/abstracts/OptionallyWithUser;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
public static final fun ifSupergroupEventMessage (Ldev/inmo/tgbotapi/abstracts/OptionallyWithUser;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
||||||
public static final fun ifSupergroupEventMessage (Ldev/inmo/tgbotapi/types/message/abstracts/Message;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
public static final fun ifSupergroupEventMessage (Ldev/inmo/tgbotapi/types/message/abstracts/Message;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
||||||
|
public static final fun ifSupergroupForumChat (Ldev/inmo/tgbotapi/types/chat/Chat;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
||||||
public static final fun ifSwitchInlineQueryChosenChatInlineKeyboardButton (Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardButtons/InlineKeyboardButton;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
public static final fun ifSwitchInlineQueryChosenChatInlineKeyboardButton (Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardButtons/InlineKeyboardButton;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
||||||
public static final fun ifSwitchInlineQueryCurrentChatInlineKeyboardButton (Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardButtons/InlineKeyboardButton;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
public static final fun ifSwitchInlineQueryCurrentChatInlineKeyboardButton (Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardButtons/InlineKeyboardButton;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
||||||
public static final fun ifSwitchInlineQueryInlineKeyboardButton (Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardButtons/InlineKeyboardButton;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
public static final fun ifSwitchInlineQueryInlineKeyboardButton (Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardButtons/InlineKeyboardButton;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
||||||
@@ -2480,6 +2503,8 @@ public final class dev/inmo/tgbotapi/extensions/utils/ClassCastsNewKt {
|
|||||||
public static final fun previewGroupChatOrThrow (Ldev/inmo/tgbotapi/types/chat/Chat;)Ldev/inmo/tgbotapi/types/chat/PreviewGroupChat;
|
public static final fun previewGroupChatOrThrow (Ldev/inmo/tgbotapi/types/chat/Chat;)Ldev/inmo/tgbotapi/types/chat/PreviewGroupChat;
|
||||||
public static final fun previewPrivateChatOrNull (Ldev/inmo/tgbotapi/types/chat/Chat;)Ldev/inmo/tgbotapi/types/chat/PreviewPrivateChat;
|
public static final fun previewPrivateChatOrNull (Ldev/inmo/tgbotapi/types/chat/Chat;)Ldev/inmo/tgbotapi/types/chat/PreviewPrivateChat;
|
||||||
public static final fun previewPrivateChatOrThrow (Ldev/inmo/tgbotapi/types/chat/Chat;)Ldev/inmo/tgbotapi/types/chat/PreviewPrivateChat;
|
public static final fun previewPrivateChatOrThrow (Ldev/inmo/tgbotapi/types/chat/Chat;)Ldev/inmo/tgbotapi/types/chat/PreviewPrivateChat;
|
||||||
|
public static final fun previewPrivateForumChatOrNull (Ldev/inmo/tgbotapi/types/chat/Chat;)Ldev/inmo/tgbotapi/types/chat/PreviewPrivateForumChat;
|
||||||
|
public static final fun previewPrivateForumChatOrThrow (Ldev/inmo/tgbotapi/types/chat/Chat;)Ldev/inmo/tgbotapi/types/chat/PreviewPrivateForumChat;
|
||||||
public static final fun previewPublicChatOrNull (Ldev/inmo/tgbotapi/types/chat/Chat;)Ldev/inmo/tgbotapi/types/chat/PreviewPublicChat;
|
public static final fun previewPublicChatOrNull (Ldev/inmo/tgbotapi/types/chat/Chat;)Ldev/inmo/tgbotapi/types/chat/PreviewPublicChat;
|
||||||
public static final fun previewPublicChatOrThrow (Ldev/inmo/tgbotapi/types/chat/Chat;)Ldev/inmo/tgbotapi/types/chat/PreviewPublicChat;
|
public static final fun previewPublicChatOrThrow (Ldev/inmo/tgbotapi/types/chat/Chat;)Ldev/inmo/tgbotapi/types/chat/PreviewPublicChat;
|
||||||
public static final fun previewSuperPublicChatOrNull (Ldev/inmo/tgbotapi/types/chat/Chat;)Ldev/inmo/tgbotapi/types/chat/PreviewSuperPublicChat;
|
public static final fun previewSuperPublicChatOrNull (Ldev/inmo/tgbotapi/types/chat/Chat;)Ldev/inmo/tgbotapi/types/chat/PreviewSuperPublicChat;
|
||||||
@@ -2502,6 +2527,18 @@ public final class dev/inmo/tgbotapi/extensions/utils/ClassCastsNewKt {
|
|||||||
public static final fun privateEventMessageOrThrow (Ldev/inmo/tgbotapi/types/message/abstracts/Message;)Ldev/inmo/tgbotapi/types/message/PrivateEventMessage;
|
public static final fun privateEventMessageOrThrow (Ldev/inmo/tgbotapi/types/message/abstracts/Message;)Ldev/inmo/tgbotapi/types/message/PrivateEventMessage;
|
||||||
public static final fun privateEventOrNull (Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChatEvent;)Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/PrivateEvent;
|
public static final fun privateEventOrNull (Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChatEvent;)Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/PrivateEvent;
|
||||||
public static final fun privateEventOrThrow (Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChatEvent;)Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/PrivateEvent;
|
public static final fun privateEventOrThrow (Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChatEvent;)Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/PrivateEvent;
|
||||||
|
public static final fun privateForumChatOrNull (Ldev/inmo/tgbotapi/types/chat/Chat;)Ldev/inmo/tgbotapi/types/chat/PrivateForumChat;
|
||||||
|
public static final fun privateForumChatOrThrow (Ldev/inmo/tgbotapi/types/chat/Chat;)Ldev/inmo/tgbotapi/types/chat/PrivateForumChat;
|
||||||
|
public static final fun privateForumContentMessageOrNull (Ldev/inmo/tgbotapi/abstracts/OptionallyWithUser;)Ldev/inmo/tgbotapi/types/message/abstracts/PrivateForumContentMessage;
|
||||||
|
public static final fun privateForumContentMessageOrNull (Ldev/inmo/tgbotapi/types/message/abstracts/Message;)Ldev/inmo/tgbotapi/types/message/abstracts/PrivateForumContentMessage;
|
||||||
|
public static final fun privateForumContentMessageOrThrow (Ldev/inmo/tgbotapi/abstracts/OptionallyWithUser;)Ldev/inmo/tgbotapi/types/message/abstracts/PrivateForumContentMessage;
|
||||||
|
public static final fun privateForumContentMessageOrThrow (Ldev/inmo/tgbotapi/types/message/abstracts/Message;)Ldev/inmo/tgbotapi/types/message/abstracts/PrivateForumContentMessage;
|
||||||
|
public static final fun privateForumEventMessageOrNull (Ldev/inmo/tgbotapi/types/message/abstracts/Message;)Ldev/inmo/tgbotapi/types/message/PrivateForumEventMessage;
|
||||||
|
public static final fun privateForumEventMessageOrThrow (Ldev/inmo/tgbotapi/types/message/abstracts/Message;)Ldev/inmo/tgbotapi/types/message/PrivateForumEventMessage;
|
||||||
|
public static final fun privateForumEventOrNull (Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChatEvent;)Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/PrivateForumEvent;
|
||||||
|
public static final fun privateForumEventOrThrow (Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChatEvent;)Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/PrivateForumEvent;
|
||||||
|
public static final fun privateUserChatOrNull (Ldev/inmo/tgbotapi/types/chat/Chat;)Ldev/inmo/tgbotapi/types/chat/PrivateUserChat;
|
||||||
|
public static final fun privateUserChatOrThrow (Ldev/inmo/tgbotapi/types/chat/Chat;)Ldev/inmo/tgbotapi/types/chat/PrivateUserChat;
|
||||||
public static final fun proximityAlertTriggeredOrNull (Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChatEvent;)Ldev/inmo/tgbotapi/types/message/ChatEvents/ProximityAlertTriggered;
|
public static final fun proximityAlertTriggeredOrNull (Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChatEvent;)Ldev/inmo/tgbotapi/types/message/ChatEvents/ProximityAlertTriggered;
|
||||||
public static final fun proximityAlertTriggeredOrThrow (Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChatEvent;)Ldev/inmo/tgbotapi/types/message/ChatEvents/ProximityAlertTriggered;
|
public static final fun proximityAlertTriggeredOrThrow (Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChatEvent;)Ldev/inmo/tgbotapi/types/message/ChatEvents/ProximityAlertTriggered;
|
||||||
public static final fun publicChatEventOrNull (Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChatEvent;)Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/PublicChatEvent;
|
public static final fun publicChatEventOrNull (Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChatEvent;)Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/PublicChatEvent;
|
||||||
@@ -2636,6 +2673,8 @@ public final class dev/inmo/tgbotapi/extensions/utils/ClassCastsNewKt {
|
|||||||
public static final fun supergroupEventMessageOrThrow (Ldev/inmo/tgbotapi/types/message/abstracts/Message;)Ldev/inmo/tgbotapi/types/message/abstracts/SupergroupEventMessage;
|
public static final fun supergroupEventMessageOrThrow (Ldev/inmo/tgbotapi/types/message/abstracts/Message;)Ldev/inmo/tgbotapi/types/message/abstracts/SupergroupEventMessage;
|
||||||
public static final fun supergroupEventOrNull (Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChatEvent;)Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/SupergroupEvent;
|
public static final fun supergroupEventOrNull (Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChatEvent;)Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/SupergroupEvent;
|
||||||
public static final fun supergroupEventOrThrow (Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChatEvent;)Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/SupergroupEvent;
|
public static final fun supergroupEventOrThrow (Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChatEvent;)Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/SupergroupEvent;
|
||||||
|
public static final fun supergroupForumChatOrNull (Ldev/inmo/tgbotapi/types/chat/Chat;)Ldev/inmo/tgbotapi/types/chat/SupergroupForumChat;
|
||||||
|
public static final fun supergroupForumChatOrThrow (Ldev/inmo/tgbotapi/types/chat/Chat;)Ldev/inmo/tgbotapi/types/chat/SupergroupForumChat;
|
||||||
public static final fun switchInlineQueryChosenChatInlineKeyboardButtonOrNull (Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardButtons/InlineKeyboardButton;)Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardButtons/SwitchInlineQueryChosenChatInlineKeyboardButton;
|
public static final fun switchInlineQueryChosenChatInlineKeyboardButtonOrNull (Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardButtons/InlineKeyboardButton;)Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardButtons/SwitchInlineQueryChosenChatInlineKeyboardButton;
|
||||||
public static final fun switchInlineQueryChosenChatInlineKeyboardButtonOrThrow (Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardButtons/InlineKeyboardButton;)Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardButtons/SwitchInlineQueryChosenChatInlineKeyboardButton;
|
public static final fun switchInlineQueryChosenChatInlineKeyboardButtonOrThrow (Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardButtons/InlineKeyboardButton;)Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardButtons/SwitchInlineQueryChosenChatInlineKeyboardButton;
|
||||||
public static final fun switchInlineQueryCurrentChatInlineKeyboardButtonOrNull (Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardButtons/InlineKeyboardButton;)Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardButtons/SwitchInlineQueryCurrentChatInlineKeyboardButton;
|
public static final fun switchInlineQueryCurrentChatInlineKeyboardButtonOrNull (Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardButtons/InlineKeyboardButton;)Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardButtons/SwitchInlineQueryCurrentChatInlineKeyboardButton;
|
||||||
@@ -3006,8 +3045,8 @@ public final class dev/inmo/tgbotapi/extensions/utils/extensions/FilesDownloadin
|
|||||||
public final class dev/inmo/tgbotapi/extensions/utils/extensions/FlowsSameKt {
|
public final class dev/inmo/tgbotapi/extensions/utils/extensions/FlowsSameKt {
|
||||||
public static final fun fromChat (Lkotlinx/coroutines/flow/Flow;Ldev/inmo/tgbotapi/types/ChatIdentifier;)Lkotlinx/coroutines/flow/Flow;
|
public static final fun fromChat (Lkotlinx/coroutines/flow/Flow;Ldev/inmo/tgbotapi/types/ChatIdentifier;)Lkotlinx/coroutines/flow/Flow;
|
||||||
public static final fun fromChat (Lkotlinx/coroutines/flow/Flow;Ldev/inmo/tgbotapi/types/chat/Chat;)Lkotlinx/coroutines/flow/Flow;
|
public static final fun fromChat (Lkotlinx/coroutines/flow/Flow;Ldev/inmo/tgbotapi/types/chat/Chat;)Lkotlinx/coroutines/flow/Flow;
|
||||||
|
public static final fun fromUser (Lkotlinx/coroutines/flow/Flow;Ldev/inmo/tgbotapi/types/IdChatIdentifier;)Lkotlinx/coroutines/flow/Flow;
|
||||||
public static final fun fromUser (Lkotlinx/coroutines/flow/Flow;Ldev/inmo/tgbotapi/types/chat/User;)Lkotlinx/coroutines/flow/Flow;
|
public static final fun fromUser (Lkotlinx/coroutines/flow/Flow;Ldev/inmo/tgbotapi/types/chat/User;)Lkotlinx/coroutines/flow/Flow;
|
||||||
public static final fun fromUser-WiG6Fm4 (Lkotlinx/coroutines/flow/Flow;J)Lkotlinx/coroutines/flow/Flow;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public final class dev/inmo/tgbotapi/extensions/utils/extensions/SameKt {
|
public final class dev/inmo/tgbotapi/extensions/utils/extensions/SameKt {
|
||||||
@@ -3278,7 +3317,7 @@ public final class dev/inmo/tgbotapi/extensions/utils/formatting/LinksFormatting
|
|||||||
public static synthetic fun makeTelegramStartattach$default (Ljava/lang/String;Ljava/lang/String;ILjava/lang/Object;)Ljava/lang/String;
|
public static synthetic fun makeTelegramStartattach$default (Ljava/lang/String;Ljava/lang/String;ILjava/lang/Object;)Ljava/lang/String;
|
||||||
public static final fun makeTelegramStartattach-26ZnLnw (Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
public static final fun makeTelegramStartattach-26ZnLnw (Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
||||||
public static synthetic fun makeTelegramStartattach-26ZnLnw$default (Ljava/lang/String;Ljava/lang/String;ILjava/lang/Object;)Ljava/lang/String;
|
public static synthetic fun makeTelegramStartattach-26ZnLnw$default (Ljava/lang/String;Ljava/lang/String;ILjava/lang/Object;)Ljava/lang/String;
|
||||||
public static final fun makeUserLink-HZVsHAI (J)Ljava/lang/String;
|
public static final fun makeUserLink (Ldev/inmo/tgbotapi/types/IdChatIdentifier;)Ljava/lang/String;
|
||||||
public static final fun makeUsernameDeepLinkPrefix (Ljava/lang/String;)Ljava/lang/String;
|
public static final fun makeUsernameDeepLinkPrefix (Ljava/lang/String;)Ljava/lang/String;
|
||||||
public static final fun makeUsernameLink-zFai7VQ (Ljava/lang/String;Ldev/inmo/tgbotapi/types/MessageThreadId;)Ljava/lang/String;
|
public static final fun makeUsernameLink-zFai7VQ (Ljava/lang/String;Ldev/inmo/tgbotapi/types/MessageThreadId;)Ljava/lang/String;
|
||||||
public static synthetic fun makeUsernameLink-zFai7VQ$default (Ljava/lang/String;Ldev/inmo/tgbotapi/types/MessageThreadId;ILjava/lang/Object;)Ljava/lang/String;
|
public static synthetic fun makeUsernameLink-zFai7VQ$default (Ljava/lang/String;Ldev/inmo/tgbotapi/types/MessageThreadId;ILjava/lang/Object;)Ljava/lang/String;
|
||||||
@@ -3385,9 +3424,9 @@ public final class dev/inmo/tgbotapi/extensions/utils/formatting/StringFormattin
|
|||||||
public static final fun strikethroughHTML (Ljava/lang/String;)Ljava/lang/String;
|
public static final fun strikethroughHTML (Ljava/lang/String;)Ljava/lang/String;
|
||||||
public static final fun strikethroughMarkdown (Ljava/lang/String;)Ljava/lang/String;
|
public static final fun strikethroughMarkdown (Ljava/lang/String;)Ljava/lang/String;
|
||||||
public static final fun strikethroughMarkdownV2 (Ljava/lang/String;)Ljava/lang/String;
|
public static final fun strikethroughMarkdownV2 (Ljava/lang/String;)Ljava/lang/String;
|
||||||
public static final fun textMentionHTML-WiG6Fm4 (Ljava/lang/String;J)Ljava/lang/String;
|
public static final fun textMentionHTML (Ljava/lang/String;Ldev/inmo/tgbotapi/types/IdChatIdentifier;)Ljava/lang/String;
|
||||||
public static final fun textMentionMarkdown-WiG6Fm4 (Ljava/lang/String;J)Ljava/lang/String;
|
public static final fun textMentionMarkdown (Ljava/lang/String;Ldev/inmo/tgbotapi/types/IdChatIdentifier;)Ljava/lang/String;
|
||||||
public static final fun textMentionMarkdownV2-WiG6Fm4 (Ljava/lang/String;J)Ljava/lang/String;
|
public static final fun textMentionMarkdownV2 (Ljava/lang/String;Ldev/inmo/tgbotapi/types/IdChatIdentifier;)Ljava/lang/String;
|
||||||
public static final fun underline (Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;)Ljava/lang/String;
|
public static final fun underline (Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;)Ljava/lang/String;
|
||||||
public static final fun underlineHTML (Ljava/lang/String;)Ljava/lang/String;
|
public static final fun underlineHTML (Ljava/lang/String;)Ljava/lang/String;
|
||||||
public static final fun underlineMarkdown (Ljava/lang/String;)Ljava/lang/String;
|
public static final fun underlineMarkdown (Ljava/lang/String;)Ljava/lang/String;
|
||||||
@@ -3553,25 +3592,37 @@ public final class dev/inmo/tgbotapi/extensions/utils/shortcuts/RequestsExecutor
|
|||||||
|
|
||||||
public final class dev/inmo/tgbotapi/extensions/utils/types/buttons/InlineKeyboardBuilderKt {
|
public final class dev/inmo/tgbotapi/extensions/utils/types/buttons/InlineKeyboardBuilderKt {
|
||||||
public static final fun build (Ldev/inmo/tgbotapi/utils/MatrixBuilder;)Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;
|
public static final fun build (Ldev/inmo/tgbotapi/utils/MatrixBuilder;)Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;
|
||||||
public static final fun copyTextButton (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardButtons/CopyTextButtonData;)Z
|
public static final fun copyTextButton-TGGzX2M (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardButtons/CopyTextButtonData;Ljava/lang/String;Ldev/inmo/tgbotapi/types/buttons/KeyboardButtonStyle;)Z
|
||||||
public static final fun copyTextButton (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;Ljava/lang/String;)Z
|
public static final fun copyTextButton-TGGzX2M (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ldev/inmo/tgbotapi/types/buttons/KeyboardButtonStyle;)Z
|
||||||
public static final fun dataButton (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;Ljava/lang/String;)Z
|
public static synthetic fun copyTextButton-TGGzX2M$default (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardButtons/CopyTextButtonData;Ljava/lang/String;Ldev/inmo/tgbotapi/types/buttons/KeyboardButtonStyle;ILjava/lang/Object;)Z
|
||||||
|
public static synthetic fun copyTextButton-TGGzX2M$default (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ldev/inmo/tgbotapi/types/buttons/KeyboardButtonStyle;ILjava/lang/Object;)Z
|
||||||
|
public static final fun dataButton-TGGzX2M (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ldev/inmo/tgbotapi/types/buttons/KeyboardButtonStyle;)Z
|
||||||
|
public static synthetic fun dataButton-TGGzX2M$default (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ldev/inmo/tgbotapi/types/buttons/KeyboardButtonStyle;ILjava/lang/Object;)Z
|
||||||
public static final fun flatInlineKeyboard (Lkotlin/jvm/functions/Function1;)Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;
|
public static final fun flatInlineKeyboard (Lkotlin/jvm/functions/Function1;)Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;
|
||||||
public static final fun gameButton (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;)Z
|
public static final fun gameButton-peVxY-Q (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;Ljava/lang/String;Ldev/inmo/tgbotapi/types/buttons/KeyboardButtonStyle;)Z
|
||||||
|
public static synthetic fun gameButton-peVxY-Q$default (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;Ljava/lang/String;Ldev/inmo/tgbotapi/types/buttons/KeyboardButtonStyle;ILjava/lang/Object;)Z
|
||||||
public static final fun inlineKeyboard (Lkotlin/jvm/functions/Function1;)Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;
|
public static final fun inlineKeyboard (Lkotlin/jvm/functions/Function1;)Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;
|
||||||
public static final fun inlineQueryButton (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;Ljava/lang/String;)Z
|
public static final fun inlineQueryButton-TGGzX2M (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ldev/inmo/tgbotapi/types/buttons/KeyboardButtonStyle;)Z
|
||||||
public static final fun inlineQueryInAnyChosenChatButton (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;Ljava/lang/String;)Z
|
public static synthetic fun inlineQueryButton-TGGzX2M$default (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ldev/inmo/tgbotapi/types/buttons/KeyboardButtonStyle;ILjava/lang/Object;)Z
|
||||||
public static synthetic fun inlineQueryInAnyChosenChatButton$default (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;Ljava/lang/String;ILjava/lang/Object;)Z
|
public static final fun inlineQueryInAnyChosenChatButton-TGGzX2M (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ldev/inmo/tgbotapi/types/buttons/KeyboardButtonStyle;)Z
|
||||||
public static final fun inlineQueryInChosenChatButton (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardButtons/SwitchInlineQueryChosenChat;)Z
|
public static synthetic fun inlineQueryInAnyChosenChatButton-TGGzX2M$default (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ldev/inmo/tgbotapi/types/buttons/KeyboardButtonStyle;ILjava/lang/Object;)Z
|
||||||
public static final fun inlineQueryInChosenChatButton (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;Ljava/lang/String;ZZZZ)Z
|
public static final fun inlineQueryInChosenChatButton-EEPG3Qg (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;Ljava/lang/String;ZZZZLjava/lang/String;Ldev/inmo/tgbotapi/types/buttons/KeyboardButtonStyle;)Z
|
||||||
public static synthetic fun inlineQueryInChosenChatButton$default (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;Ljava/lang/String;ZZZZILjava/lang/Object;)Z
|
public static synthetic fun inlineQueryInChosenChatButton-EEPG3Qg$default (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;Ljava/lang/String;ZZZZLjava/lang/String;Ldev/inmo/tgbotapi/types/buttons/KeyboardButtonStyle;ILjava/lang/Object;)Z
|
||||||
public static final fun inlineQueryInCurrentChatButton (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;Ljava/lang/String;)Z
|
public static final fun inlineQueryInChosenChatButton-TGGzX2M (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardButtons/SwitchInlineQueryChosenChat;Ljava/lang/String;Ldev/inmo/tgbotapi/types/buttons/KeyboardButtonStyle;)Z
|
||||||
public static final fun loginButton (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;Ldev/inmo/tgbotapi/types/LoginURL;)Z
|
public static synthetic fun inlineQueryInChosenChatButton-TGGzX2M$default (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardButtons/SwitchInlineQueryChosenChat;Ljava/lang/String;Ldev/inmo/tgbotapi/types/buttons/KeyboardButtonStyle;ILjava/lang/Object;)Z
|
||||||
|
public static final fun inlineQueryInCurrentChatButton-TGGzX2M (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ldev/inmo/tgbotapi/types/buttons/KeyboardButtonStyle;)Z
|
||||||
|
public static synthetic fun inlineQueryInCurrentChatButton-TGGzX2M$default (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ldev/inmo/tgbotapi/types/buttons/KeyboardButtonStyle;ILjava/lang/Object;)Z
|
||||||
|
public static final fun loginButton-TGGzX2M (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;Ldev/inmo/tgbotapi/types/LoginURL;Ljava/lang/String;Ldev/inmo/tgbotapi/types/buttons/KeyboardButtonStyle;)Z
|
||||||
|
public static synthetic fun loginButton-TGGzX2M$default (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;Ldev/inmo/tgbotapi/types/LoginURL;Ljava/lang/String;Ldev/inmo/tgbotapi/types/buttons/KeyboardButtonStyle;ILjava/lang/Object;)Z
|
||||||
public static final fun modified (Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;Lkotlin/jvm/functions/Function1;)Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;
|
public static final fun modified (Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;Lkotlin/jvm/functions/Function1;)Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;
|
||||||
public static final fun payButton (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;)Z
|
public static final fun payButton-peVxY-Q (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;Ljava/lang/String;Ldev/inmo/tgbotapi/types/buttons/KeyboardButtonStyle;)Z
|
||||||
public static final fun urlButton (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;Ljava/lang/String;)Z
|
public static synthetic fun payButton-peVxY-Q$default (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;Ljava/lang/String;Ldev/inmo/tgbotapi/types/buttons/KeyboardButtonStyle;ILjava/lang/Object;)Z
|
||||||
public static final fun webAppButton (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;Ldev/inmo/tgbotapi/types/webapps/WebAppInfo;)Z
|
public static final fun urlButton-TGGzX2M (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ldev/inmo/tgbotapi/types/buttons/KeyboardButtonStyle;)Z
|
||||||
public static final fun webAppButton (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;Ljava/lang/String;)Z
|
public static synthetic fun urlButton-TGGzX2M$default (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ldev/inmo/tgbotapi/types/buttons/KeyboardButtonStyle;ILjava/lang/Object;)Z
|
||||||
|
public static final fun webAppButton-TGGzX2M (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;Ldev/inmo/tgbotapi/types/webapps/WebAppInfo;Ljava/lang/String;Ldev/inmo/tgbotapi/types/buttons/KeyboardButtonStyle;)Z
|
||||||
|
public static final fun webAppButton-TGGzX2M (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ldev/inmo/tgbotapi/types/buttons/KeyboardButtonStyle;)Z
|
||||||
|
public static synthetic fun webAppButton-TGGzX2M$default (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;Ldev/inmo/tgbotapi/types/webapps/WebAppInfo;Ljava/lang/String;Ldev/inmo/tgbotapi/types/buttons/KeyboardButtonStyle;ILjava/lang/Object;)Z
|
||||||
|
public static synthetic fun webAppButton-TGGzX2M$default (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ldev/inmo/tgbotapi/types/buttons/KeyboardButtonStyle;ILjava/lang/Object;)Z
|
||||||
}
|
}
|
||||||
|
|
||||||
public final class dev/inmo/tgbotapi/extensions/utils/types/buttons/InlineKeyboardMarkupKt {
|
public final class dev/inmo/tgbotapi/extensions/utils/types/buttons/InlineKeyboardMarkupKt {
|
||||||
@@ -3585,32 +3636,40 @@ public final class dev/inmo/tgbotapi/extensions/utils/types/buttons/ReplyKeyboar
|
|||||||
public static synthetic fun flatReplyKeyboard$default (Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/String;Ljava/lang/Boolean;Ljava/lang/Boolean;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)Ldev/inmo/tgbotapi/types/buttons/ReplyKeyboardMarkup;
|
public static synthetic fun flatReplyKeyboard$default (Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/String;Ljava/lang/Boolean;Ljava/lang/Boolean;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)Ldev/inmo/tgbotapi/types/buttons/ReplyKeyboardMarkup;
|
||||||
public static final fun replyKeyboard (Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/String;Ljava/lang/Boolean;Ljava/lang/Boolean;Lkotlin/jvm/functions/Function1;)Ldev/inmo/tgbotapi/types/buttons/ReplyKeyboardMarkup;
|
public static final fun replyKeyboard (Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/String;Ljava/lang/Boolean;Ljava/lang/Boolean;Lkotlin/jvm/functions/Function1;)Ldev/inmo/tgbotapi/types/buttons/ReplyKeyboardMarkup;
|
||||||
public static synthetic fun replyKeyboard$default (Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/String;Ljava/lang/Boolean;Ljava/lang/Boolean;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)Ldev/inmo/tgbotapi/types/buttons/ReplyKeyboardMarkup;
|
public static synthetic fun replyKeyboard$default (Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/String;Ljava/lang/Boolean;Ljava/lang/Boolean;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)Ldev/inmo/tgbotapi/types/buttons/ReplyKeyboardMarkup;
|
||||||
public static final fun requestBotButton-6J3sOes (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;SLjava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;)Z
|
public static final fun requestBotButton-saVQPX0 (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;SLjava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/String;Ldev/inmo/tgbotapi/types/buttons/KeyboardButtonStyle;)Z
|
||||||
public static synthetic fun requestBotButton-6J3sOes$default (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;SLjava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;ILjava/lang/Object;)Z
|
public static synthetic fun requestBotButton-saVQPX0$default (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;SLjava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/String;Ldev/inmo/tgbotapi/types/buttons/KeyboardButtonStyle;ILjava/lang/Object;)Z
|
||||||
public static final fun requestBotsButton-6xNxnbw (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;SILjava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;)Z
|
public static final fun requestBotsButton-gB4qrME (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;SILjava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/String;Ldev/inmo/tgbotapi/types/buttons/KeyboardButtonStyle;)Z
|
||||||
public static synthetic fun requestBotsButton-6xNxnbw$default (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;SILjava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;ILjava/lang/Object;)Z
|
public static synthetic fun requestBotsButton-gB4qrME$default (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;SILjava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/String;Ldev/inmo/tgbotapi/types/buttons/KeyboardButtonStyle;ILjava/lang/Object;)Z
|
||||||
public static final fun requestChannelButton-cvDvKfo (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;SLjava/lang/Boolean;Ljava/lang/Boolean;Ldev/inmo/tgbotapi/types/chat/member/ChatCommonAdministratorRights;Ldev/inmo/tgbotapi/types/chat/member/ChatCommonAdministratorRights;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;)Z
|
public static final fun requestChannelButton-OBc0hwI (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;SLjava/lang/Boolean;Ljava/lang/Boolean;Ldev/inmo/tgbotapi/types/chat/member/ChatCommonAdministratorRights;Ldev/inmo/tgbotapi/types/chat/member/ChatCommonAdministratorRights;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/String;Ldev/inmo/tgbotapi/types/buttons/KeyboardButtonStyle;)Z
|
||||||
public static synthetic fun requestChannelButton-cvDvKfo$default (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;SLjava/lang/Boolean;Ljava/lang/Boolean;Ldev/inmo/tgbotapi/types/chat/member/ChatCommonAdministratorRights;Ldev/inmo/tgbotapi/types/chat/member/ChatCommonAdministratorRights;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;ILjava/lang/Object;)Z
|
public static synthetic fun requestChannelButton-OBc0hwI$default (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;SLjava/lang/Boolean;Ljava/lang/Boolean;Ldev/inmo/tgbotapi/types/chat/member/ChatCommonAdministratorRights;Ldev/inmo/tgbotapi/types/chat/member/ChatCommonAdministratorRights;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/String;Ldev/inmo/tgbotapi/types/buttons/KeyboardButtonStyle;ILjava/lang/Object;)Z
|
||||||
public static final fun requestChatButton (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;Ldev/inmo/tgbotapi/types/buttons/KeyboardButtonRequestChat;)Z
|
public static final fun requestChatButton-S4YyRvg (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;SLjava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ldev/inmo/tgbotapi/types/chat/member/ChatCommonAdministratorRights;Ldev/inmo/tgbotapi/types/chat/member/ChatCommonAdministratorRights;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/String;Ldev/inmo/tgbotapi/types/buttons/KeyboardButtonStyle;)Z
|
||||||
public static final fun requestChatButton-n4yCVdQ (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;SLjava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ldev/inmo/tgbotapi/types/chat/member/ChatCommonAdministratorRights;Ldev/inmo/tgbotapi/types/chat/member/ChatCommonAdministratorRights;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;)Z
|
public static synthetic fun requestChatButton-S4YyRvg$default (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;SLjava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ldev/inmo/tgbotapi/types/chat/member/ChatCommonAdministratorRights;Ldev/inmo/tgbotapi/types/chat/member/ChatCommonAdministratorRights;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/String;Ldev/inmo/tgbotapi/types/buttons/KeyboardButtonStyle;ILjava/lang/Object;)Z
|
||||||
public static synthetic fun requestChatButton-n4yCVdQ$default (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;SLjava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ldev/inmo/tgbotapi/types/chat/member/ChatCommonAdministratorRights;Ldev/inmo/tgbotapi/types/chat/member/ChatCommonAdministratorRights;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;ILjava/lang/Object;)Z
|
public static final fun requestChatButton-TGGzX2M (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;Ldev/inmo/tgbotapi/types/buttons/KeyboardButtonRequestChat;Ljava/lang/String;Ldev/inmo/tgbotapi/types/buttons/KeyboardButtonStyle;)Z
|
||||||
public static final fun requestContactButton (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;)Z
|
public static synthetic fun requestChatButton-TGGzX2M$default (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;Ldev/inmo/tgbotapi/types/buttons/KeyboardButtonRequestChat;Ljava/lang/String;Ldev/inmo/tgbotapi/types/buttons/KeyboardButtonStyle;ILjava/lang/Object;)Z
|
||||||
public static final fun requestGroupButton-dh25vGQ (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;SLjava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ldev/inmo/tgbotapi/types/chat/member/ChatCommonAdministratorRights;Ldev/inmo/tgbotapi/types/chat/member/ChatCommonAdministratorRights;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;)Z
|
public static final fun requestContactButton-peVxY-Q (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;Ljava/lang/String;Ldev/inmo/tgbotapi/types/buttons/KeyboardButtonStyle;)Z
|
||||||
public static synthetic fun requestGroupButton-dh25vGQ$default (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;SLjava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ldev/inmo/tgbotapi/types/chat/member/ChatCommonAdministratorRights;Ldev/inmo/tgbotapi/types/chat/member/ChatCommonAdministratorRights;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;ILjava/lang/Object;)Z
|
public static synthetic fun requestContactButton-peVxY-Q$default (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;Ljava/lang/String;Ldev/inmo/tgbotapi/types/buttons/KeyboardButtonStyle;ILjava/lang/Object;)Z
|
||||||
public static final fun requestLocationButton (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;)Z
|
public static final fun requestGroupButton-07i2Weo (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;SLjava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ldev/inmo/tgbotapi/types/chat/member/ChatCommonAdministratorRights;Ldev/inmo/tgbotapi/types/chat/member/ChatCommonAdministratorRights;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/String;Ldev/inmo/tgbotapi/types/buttons/KeyboardButtonStyle;)Z
|
||||||
public static final fun requestPollButton (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;Ldev/inmo/tgbotapi/types/buttons/KeyboardButtonPollType;)Z
|
public static synthetic fun requestGroupButton-07i2Weo$default (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;SLjava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ldev/inmo/tgbotapi/types/chat/member/ChatCommonAdministratorRights;Ldev/inmo/tgbotapi/types/chat/member/ChatCommonAdministratorRights;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/String;Ldev/inmo/tgbotapi/types/buttons/KeyboardButtonStyle;ILjava/lang/Object;)Z
|
||||||
public static final fun requestUserButton-6xNxnbw (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;SLjava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;)Z
|
public static final fun requestLocationButton-peVxY-Q (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;Ljava/lang/String;Ldev/inmo/tgbotapi/types/buttons/KeyboardButtonStyle;)Z
|
||||||
public static synthetic fun requestUserButton-6xNxnbw$default (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;SLjava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;ILjava/lang/Object;)Z
|
public static synthetic fun requestLocationButton-peVxY-Q$default (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;Ljava/lang/String;Ldev/inmo/tgbotapi/types/buttons/KeyboardButtonStyle;ILjava/lang/Object;)Z
|
||||||
public static final fun requestUserOrBotButton-6J3sOes (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;SLjava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;)Z
|
public static final fun requestPollButton-TGGzX2M (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;Ldev/inmo/tgbotapi/types/buttons/KeyboardButtonPollType;Ljava/lang/String;Ldev/inmo/tgbotapi/types/buttons/KeyboardButtonStyle;)Z
|
||||||
public static synthetic fun requestUserOrBotButton-6J3sOes$default (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;SLjava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;ILjava/lang/Object;)Z
|
public static synthetic fun requestPollButton-TGGzX2M$default (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;Ldev/inmo/tgbotapi/types/buttons/KeyboardButtonPollType;Ljava/lang/String;Ldev/inmo/tgbotapi/types/buttons/KeyboardButtonStyle;ILjava/lang/Object;)Z
|
||||||
public static final fun requestUsersButton (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;Ldev/inmo/tgbotapi/types/buttons/KeyboardButtonRequestUsers;)Z
|
public static final fun requestUserButton-gB4qrME (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;SLjava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/String;Ldev/inmo/tgbotapi/types/buttons/KeyboardButtonStyle;)Z
|
||||||
public static final fun requestUsersButton-XjXd-ic (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;SLjava/lang/Boolean;ILjava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;)Z
|
public static synthetic fun requestUserButton-gB4qrME$default (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;SLjava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/String;Ldev/inmo/tgbotapi/types/buttons/KeyboardButtonStyle;ILjava/lang/Object;)Z
|
||||||
public static synthetic fun requestUsersButton-XjXd-ic$default (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;SLjava/lang/Boolean;ILjava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;ILjava/lang/Object;)Z
|
public static final fun requestUserOrBotButton-saVQPX0 (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;SLjava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/String;Ldev/inmo/tgbotapi/types/buttons/KeyboardButtonStyle;)Z
|
||||||
public static final fun requestUsersOrBotsButton-XjXd-ic (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;SLjava/lang/Boolean;ILjava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;)Z
|
public static synthetic fun requestUserOrBotButton-saVQPX0$default (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;SLjava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/String;Ldev/inmo/tgbotapi/types/buttons/KeyboardButtonStyle;ILjava/lang/Object;)Z
|
||||||
public static synthetic fun requestUsersOrBotsButton-XjXd-ic$default (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;SLjava/lang/Boolean;ILjava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;ILjava/lang/Object;)Z
|
public static final fun requestUsersButton-8qZnuvw (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;SLjava/lang/Boolean;ILjava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/String;Ldev/inmo/tgbotapi/types/buttons/KeyboardButtonStyle;)Z
|
||||||
public static final fun simpleButton (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;)Z
|
public static synthetic fun requestUsersButton-8qZnuvw$default (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;SLjava/lang/Boolean;ILjava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/String;Ldev/inmo/tgbotapi/types/buttons/KeyboardButtonStyle;ILjava/lang/Object;)Z
|
||||||
public static final fun webAppButton (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;Ldev/inmo/tgbotapi/types/webapps/WebAppInfo;)Z
|
public static final fun requestUsersButton-TGGzX2M (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;Ldev/inmo/tgbotapi/types/buttons/KeyboardButtonRequestUsers;Ljava/lang/String;Ldev/inmo/tgbotapi/types/buttons/KeyboardButtonStyle;)Z
|
||||||
public static final fun webAppButton (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;Ljava/lang/String;)Z
|
public static synthetic fun requestUsersButton-TGGzX2M$default (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;Ldev/inmo/tgbotapi/types/buttons/KeyboardButtonRequestUsers;Ljava/lang/String;Ldev/inmo/tgbotapi/types/buttons/KeyboardButtonStyle;ILjava/lang/Object;)Z
|
||||||
|
public static final fun requestUsersOrBotsButton-8qZnuvw (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;SLjava/lang/Boolean;ILjava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/String;Ldev/inmo/tgbotapi/types/buttons/KeyboardButtonStyle;)Z
|
||||||
|
public static synthetic fun requestUsersOrBotsButton-8qZnuvw$default (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;SLjava/lang/Boolean;ILjava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/String;Ldev/inmo/tgbotapi/types/buttons/KeyboardButtonStyle;ILjava/lang/Object;)Z
|
||||||
|
public static final fun simpleButton-peVxY-Q (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;Ljava/lang/String;Ldev/inmo/tgbotapi/types/buttons/KeyboardButtonStyle;)Z
|
||||||
|
public static synthetic fun simpleButton-peVxY-Q$default (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;Ljava/lang/String;Ldev/inmo/tgbotapi/types/buttons/KeyboardButtonStyle;ILjava/lang/Object;)Z
|
||||||
|
public static final fun webAppButton-TGGzX2M (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;Ldev/inmo/tgbotapi/types/webapps/WebAppInfo;Ljava/lang/String;Ldev/inmo/tgbotapi/types/buttons/KeyboardButtonStyle;)Z
|
||||||
|
public static final fun webAppButton-TGGzX2M (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ldev/inmo/tgbotapi/types/buttons/KeyboardButtonStyle;)Z
|
||||||
|
public static synthetic fun webAppButton-TGGzX2M$default (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;Ldev/inmo/tgbotapi/types/webapps/WebAppInfo;Ljava/lang/String;Ldev/inmo/tgbotapi/types/buttons/KeyboardButtonStyle;ILjava/lang/Object;)Z
|
||||||
|
public static synthetic fun webAppButton-TGGzX2M$default (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ldev/inmo/tgbotapi/types/buttons/KeyboardButtonStyle;ILjava/lang/Object;)Z
|
||||||
}
|
}
|
||||||
|
|
||||||
public final class dev/inmo/tgbotapi/extensions/utils/types/buttons/ReplyKeyboardMarkupKt {
|
public final class dev/inmo/tgbotapi/extensions/utils/types/buttons/ReplyKeyboardMarkupKt {
|
||||||
@@ -3705,7 +3764,9 @@ public final class dev/inmo/tgbotapi/extensions/utils/updates/retrieving/LongPol
|
|||||||
public static synthetic fun longPolling$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;ILkotlinx/coroutines/CoroutineScope;Lkotlin/jvm/functions/Function2;IZZLjava/lang/Long;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)Lkotlinx/coroutines/Job;
|
public static synthetic fun longPolling$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;ILkotlinx/coroutines/CoroutineScope;Lkotlin/jvm/functions/Function2;IZZLjava/lang/Long;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)Lkotlinx/coroutines/Job;
|
||||||
public static synthetic fun longPolling$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/updateshandlers/UpdatesFilter;ILkotlinx/coroutines/CoroutineScope;ZZLjava/lang/Long;Lkotlin/jvm/functions/Function2;ILjava/lang/Object;)Lkotlinx/coroutines/Job;
|
public static synthetic fun longPolling$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/updateshandlers/UpdatesFilter;ILkotlinx/coroutines/CoroutineScope;ZZLjava/lang/Long;Lkotlin/jvm/functions/Function2;ILjava/lang/Object;)Lkotlinx/coroutines/Job;
|
||||||
public static final fun longPollingFlow (Ldev/inmo/tgbotapi/bot/RequestsExecutor;ILkotlin/jvm/functions/Function2;Ljava/util/List;ZZLjava/lang/Long;)Lkotlinx/coroutines/flow/Flow;
|
public static final fun longPollingFlow (Ldev/inmo/tgbotapi/bot/RequestsExecutor;ILkotlin/jvm/functions/Function2;Ljava/util/List;ZZLjava/lang/Long;)Lkotlinx/coroutines/flow/Flow;
|
||||||
|
public static final fun longPollingFlow (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Lkotlin/jvm/functions/Function2;ZZLjava/lang/Long;Lkotlin/jvm/functions/Function1;)Lkotlinx/coroutines/flow/Flow;
|
||||||
public static synthetic fun longPollingFlow$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;ILkotlin/jvm/functions/Function2;Ljava/util/List;ZZLjava/lang/Long;ILjava/lang/Object;)Lkotlinx/coroutines/flow/Flow;
|
public static synthetic fun longPollingFlow$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;ILkotlin/jvm/functions/Function2;Ljava/util/List;ZZLjava/lang/Long;ILjava/lang/Object;)Lkotlinx/coroutines/flow/Flow;
|
||||||
|
public static synthetic fun longPollingFlow$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Lkotlin/jvm/functions/Function2;ZZLjava/lang/Long;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)Lkotlinx/coroutines/flow/Flow;
|
||||||
public static final fun retrieveAccumulatedUpdates (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/updateshandlers/FlowsUpdatesFilter;ZZLkotlinx/coroutines/CoroutineScope;ZLjava/lang/Long;Lkotlin/jvm/functions/Function2;)Lkotlinx/coroutines/Job;
|
public static final fun retrieveAccumulatedUpdates (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/updateshandlers/FlowsUpdatesFilter;ZZLkotlinx/coroutines/CoroutineScope;ZLjava/lang/Long;Lkotlin/jvm/functions/Function2;)Lkotlinx/coroutines/Job;
|
||||||
public static final fun retrieveAccumulatedUpdates (Ldev/inmo/tgbotapi/bot/RequestsExecutor;ZZLkotlinx/coroutines/CoroutineScope;Lkotlin/jvm/functions/Function2;Ljava/util/List;ZLjava/lang/Long;Lkotlin/jvm/functions/Function2;)Lkotlinx/coroutines/Job;
|
public static final fun retrieveAccumulatedUpdates (Ldev/inmo/tgbotapi/bot/RequestsExecutor;ZZLkotlinx/coroutines/CoroutineScope;Lkotlin/jvm/functions/Function2;Ljava/util/List;ZLjava/lang/Long;Lkotlin/jvm/functions/Function2;)Lkotlinx/coroutines/Job;
|
||||||
public static synthetic fun retrieveAccumulatedUpdates$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/updateshandlers/FlowsUpdatesFilter;ZZLkotlinx/coroutines/CoroutineScope;ZLjava/lang/Long;Lkotlin/jvm/functions/Function2;ILjava/lang/Object;)Lkotlinx/coroutines/Job;
|
public static synthetic fun retrieveAccumulatedUpdates$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/updateshandlers/FlowsUpdatesFilter;ZZLkotlinx/coroutines/CoroutineScope;ZLjava/lang/Long;Lkotlin/jvm/functions/Function2;ILjava/lang/Object;)Lkotlinx/coroutines/Job;
|
||||||
|
|||||||
@@ -3275,6 +3275,24 @@ inline fun ChatEvent.asChannelEvent(): ChannelEvent? = this as? ChannelEvent
|
|||||||
@PreviewFeature
|
@PreviewFeature
|
||||||
inline fun ChatEvent.requireChannelEvent(): ChannelEvent = this as ChannelEvent
|
inline fun ChatEvent.requireChannelEvent(): ChannelEvent = this as ChannelEvent
|
||||||
|
|
||||||
|
@PreviewFeature
|
||||||
|
inline fun <T> ChatEvent.whenChatOwnerLeft(block: (ChatOwnerLeft) -> T) = asChatOwnerLeft()?.let(block)
|
||||||
|
|
||||||
|
@PreviewFeature
|
||||||
|
inline fun ChatEvent.asChatOwnerLeft(): ChatOwnerLeft? = this as? ChatOwnerLeft
|
||||||
|
|
||||||
|
@PreviewFeature
|
||||||
|
inline fun ChatEvent.requireChatOwnerLeft(): ChatOwnerLeft = this as ChatOwnerLeft
|
||||||
|
|
||||||
|
@PreviewFeature
|
||||||
|
inline fun <T> ChatEvent.whenChatOwnerChanged(block: (ChatOwnerChanged) -> T) = asChatOwnerChanged()?.let(block)
|
||||||
|
|
||||||
|
@PreviewFeature
|
||||||
|
inline fun ChatEvent.asChatOwnerChanged(): ChatOwnerChanged? = this as? ChatOwnerChanged
|
||||||
|
|
||||||
|
@PreviewFeature
|
||||||
|
inline fun ChatEvent.requireChatOwnerChanged(): ChatOwnerChanged = this as ChatOwnerChanged
|
||||||
|
|
||||||
@PreviewFeature
|
@PreviewFeature
|
||||||
inline fun <T> ChatEvent.whenPublicChatEvent(block: (PublicChatEvent) -> T) = asPublicChatEvent()?.let(block)
|
inline fun <T> ChatEvent.whenPublicChatEvent(block: (PublicChatEvent) -> T) = asPublicChatEvent()?.let(block)
|
||||||
|
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -1,6 +1,7 @@
|
|||||||
package dev.inmo.tgbotapi.extensions.utils.types.buttons
|
package dev.inmo.tgbotapi.extensions.utils.types.buttons
|
||||||
|
|
||||||
import dev.inmo.tgbotapi.types.LoginURL
|
import dev.inmo.tgbotapi.types.*
|
||||||
|
import dev.inmo.tgbotapi.types.buttons.KeyboardButtonStyle
|
||||||
import dev.inmo.tgbotapi.types.buttons.InlineKeyboardButtons.*
|
import dev.inmo.tgbotapi.types.buttons.InlineKeyboardButtons.*
|
||||||
import dev.inmo.tgbotapi.types.buttons.InlineKeyboardMarkup
|
import dev.inmo.tgbotapi.types.buttons.InlineKeyboardMarkup
|
||||||
import dev.inmo.tgbotapi.types.webapps.WebAppInfo
|
import dev.inmo.tgbotapi.types.webapps.WebAppInfo
|
||||||
@@ -70,8 +71,10 @@ inline fun InlineKeyboardMarkup.modified(
|
|||||||
* @see InlineKeyboardBuilder.row
|
* @see InlineKeyboardBuilder.row
|
||||||
*/
|
*/
|
||||||
fun InlineKeyboardRowBuilder.payButton(
|
fun InlineKeyboardRowBuilder.payButton(
|
||||||
text: String
|
text: String,
|
||||||
) = add(PayInlineKeyboardButton(text))
|
iconCustomEmojiId: CustomEmojiId? = null,
|
||||||
|
style: KeyboardButtonStyle? = null
|
||||||
|
) = add(PayInlineKeyboardButton(text, iconCustomEmojiId, style))
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates and put [CallbackDataInlineKeyboardButton]
|
* Creates and put [CallbackDataInlineKeyboardButton]
|
||||||
@@ -81,8 +84,10 @@ fun InlineKeyboardRowBuilder.payButton(
|
|||||||
*/
|
*/
|
||||||
fun InlineKeyboardRowBuilder.dataButton(
|
fun InlineKeyboardRowBuilder.dataButton(
|
||||||
text: String,
|
text: String,
|
||||||
data: String
|
data: String,
|
||||||
) = add(CallbackDataInlineKeyboardButton(text, data))
|
iconCustomEmojiId: CustomEmojiId? = null,
|
||||||
|
style: KeyboardButtonStyle? = null
|
||||||
|
) = add(CallbackDataInlineKeyboardButton(text, data, iconCustomEmojiId, style))
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates and put [CallbackGameInlineKeyboardButton]
|
* Creates and put [CallbackGameInlineKeyboardButton]
|
||||||
@@ -91,8 +96,10 @@ fun InlineKeyboardRowBuilder.dataButton(
|
|||||||
* @see InlineKeyboardBuilder.row
|
* @see InlineKeyboardBuilder.row
|
||||||
*/
|
*/
|
||||||
fun InlineKeyboardRowBuilder.gameButton(
|
fun InlineKeyboardRowBuilder.gameButton(
|
||||||
text: String
|
text: String,
|
||||||
) = add(CallbackGameInlineKeyboardButton(text))
|
iconCustomEmojiId: CustomEmojiId? = null,
|
||||||
|
style: KeyboardButtonStyle? = null
|
||||||
|
) = add(CallbackGameInlineKeyboardButton(text, iconCustomEmojiId, style))
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates and put [LoginURLInlineKeyboardButton]
|
* Creates and put [LoginURLInlineKeyboardButton]
|
||||||
@@ -102,8 +109,10 @@ fun InlineKeyboardRowBuilder.gameButton(
|
|||||||
*/
|
*/
|
||||||
fun InlineKeyboardRowBuilder.loginButton(
|
fun InlineKeyboardRowBuilder.loginButton(
|
||||||
text: String,
|
text: String,
|
||||||
loginUrl: LoginURL
|
loginUrl: LoginURL,
|
||||||
) = add(LoginURLInlineKeyboardButton(text, loginUrl))
|
iconCustomEmojiId: CustomEmojiId? = null,
|
||||||
|
style: KeyboardButtonStyle? = null
|
||||||
|
) = add(LoginURLInlineKeyboardButton(text, loginUrl, iconCustomEmojiId, style))
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates [CopyTextButton]
|
* Creates [CopyTextButton]
|
||||||
@@ -113,8 +122,10 @@ fun InlineKeyboardRowBuilder.loginButton(
|
|||||||
*/
|
*/
|
||||||
fun InlineKeyboardRowBuilder.copyTextButton(
|
fun InlineKeyboardRowBuilder.copyTextButton(
|
||||||
text: String,
|
text: String,
|
||||||
data: CopyTextButtonData
|
data: CopyTextButtonData,
|
||||||
) = add(CopyTextButton(text, data))
|
iconCustomEmojiId: CustomEmojiId? = null,
|
||||||
|
style: KeyboardButtonStyle? = null
|
||||||
|
) = add(CopyTextButton(text, data, iconCustomEmojiId, style))
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates [CopyTextButton]
|
* Creates [CopyTextButton]
|
||||||
@@ -124,8 +135,10 @@ fun InlineKeyboardRowBuilder.copyTextButton(
|
|||||||
*/
|
*/
|
||||||
fun InlineKeyboardRowBuilder.copyTextButton(
|
fun InlineKeyboardRowBuilder.copyTextButton(
|
||||||
text: String,
|
text: String,
|
||||||
data: String
|
data: String,
|
||||||
) = copyTextButton(text, CopyTextButtonData(data))
|
iconCustomEmojiId: CustomEmojiId? = null,
|
||||||
|
style: KeyboardButtonStyle? = null
|
||||||
|
) = copyTextButton(text, CopyTextButtonData(data), iconCustomEmojiId, style)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates and put [SwitchInlineQueryCurrentChatInlineKeyboardButton]
|
* Creates and put [SwitchInlineQueryCurrentChatInlineKeyboardButton]
|
||||||
@@ -135,8 +148,10 @@ fun InlineKeyboardRowBuilder.copyTextButton(
|
|||||||
*/
|
*/
|
||||||
fun InlineKeyboardRowBuilder.inlineQueryInCurrentChatButton(
|
fun InlineKeyboardRowBuilder.inlineQueryInCurrentChatButton(
|
||||||
text: String,
|
text: String,
|
||||||
data: String
|
data: String,
|
||||||
) = add(SwitchInlineQueryCurrentChatInlineKeyboardButton(text, data))
|
iconCustomEmojiId: CustomEmojiId? = null,
|
||||||
|
style: KeyboardButtonStyle? = null
|
||||||
|
) = add(SwitchInlineQueryCurrentChatInlineKeyboardButton(text, data, iconCustomEmojiId, style))
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates and put [SwitchInlineQueryChosenChatInlineKeyboardButton]
|
* Creates and put [SwitchInlineQueryChosenChatInlineKeyboardButton]
|
||||||
@@ -146,8 +161,10 @@ fun InlineKeyboardRowBuilder.inlineQueryInCurrentChatButton(
|
|||||||
*/
|
*/
|
||||||
fun InlineKeyboardRowBuilder.inlineQueryInChosenChatButton(
|
fun InlineKeyboardRowBuilder.inlineQueryInChosenChatButton(
|
||||||
text: String,
|
text: String,
|
||||||
parameters: SwitchInlineQueryChosenChat
|
parameters: SwitchInlineQueryChosenChat,
|
||||||
) = add(SwitchInlineQueryChosenChatInlineKeyboardButton(text, parameters))
|
iconCustomEmojiId: CustomEmojiId? = null,
|
||||||
|
style: KeyboardButtonStyle? = null
|
||||||
|
) = add(SwitchInlineQueryChosenChatInlineKeyboardButton(text, parameters, iconCustomEmojiId, style))
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates and put [SwitchInlineQueryChosenChatInlineKeyboardButton]
|
* Creates and put [SwitchInlineQueryChosenChatInlineKeyboardButton]
|
||||||
@@ -162,6 +179,8 @@ fun InlineKeyboardRowBuilder.inlineQueryInChosenChatButton(
|
|||||||
allowBots: Boolean = false,
|
allowBots: Boolean = false,
|
||||||
allowGroups: Boolean = false,
|
allowGroups: Boolean = false,
|
||||||
allowChannels: Boolean = false,
|
allowChannels: Boolean = false,
|
||||||
|
iconCustomEmojiId: CustomEmojiId? = null,
|
||||||
|
style: KeyboardButtonStyle? = null
|
||||||
) = inlineQueryInChosenChatButton(
|
) = inlineQueryInChosenChatButton(
|
||||||
text,
|
text,
|
||||||
SwitchInlineQueryChosenChat(
|
SwitchInlineQueryChosenChat(
|
||||||
@@ -170,12 +189,16 @@ fun InlineKeyboardRowBuilder.inlineQueryInChosenChatButton(
|
|||||||
allowBots = allowBots,
|
allowBots = allowBots,
|
||||||
allowGroups = allowGroups,
|
allowGroups = allowGroups,
|
||||||
allowChannels = allowChannels
|
allowChannels = allowChannels
|
||||||
)
|
),
|
||||||
|
iconCustomEmojiId,
|
||||||
|
style
|
||||||
)
|
)
|
||||||
fun InlineKeyboardRowBuilder.inlineQueryInAnyChosenChatButton(
|
fun InlineKeyboardRowBuilder.inlineQueryInAnyChosenChatButton(
|
||||||
text: String,
|
text: String,
|
||||||
query: String? = null,
|
query: String? = null,
|
||||||
) = inlineQueryInChosenChatButton(text, query, allowUsers = true, allowBots = true, allowGroups = true, allowChannels = true)
|
iconCustomEmojiId: CustomEmojiId? = null,
|
||||||
|
style: KeyboardButtonStyle? = null
|
||||||
|
) = inlineQueryInChosenChatButton(text, query, allowUsers = true, allowBots = true, allowGroups = true, allowChannels = true, iconCustomEmojiId = iconCustomEmojiId, style = style)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates and put [SwitchInlineQueryInlineKeyboardButton]
|
* Creates and put [SwitchInlineQueryInlineKeyboardButton]
|
||||||
@@ -185,8 +208,10 @@ fun InlineKeyboardRowBuilder.inlineQueryInAnyChosenChatButton(
|
|||||||
*/
|
*/
|
||||||
fun InlineKeyboardRowBuilder.inlineQueryButton(
|
fun InlineKeyboardRowBuilder.inlineQueryButton(
|
||||||
text: String,
|
text: String,
|
||||||
data: String
|
data: String,
|
||||||
) = add(SwitchInlineQueryInlineKeyboardButton(text, data))
|
iconCustomEmojiId: CustomEmojiId? = null,
|
||||||
|
style: KeyboardButtonStyle? = null
|
||||||
|
) = add(SwitchInlineQueryInlineKeyboardButton(text, data, iconCustomEmojiId, style))
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates and put [URLInlineKeyboardButton]
|
* Creates and put [URLInlineKeyboardButton]
|
||||||
@@ -196,8 +221,10 @@ fun InlineKeyboardRowBuilder.inlineQueryButton(
|
|||||||
*/
|
*/
|
||||||
fun InlineKeyboardRowBuilder.urlButton(
|
fun InlineKeyboardRowBuilder.urlButton(
|
||||||
text: String,
|
text: String,
|
||||||
url: String
|
url: String,
|
||||||
) = add(URLInlineKeyboardButton(text, url))
|
iconCustomEmojiId: CustomEmojiId? = null,
|
||||||
|
style: KeyboardButtonStyle? = null
|
||||||
|
) = add(URLInlineKeyboardButton(text, url, iconCustomEmojiId, style))
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates and put [WebAppInlineKeyboardButton]. Please, remember that this button is available in private chats only
|
* Creates and put [WebAppInlineKeyboardButton]. Please, remember that this button is available in private chats only
|
||||||
@@ -207,8 +234,10 @@ fun InlineKeyboardRowBuilder.urlButton(
|
|||||||
*/
|
*/
|
||||||
fun InlineKeyboardRowBuilder.webAppButton(
|
fun InlineKeyboardRowBuilder.webAppButton(
|
||||||
text: String,
|
text: String,
|
||||||
webApp: WebAppInfo
|
webApp: WebAppInfo,
|
||||||
) = add(WebAppInlineKeyboardButton(text, webApp))
|
iconCustomEmojiId: CustomEmojiId? = null,
|
||||||
|
style: KeyboardButtonStyle? = null
|
||||||
|
) = add(WebAppInlineKeyboardButton(text, webApp, iconCustomEmojiId, style))
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates and put [WebAppInlineKeyboardButton]. Please, remember that this button is available in private chats only
|
* Creates and put [WebAppInlineKeyboardButton]. Please, remember that this button is available in private chats only
|
||||||
@@ -218,5 +247,7 @@ fun InlineKeyboardRowBuilder.webAppButton(
|
|||||||
*/
|
*/
|
||||||
fun InlineKeyboardRowBuilder.webAppButton(
|
fun InlineKeyboardRowBuilder.webAppButton(
|
||||||
text: String,
|
text: String,
|
||||||
url: String
|
url: String,
|
||||||
) = webAppButton(text, WebAppInfo(url))
|
iconCustomEmojiId: CustomEmojiId? = null,
|
||||||
|
style: KeyboardButtonStyle? = null
|
||||||
|
) = webAppButton(text, WebAppInfo(url), iconCustomEmojiId, style)
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
package dev.inmo.tgbotapi.extensions.utils.types.buttons
|
package dev.inmo.tgbotapi.extensions.utils.types.buttons
|
||||||
|
|
||||||
|
import dev.inmo.tgbotapi.types.*
|
||||||
import dev.inmo.tgbotapi.types.buttons.*
|
import dev.inmo.tgbotapi.types.buttons.*
|
||||||
import dev.inmo.tgbotapi.types.buttons.reply.requestChatReplyButton
|
import dev.inmo.tgbotapi.types.buttons.reply.requestChatReplyButton
|
||||||
import dev.inmo.tgbotapi.types.buttons.reply.requestUserReplyButton
|
import dev.inmo.tgbotapi.types.buttons.reply.requestUserReplyButton
|
||||||
@@ -78,8 +79,10 @@ inline fun flatReplyKeyboard(
|
|||||||
* @see ReplyKeyboardBuilder.row
|
* @see ReplyKeyboardBuilder.row
|
||||||
*/
|
*/
|
||||||
fun ReplyKeyboardRowBuilder.simpleButton(
|
fun ReplyKeyboardRowBuilder.simpleButton(
|
||||||
text: String
|
text: String,
|
||||||
) = add(SimpleKeyboardButton(text))
|
iconCustomEmojiId: CustomEmojiId? = null,
|
||||||
|
style: KeyboardButtonStyle? = null
|
||||||
|
) = add(SimpleKeyboardButton(text, iconCustomEmojiId, style))
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates and put [RequestContactKeyboardButton]
|
* Creates and put [RequestContactKeyboardButton]
|
||||||
@@ -88,8 +91,10 @@ fun ReplyKeyboardRowBuilder.simpleButton(
|
|||||||
* @see ReplyKeyboardBuilder.row
|
* @see ReplyKeyboardBuilder.row
|
||||||
*/
|
*/
|
||||||
fun ReplyKeyboardRowBuilder.requestContactButton(
|
fun ReplyKeyboardRowBuilder.requestContactButton(
|
||||||
text: String
|
text: String,
|
||||||
) = add(RequestContactKeyboardButton(text))
|
iconCustomEmojiId: CustomEmojiId? = null,
|
||||||
|
style: KeyboardButtonStyle? = null
|
||||||
|
) = add(RequestContactKeyboardButton(text, iconCustomEmojiId, style))
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates and put [RequestLocationKeyboardButton]
|
* Creates and put [RequestLocationKeyboardButton]
|
||||||
@@ -98,8 +103,10 @@ fun ReplyKeyboardRowBuilder.requestContactButton(
|
|||||||
* @see ReplyKeyboardBuilder.row
|
* @see ReplyKeyboardBuilder.row
|
||||||
*/
|
*/
|
||||||
fun ReplyKeyboardRowBuilder.requestLocationButton(
|
fun ReplyKeyboardRowBuilder.requestLocationButton(
|
||||||
text: String
|
text: String,
|
||||||
) = add(RequestLocationKeyboardButton(text))
|
iconCustomEmojiId: CustomEmojiId? = null,
|
||||||
|
style: KeyboardButtonStyle? = null
|
||||||
|
) = add(RequestLocationKeyboardButton(text, iconCustomEmojiId, style))
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates and put [RequestPollKeyboardButton]
|
* Creates and put [RequestPollKeyboardButton]
|
||||||
@@ -109,8 +116,10 @@ fun ReplyKeyboardRowBuilder.requestLocationButton(
|
|||||||
*/
|
*/
|
||||||
fun ReplyKeyboardRowBuilder.requestPollButton(
|
fun ReplyKeyboardRowBuilder.requestPollButton(
|
||||||
text: String,
|
text: String,
|
||||||
pollType: KeyboardButtonPollType
|
pollType: KeyboardButtonPollType,
|
||||||
) = add(RequestPollKeyboardButton(text, pollType))
|
iconCustomEmojiId: CustomEmojiId? = null,
|
||||||
|
style: KeyboardButtonStyle? = null
|
||||||
|
) = add(RequestPollKeyboardButton(text, pollType, iconCustomEmojiId, style))
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates and put [WebAppKeyboardButton]
|
* Creates and put [WebAppKeyboardButton]
|
||||||
@@ -120,8 +129,10 @@ fun ReplyKeyboardRowBuilder.requestPollButton(
|
|||||||
*/
|
*/
|
||||||
fun ReplyKeyboardRowBuilder.webAppButton(
|
fun ReplyKeyboardRowBuilder.webAppButton(
|
||||||
text: String,
|
text: String,
|
||||||
webApp: WebAppInfo
|
webApp: WebAppInfo,
|
||||||
) = add(WebAppKeyboardButton(text, webApp))
|
iconCustomEmojiId: CustomEmojiId? = null,
|
||||||
|
style: KeyboardButtonStyle? = null
|
||||||
|
) = add(WebAppKeyboardButton(text, webApp, iconCustomEmojiId, style))
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates and put [WebAppKeyboardButton]
|
* Creates and put [WebAppKeyboardButton]
|
||||||
@@ -131,8 +142,10 @@ fun ReplyKeyboardRowBuilder.webAppButton(
|
|||||||
*/
|
*/
|
||||||
fun ReplyKeyboardRowBuilder.webAppButton(
|
fun ReplyKeyboardRowBuilder.webAppButton(
|
||||||
text: String,
|
text: String,
|
||||||
url: String
|
url: String,
|
||||||
) = webAppButton(text, WebAppInfo(url))
|
iconCustomEmojiId: CustomEmojiId? = null,
|
||||||
|
style: KeyboardButtonStyle? = null
|
||||||
|
) = webAppButton(text, WebAppInfo(url), iconCustomEmojiId, style)
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -143,11 +156,15 @@ fun ReplyKeyboardRowBuilder.webAppButton(
|
|||||||
*/
|
*/
|
||||||
fun ReplyKeyboardRowBuilder.requestUsersButton(
|
fun ReplyKeyboardRowBuilder.requestUsersButton(
|
||||||
text: String,
|
text: String,
|
||||||
requestUser: KeyboardButtonRequestUsers
|
requestUser: KeyboardButtonRequestUsers,
|
||||||
|
iconCustomEmojiId: CustomEmojiId? = null,
|
||||||
|
style: KeyboardButtonStyle? = null
|
||||||
) = add(
|
) = add(
|
||||||
requestUsersReplyButton(
|
requestUsersReplyButton(
|
||||||
text,
|
text,
|
||||||
requestUser
|
requestUser,
|
||||||
|
iconCustomEmojiId,
|
||||||
|
style
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -164,6 +181,8 @@ fun ReplyKeyboardRowBuilder.requestBotsButton(
|
|||||||
requestName: Boolean? = null,
|
requestName: Boolean? = null,
|
||||||
requestUsername: Boolean? = null,
|
requestUsername: Boolean? = null,
|
||||||
requestPhoto: Boolean? = null,
|
requestPhoto: Boolean? = null,
|
||||||
|
iconCustomEmojiId: CustomEmojiId? = null,
|
||||||
|
style: KeyboardButtonStyle? = null
|
||||||
) = requestUsersButton(
|
) = requestUsersButton(
|
||||||
text,
|
text,
|
||||||
KeyboardButtonRequestUsers.Bot(
|
KeyboardButtonRequestUsers.Bot(
|
||||||
@@ -172,7 +191,9 @@ fun ReplyKeyboardRowBuilder.requestBotsButton(
|
|||||||
requestName = requestName,
|
requestName = requestName,
|
||||||
requestUsername = requestUsername,
|
requestUsername = requestUsername,
|
||||||
requestPhoto = requestPhoto
|
requestPhoto = requestPhoto
|
||||||
)
|
),
|
||||||
|
iconCustomEmojiId,
|
||||||
|
style
|
||||||
)
|
)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -187,13 +208,17 @@ fun ReplyKeyboardRowBuilder.requestBotButton(
|
|||||||
requestName: Boolean? = null,
|
requestName: Boolean? = null,
|
||||||
requestUsername: Boolean? = null,
|
requestUsername: Boolean? = null,
|
||||||
requestPhoto: Boolean? = null,
|
requestPhoto: Boolean? = null,
|
||||||
|
iconCustomEmojiId: CustomEmojiId? = null,
|
||||||
|
style: KeyboardButtonStyle? = null
|
||||||
) = requestBotsButton(
|
) = requestBotsButton(
|
||||||
text,
|
text,
|
||||||
requestId,
|
requestId,
|
||||||
maxCount = keyboardButtonRequestUserLimit.first,
|
maxCount = keyboardButtonRequestUserLimit.first,
|
||||||
requestName = requestName,
|
requestName = requestName,
|
||||||
requestUsername = requestUsername,
|
requestUsername = requestUsername,
|
||||||
requestPhoto = requestPhoto
|
requestPhoto = requestPhoto,
|
||||||
|
iconCustomEmojiId = iconCustomEmojiId,
|
||||||
|
style = style
|
||||||
)
|
)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -210,6 +235,8 @@ fun ReplyKeyboardRowBuilder.requestUsersButton(
|
|||||||
requestName: Boolean? = null,
|
requestName: Boolean? = null,
|
||||||
requestUsername: Boolean? = null,
|
requestUsername: Boolean? = null,
|
||||||
requestPhoto: Boolean? = null,
|
requestPhoto: Boolean? = null,
|
||||||
|
iconCustomEmojiId: CustomEmojiId? = null,
|
||||||
|
style: KeyboardButtonStyle? = null
|
||||||
) = requestUsersButton(
|
) = requestUsersButton(
|
||||||
text,
|
text,
|
||||||
KeyboardButtonRequestUsers.Common(
|
KeyboardButtonRequestUsers.Common(
|
||||||
@@ -219,7 +246,9 @@ fun ReplyKeyboardRowBuilder.requestUsersButton(
|
|||||||
requestName = requestName,
|
requestName = requestName,
|
||||||
requestUsername = requestUsername,
|
requestUsername = requestUsername,
|
||||||
requestPhoto = requestPhoto
|
requestPhoto = requestPhoto
|
||||||
)
|
),
|
||||||
|
iconCustomEmojiId,
|
||||||
|
style
|
||||||
)
|
)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -235,6 +264,8 @@ fun ReplyKeyboardRowBuilder.requestUserButton(
|
|||||||
requestName: Boolean? = null,
|
requestName: Boolean? = null,
|
||||||
requestUsername: Boolean? = null,
|
requestUsername: Boolean? = null,
|
||||||
requestPhoto: Boolean? = null,
|
requestPhoto: Boolean? = null,
|
||||||
|
iconCustomEmojiId: CustomEmojiId? = null,
|
||||||
|
style: KeyboardButtonStyle? = null
|
||||||
) = requestUsersButton(
|
) = requestUsersButton(
|
||||||
text = text,
|
text = text,
|
||||||
requestId = requestId,
|
requestId = requestId,
|
||||||
@@ -242,7 +273,9 @@ fun ReplyKeyboardRowBuilder.requestUserButton(
|
|||||||
maxCount = keyboardButtonRequestUserLimit.first,
|
maxCount = keyboardButtonRequestUserLimit.first,
|
||||||
requestName = requestName,
|
requestName = requestName,
|
||||||
requestUsername = requestUsername,
|
requestUsername = requestUsername,
|
||||||
requestPhoto = requestPhoto
|
requestPhoto = requestPhoto,
|
||||||
|
iconCustomEmojiId = iconCustomEmojiId,
|
||||||
|
style = style
|
||||||
)
|
)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -259,6 +292,8 @@ fun ReplyKeyboardRowBuilder.requestUsersOrBotsButton(
|
|||||||
requestName: Boolean? = null,
|
requestName: Boolean? = null,
|
||||||
requestUsername: Boolean? = null,
|
requestUsername: Boolean? = null,
|
||||||
requestPhoto: Boolean? = null,
|
requestPhoto: Boolean? = null,
|
||||||
|
iconCustomEmojiId: CustomEmojiId? = null,
|
||||||
|
style: KeyboardButtonStyle? = null
|
||||||
) = requestUsersButton(
|
) = requestUsersButton(
|
||||||
text,
|
text,
|
||||||
KeyboardButtonRequestUsers.Any(
|
KeyboardButtonRequestUsers.Any(
|
||||||
@@ -268,7 +303,9 @@ fun ReplyKeyboardRowBuilder.requestUsersOrBotsButton(
|
|||||||
requestName = requestName,
|
requestName = requestName,
|
||||||
requestUsername = requestUsername,
|
requestUsername = requestUsername,
|
||||||
requestPhoto = requestPhoto
|
requestPhoto = requestPhoto
|
||||||
)
|
),
|
||||||
|
iconCustomEmojiId,
|
||||||
|
style
|
||||||
)
|
)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -283,6 +320,8 @@ fun ReplyKeyboardRowBuilder.requestUserOrBotButton(
|
|||||||
requestName: Boolean? = null,
|
requestName: Boolean? = null,
|
||||||
requestUsername: Boolean? = null,
|
requestUsername: Boolean? = null,
|
||||||
requestPhoto: Boolean? = null,
|
requestPhoto: Boolean? = null,
|
||||||
|
iconCustomEmojiId: CustomEmojiId? = null,
|
||||||
|
style: KeyboardButtonStyle? = null
|
||||||
) = requestUsersOrBotsButton(
|
) = requestUsersOrBotsButton(
|
||||||
text = text,
|
text = text,
|
||||||
requestId = requestId,
|
requestId = requestId,
|
||||||
@@ -290,6 +329,8 @@ fun ReplyKeyboardRowBuilder.requestUserOrBotButton(
|
|||||||
requestName = requestName,
|
requestName = requestName,
|
||||||
requestUsername = requestUsername,
|
requestUsername = requestUsername,
|
||||||
requestPhoto = requestPhoto,
|
requestPhoto = requestPhoto,
|
||||||
|
iconCustomEmojiId = iconCustomEmojiId,
|
||||||
|
style = style
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
@@ -301,11 +342,15 @@ fun ReplyKeyboardRowBuilder.requestUserOrBotButton(
|
|||||||
*/
|
*/
|
||||||
fun ReplyKeyboardRowBuilder.requestChatButton(
|
fun ReplyKeyboardRowBuilder.requestChatButton(
|
||||||
text: String,
|
text: String,
|
||||||
requestChat: KeyboardButtonRequestChat
|
requestChat: KeyboardButtonRequestChat,
|
||||||
|
iconCustomEmojiId: CustomEmojiId? = null,
|
||||||
|
style: KeyboardButtonStyle? = null
|
||||||
) = add(
|
) = add(
|
||||||
requestChatReplyButton(
|
requestChatReplyButton(
|
||||||
text,
|
text,
|
||||||
requestChat
|
requestChat,
|
||||||
|
iconCustomEmojiId,
|
||||||
|
style
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -328,6 +373,8 @@ fun ReplyKeyboardRowBuilder.requestChatButton(
|
|||||||
requestTitle: Boolean? = null,
|
requestTitle: Boolean? = null,
|
||||||
requestUsername: Boolean? = null,
|
requestUsername: Boolean? = null,
|
||||||
requestPhoto: Boolean? = null,
|
requestPhoto: Boolean? = null,
|
||||||
|
iconCustomEmojiId: CustomEmojiId? = null,
|
||||||
|
style: KeyboardButtonStyle? = null
|
||||||
) = requestChatButton(
|
) = requestChatButton(
|
||||||
text,
|
text,
|
||||||
KeyboardButtonRequestChat(
|
KeyboardButtonRequestChat(
|
||||||
@@ -342,7 +389,9 @@ fun ReplyKeyboardRowBuilder.requestChatButton(
|
|||||||
requestTitle = requestTitle,
|
requestTitle = requestTitle,
|
||||||
requestUsername = requestUsername,
|
requestUsername = requestUsername,
|
||||||
requestPhoto = requestPhoto,
|
requestPhoto = requestPhoto,
|
||||||
)
|
),
|
||||||
|
iconCustomEmojiId,
|
||||||
|
style
|
||||||
)
|
)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -362,6 +411,8 @@ fun ReplyKeyboardRowBuilder.requestChannelButton(
|
|||||||
requestTitle: Boolean? = null,
|
requestTitle: Boolean? = null,
|
||||||
requestUsername: Boolean? = null,
|
requestUsername: Boolean? = null,
|
||||||
requestPhoto: Boolean? = null,
|
requestPhoto: Boolean? = null,
|
||||||
|
iconCustomEmojiId: CustomEmojiId? = null,
|
||||||
|
style: KeyboardButtonStyle? = null
|
||||||
) = requestChatButton(
|
) = requestChatButton(
|
||||||
text,
|
text,
|
||||||
KeyboardButtonRequestChat.Channel(
|
KeyboardButtonRequestChat.Channel(
|
||||||
@@ -374,7 +425,9 @@ fun ReplyKeyboardRowBuilder.requestChannelButton(
|
|||||||
requestTitle = requestTitle,
|
requestTitle = requestTitle,
|
||||||
requestUsername = requestUsername,
|
requestUsername = requestUsername,
|
||||||
requestPhoto = requestPhoto,
|
requestPhoto = requestPhoto,
|
||||||
)
|
),
|
||||||
|
iconCustomEmojiId,
|
||||||
|
style
|
||||||
)
|
)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -395,6 +448,8 @@ fun ReplyKeyboardRowBuilder.requestGroupButton(
|
|||||||
requestTitle: Boolean? = null,
|
requestTitle: Boolean? = null,
|
||||||
requestUsername: Boolean? = null,
|
requestUsername: Boolean? = null,
|
||||||
requestPhoto: Boolean? = null,
|
requestPhoto: Boolean? = null,
|
||||||
|
iconCustomEmojiId: CustomEmojiId? = null,
|
||||||
|
style: KeyboardButtonStyle? = null
|
||||||
) = requestChatButton(
|
) = requestChatButton(
|
||||||
text,
|
text,
|
||||||
KeyboardButtonRequestChat.Group(
|
KeyboardButtonRequestChat.Group(
|
||||||
@@ -408,5 +463,7 @@ fun ReplyKeyboardRowBuilder.requestGroupButton(
|
|||||||
requestTitle = requestTitle,
|
requestTitle = requestTitle,
|
||||||
requestUsername = requestUsername,
|
requestUsername = requestUsername,
|
||||||
requestPhoto = requestPhoto,
|
requestPhoto = requestPhoto,
|
||||||
)
|
),
|
||||||
|
iconCustomEmojiId,
|
||||||
|
style
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
package dev.inmo.tgbotapi.extensions.utils.updates.retrieving
|
package dev.inmo.tgbotapi.extensions.utils.updates.retrieving
|
||||||
|
|
||||||
import dev.inmo.kslog.common.logger
|
|
||||||
import dev.inmo.micro_utils.coroutines.*
|
import dev.inmo.micro_utils.coroutines.*
|
||||||
import dev.inmo.tgbotapi.bot.RequestsExecutor
|
import dev.inmo.tgbotapi.bot.RequestsExecutor
|
||||||
import dev.inmo.tgbotapi.bot.TelegramBot
|
import dev.inmo.tgbotapi.bot.TelegramBot
|
||||||
@@ -15,27 +14,36 @@ import dev.inmo.tgbotapi.types.update.*
|
|||||||
import dev.inmo.tgbotapi.types.update.abstracts.BaseSentMessageUpdate
|
import dev.inmo.tgbotapi.types.update.abstracts.BaseSentMessageUpdate
|
||||||
import dev.inmo.tgbotapi.types.update.abstracts.Update
|
import dev.inmo.tgbotapi.types.update.abstracts.Update
|
||||||
import dev.inmo.tgbotapi.updateshandlers.*
|
import dev.inmo.tgbotapi.updateshandlers.*
|
||||||
import dev.inmo.tgbotapi.utils.DefaultKTgBotAPIKSLog
|
import dev.inmo.tgbotapi.utils.isCausedUnresolvedAddressException
|
||||||
import dev.inmo.tgbotapi.utils.causedCancellationException
|
|
||||||
import dev.inmo.tgbotapi.utils.isCausedByCancellation
|
|
||||||
import dev.inmo.tgbotapi.utils.subscribeWithBotLogger
|
import dev.inmo.tgbotapi.utils.subscribeWithBotLogger
|
||||||
|
import io.ktor.client.network.sockets.ConnectTimeoutException
|
||||||
import io.ktor.client.plugins.HttpRequestTimeoutException
|
import io.ktor.client.plugins.HttpRequestTimeoutException
|
||||||
import io.ktor.utils.io.CancellationException
|
import io.ktor.utils.io.CancellationException
|
||||||
import kotlinx.coroutines.*
|
import kotlinx.coroutines.*
|
||||||
import kotlinx.coroutines.flow.*
|
import kotlinx.coroutines.flow.*
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param mediaGroupsDebounceTimeMillis Will be used for calling of [updateHandlerWithMediaGroupsAdaptation]. Pass null
|
* Starts a long polling flow to receive updates continuously from the Telegram Bot API.
|
||||||
* in case you wish to enable classic way of updates handling, but in that mode some media group messages can be
|
*
|
||||||
* retrieved in different updates
|
* This method retrieves updates from the bot, processes them, and emits them as a flow of `Update` objects.
|
||||||
|
* It allows handling of updates with features like automatic webhook disabling, timeout exception skipping,
|
||||||
|
* and media group handling with debounce time.
|
||||||
|
*
|
||||||
|
* @param exceptionsHandler Optional exception handler to manage exceptions that occur during the polling process.
|
||||||
|
* @param autoDisableWebhooks Specifies whether to automatically disable existing webhooks before starting the long polling flow (default: `true`).
|
||||||
|
* @param autoSkipTimeoutExceptions Defines if timeout-related exceptions should automatically be skipped during the polling (default: `true`).
|
||||||
|
* @param mediaGroupsDebounceTimeMillis The debounce time in milliseconds for processing media group updates.
|
||||||
|
* If set to `null`, media group handling is disabled (default: `1000L`).
|
||||||
|
* @param getUpdatesRequestCreator A function that creates a `GetUpdates` request for retrieving updates.
|
||||||
|
* This function accepts the identifier of the most recent update as an input and returns the new request.
|
||||||
|
* @return A [Flow] of [Update] objects that represents the continuous stream of updates received.
|
||||||
*/
|
*/
|
||||||
fun TelegramBot.longPollingFlow(
|
fun TelegramBot.longPollingFlow(
|
||||||
timeoutSeconds: Seconds = 30,
|
|
||||||
exceptionsHandler: (ExceptionHandler<Unit>)? = null,
|
exceptionsHandler: (ExceptionHandler<Unit>)? = null,
|
||||||
allowedUpdates: List<String>? = ALL_UPDATES_LIST,
|
|
||||||
autoDisableWebhooks: Boolean = true,
|
autoDisableWebhooks: Boolean = true,
|
||||||
autoSkipTimeoutExceptions: Boolean = true,
|
autoSkipTimeoutExceptions: Boolean = true,
|
||||||
mediaGroupsDebounceTimeMillis: Long? = 1000L,
|
mediaGroupsDebounceTimeMillis: Long? = 1000L,
|
||||||
|
getUpdatesRequestCreator: (sinceUpdate: UpdateId?) -> GetUpdates
|
||||||
): Flow<Update> = channelFlow {
|
): Flow<Update> = channelFlow {
|
||||||
if (autoDisableWebhooks) {
|
if (autoDisableWebhooks) {
|
||||||
runCatchingLogging(logger = Log) {
|
runCatchingLogging(logger = Log) {
|
||||||
@@ -116,23 +124,23 @@ fun TelegramBot.longPollingFlow(
|
|||||||
while (isActive) {
|
while (isActive) {
|
||||||
runCatchingLogging(logger = Log) {
|
runCatchingLogging(logger = Log) {
|
||||||
execute(
|
execute(
|
||||||
GetUpdates(
|
getUpdatesRequestCreator(lastUpdateIdentifier ?.plus(1))
|
||||||
offset = lastUpdateIdentifier?.plus(1),
|
|
||||||
timeout = timeoutSeconds,
|
|
||||||
allowed_updates = allowedUpdates
|
|
||||||
)
|
|
||||||
).let { originalUpdates ->
|
).let { originalUpdates ->
|
||||||
updatesHandler(originalUpdates)
|
updatesHandler(originalUpdates)
|
||||||
}
|
}
|
||||||
}.onFailure { e ->
|
}.onFailure { e ->
|
||||||
runCatchingLogging(logger = Log) {
|
runCatchingLogging(logger = Log) {
|
||||||
val isHttpRequestTimeoutException =
|
val isHttpRequestTimeoutException =
|
||||||
e is HttpRequestTimeoutException || (e is CommonBotException && e.cause is HttpRequestTimeoutException)
|
e is ConnectTimeoutException || e is HttpRequestTimeoutException || (e is CommonBotException && e.cause is HttpRequestTimeoutException)
|
||||||
if (isHttpRequestTimeoutException && autoSkipTimeoutExceptions) {
|
if (isHttpRequestTimeoutException && autoSkipTimeoutExceptions) {
|
||||||
return@onFailure
|
return@onFailure
|
||||||
}
|
}
|
||||||
|
|
||||||
exceptionsHandler?.invoke(e)
|
exceptionsHandler?.invoke(e)
|
||||||
if (e is RequestException) {
|
|
||||||
|
// It seems some problems with internet connection. See https://github.com/InsanusMokrassar/ktgbotapi/issues/989
|
||||||
|
val isUnresolvedAddressException = e.isCausedUnresolvedAddressException()
|
||||||
|
if (e is RequestException || isUnresolvedAddressException) {
|
||||||
delay(1000L)
|
delay(1000L)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -141,6 +149,45 @@ fun TelegramBot.longPollingFlow(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Initiates a long polling flow for receiving updates continuously from the Telegram Bot API.
|
||||||
|
* This method provides a customized way to handle the retrieval of updates with options
|
||||||
|
* to configure timeouts, update types, exception handling, and media group processing.
|
||||||
|
*
|
||||||
|
* @param timeoutSeconds The maximum time in seconds for the server to wait for available updates
|
||||||
|
* before responding (default: `30`).
|
||||||
|
* @param exceptionsHandler An optional exception handler for managing exceptions that occur during the
|
||||||
|
* long polling process. If not provided, exceptions will pass through unhandled.
|
||||||
|
* @param allowedUpdates A list of the update types to retrieve. By default, retrieves all possible
|
||||||
|
* update types as defined in `ALL_UPDATES_LIST`.
|
||||||
|
* @param autoDisableWebhooks Whether the current webhook should be disabled automatically before starting the
|
||||||
|
* long polling flow (default: `true`).
|
||||||
|
* @param autoSkipTimeoutExceptions Determines if timeout-related exceptions should be automatically skipped
|
||||||
|
* during the polling process (default: `true`).
|
||||||
|
* @param mediaGroupsDebounceTimeMillis The debounce time in milliseconds for processing updates containing
|
||||||
|
* media groups. If set to `null`, media group handling is disabled (default: `1000L`).
|
||||||
|
* @return A Flow that emits Update objects representing the updates fetched from the Telegram Bot API.
|
||||||
|
*/
|
||||||
|
fun TelegramBot.longPollingFlow(
|
||||||
|
timeoutSeconds: Seconds = 30,
|
||||||
|
exceptionsHandler: (ExceptionHandler<Unit>)? = null,
|
||||||
|
allowedUpdates: List<String>? = ALL_UPDATES_LIST,
|
||||||
|
autoDisableWebhooks: Boolean = true,
|
||||||
|
autoSkipTimeoutExceptions: Boolean = true,
|
||||||
|
mediaGroupsDebounceTimeMillis: Long? = 1000L,
|
||||||
|
): Flow<Update> = longPollingFlow(
|
||||||
|
exceptionsHandler = exceptionsHandler,
|
||||||
|
autoDisableWebhooks = autoDisableWebhooks,
|
||||||
|
autoSkipTimeoutExceptions = autoSkipTimeoutExceptions,
|
||||||
|
mediaGroupsDebounceTimeMillis = mediaGroupsDebounceTimeMillis,
|
||||||
|
) {
|
||||||
|
GetUpdates(
|
||||||
|
offset = it,
|
||||||
|
timeout = timeoutSeconds,
|
||||||
|
allowed_updates = allowedUpdates
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param mediaGroupsDebounceTimeMillis Will be used for calling of [updateHandlerWithMediaGroupsAdaptation]. Pass null
|
* @param mediaGroupsDebounceTimeMillis Will be used for calling of [updateHandlerWithMediaGroupsAdaptation]. Pass null
|
||||||
* in case you wish to enable classic way of updates handling, but in that mode some media group messages can be
|
* in case you wish to enable classic way of updates handling, but in that mode some media group messages can be
|
||||||
|
|||||||
Reference in New Issue
Block a user