mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-12-22 16:47:13 +00:00
update changelog and several kdocs
This commit is contained in:
parent
e4f35c0eba
commit
63e864741e
@ -17,6 +17,13 @@
|
||||
* `EditChatInviteLinkSimple`
|
||||
* `EditChatInviteLinkWithLimitedMembers`
|
||||
* `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
|
||||
|
||||
|
@ -5,6 +5,9 @@ import dev.inmo.tgbotapi.types.*
|
||||
import kotlinx.serialization.*
|
||||
import kotlinx.serialization.builtins.serializer
|
||||
|
||||
/**
|
||||
* Represent a join request answer. See inheritors for more info
|
||||
*/
|
||||
sealed interface ChatJoinRequestAnswer : SimpleRequest<Boolean> {
|
||||
val chatId: ChatIdentifier
|
||||
val userId: UserId
|
||||
@ -13,6 +16,10 @@ sealed interface ChatJoinRequestAnswer : SimpleRequest<Boolean> {
|
||||
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
|
||||
data class ApproveChatJoinRequest(
|
||||
@SerialName(chatIdField)
|
||||
@ -26,6 +33,10 @@ data class 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
|
||||
data class DeclineChatJoinRequest(
|
||||
@SerialName(chatIdField)
|
||||
|
Loading…
Reference in New Issue
Block a user