mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-11-22 16:23:48 +00:00
update changelog and several kdocs
This commit is contained in:
parent
e4f35c0eba
commit
63e864741e
@ -17,6 +17,13 @@
|
|||||||
* `EditChatInviteLinkSimple`
|
* `EditChatInviteLinkSimple`
|
||||||
* `EditChatInviteLinkWithLimitedMembers`
|
* `EditChatInviteLinkWithLimitedMembers`
|
||||||
* `EditChatInviteLinkWithJoinRequest`
|
* `EditChatInviteLinkWithJoinRequest`
|
||||||
|
* New `BotAction`: `ChooseStickerAction`
|
||||||
|
* Now requester will throw exceptions related to responses decoding directly instead of wrapping in
|
||||||
|
`RequestException`
|
||||||
|
*
|
||||||
|
* `BehaviourBuilder FSM`:
|
||||||
|
* **Incompatible changes** (now generics are used in state machines)
|
||||||
|
* `strictlyOn` and `onStateOrSubstate` now are part of `BehaviourContextWithFSMBuilder`
|
||||||
|
|
||||||
## 0.36.1
|
## 0.36.1
|
||||||
|
|
||||||
|
@ -5,6 +5,9 @@ import dev.inmo.tgbotapi.types.*
|
|||||||
import kotlinx.serialization.*
|
import kotlinx.serialization.*
|
||||||
import kotlinx.serialization.builtins.serializer
|
import kotlinx.serialization.builtins.serializer
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Represent a join request answer. See inheritors for more info
|
||||||
|
*/
|
||||||
sealed interface ChatJoinRequestAnswer : SimpleRequest<Boolean> {
|
sealed interface ChatJoinRequestAnswer : SimpleRequest<Boolean> {
|
||||||
val chatId: ChatIdentifier
|
val chatId: ChatIdentifier
|
||||||
val userId: UserId
|
val userId: UserId
|
||||||
@ -13,6 +16,10 @@ sealed interface ChatJoinRequestAnswer : SimpleRequest<Boolean> {
|
|||||||
get() = Boolean.serializer()
|
get() = Boolean.serializer()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Represent [approve](https://core.telegram.org/bots/api#approvechatjoinrequest) [ChatJoinRequestAnswer]. You may approve
|
||||||
|
* the requests retrieved in with [ChatJoinRequest] (in [dev.inmo.tgbotapi.types.update.ChatJoinRequestUpdate])
|
||||||
|
*/
|
||||||
@Serializable
|
@Serializable
|
||||||
data class ApproveChatJoinRequest(
|
data class ApproveChatJoinRequest(
|
||||||
@SerialName(chatIdField)
|
@SerialName(chatIdField)
|
||||||
@ -26,6 +33,10 @@ data class ApproveChatJoinRequest(
|
|||||||
override fun method(): String = "approveChatJoinRequest"
|
override fun method(): String = "approveChatJoinRequest"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Represent [decline](https://core.telegram.org/bots/api#declinechatjoinrequest) [ChatJoinRequestAnswer]. You may approve
|
||||||
|
* the requests retrieved in with [ChatJoinRequest] (in [dev.inmo.tgbotapi.types.update.ChatJoinRequestUpdate])
|
||||||
|
*/
|
||||||
@Serializable
|
@Serializable
|
||||||
data class DeclineChatJoinRequest(
|
data class DeclineChatJoinRequest(
|
||||||
@SerialName(chatIdField)
|
@SerialName(chatIdField)
|
||||||
|
Loading…
Reference in New Issue
Block a user