mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2025-09-05 08:09:21 +00:00
isAnonymous support
This commit is contained in:
@@ -58,6 +58,7 @@
|
|||||||
* `CommonGroupMessage` - just common message
|
* `CommonGroupMessage` - just common message
|
||||||
* `PrivateMessage` - works like previous `CommonMessageImpl`
|
* `PrivateMessage` - works like previous `CommonMessageImpl`
|
||||||
* Previous `CommonMessageImpl` safely renamed to `PrivateMessageImpl`
|
* Previous `CommonMessageImpl` safely renamed to `PrivateMessageImpl`
|
||||||
|
* New property `PromoteChatMember#isAnonymous`
|
||||||
* `API`:
|
* `API`:
|
||||||
* Extensions `TelegramBot#pinChatMessage` now support any `Chat` and `Message`s from any `Chat`
|
* Extensions `TelegramBot#pinChatMessage` now support any `Chat` and `Message`s from any `Chat`
|
||||||
* New extensions `TelegramBot#unpinAllChatMessages`
|
* New extensions `TelegramBot#unpinAllChatMessages`
|
||||||
|
@@ -14,6 +14,8 @@ data class PromoteChatMember(
|
|||||||
override val userId: UserId,
|
override val userId: UserId,
|
||||||
@SerialName(untilDateField)
|
@SerialName(untilDateField)
|
||||||
override val untilDate: TelegramDate? = null,
|
override val untilDate: TelegramDate? = null,
|
||||||
|
@SerialName(isAnonymousField)
|
||||||
|
private val isAnonymous: Boolean? = null,
|
||||||
@SerialName(canChangeInfoField)
|
@SerialName(canChangeInfoField)
|
||||||
private val canChangeInfo: Boolean? = null,
|
private val canChangeInfo: Boolean? = null,
|
||||||
@SerialName(canPostMessagesField)
|
@SerialName(canPostMessagesField)
|
||||||
|
Reference in New Issue
Block a user