mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-11-25 19:48:43 +00:00
isAnonymous support in api
This commit is contained in:
parent
f835167f66
commit
eb879963f8
@ -62,6 +62,7 @@
|
|||||||
* `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`
|
||||||
|
* Extensions `TelegramBot#promoteChatMember` got `isAnonymous` parameter
|
||||||
|
|
||||||
## 0.29.4
|
## 0.29.4
|
||||||
|
|
||||||
|
@ -9,6 +9,7 @@ suspend fun TelegramBot.promoteChatMember(
|
|||||||
chatId: ChatIdentifier,
|
chatId: ChatIdentifier,
|
||||||
userId: UserId,
|
userId: UserId,
|
||||||
untilDate: TelegramDate? = null,
|
untilDate: TelegramDate? = null,
|
||||||
|
isAnonymous: Boolean? = null,
|
||||||
canChangeInfo: Boolean? = null,
|
canChangeInfo: Boolean? = null,
|
||||||
canPostMessages: Boolean? = null,
|
canPostMessages: Boolean? = null,
|
||||||
canEditMessages: Boolean? = null,
|
canEditMessages: Boolean? = null,
|
||||||
@ -22,6 +23,7 @@ suspend fun TelegramBot.promoteChatMember(
|
|||||||
chatId,
|
chatId,
|
||||||
userId,
|
userId,
|
||||||
untilDate,
|
untilDate,
|
||||||
|
isAnonymous,
|
||||||
canChangeInfo,
|
canChangeInfo,
|
||||||
canPostMessages,
|
canPostMessages,
|
||||||
canEditMessages,
|
canEditMessages,
|
||||||
@ -37,6 +39,7 @@ suspend fun TelegramBot.promoteChatMember(
|
|||||||
chat: PublicChat,
|
chat: PublicChat,
|
||||||
userId: UserId,
|
userId: UserId,
|
||||||
untilDate: TelegramDate? = null,
|
untilDate: TelegramDate? = null,
|
||||||
|
isAnonymous: Boolean? = null,
|
||||||
canChangeInfo: Boolean? = null,
|
canChangeInfo: Boolean? = null,
|
||||||
canPostMessages: Boolean? = null,
|
canPostMessages: Boolean? = null,
|
||||||
canEditMessages: Boolean? = null,
|
canEditMessages: Boolean? = null,
|
||||||
@ -49,6 +52,7 @@ suspend fun TelegramBot.promoteChatMember(
|
|||||||
chat.id,
|
chat.id,
|
||||||
userId,
|
userId,
|
||||||
untilDate,
|
untilDate,
|
||||||
|
isAnonymous,
|
||||||
canChangeInfo,
|
canChangeInfo,
|
||||||
canPostMessages,
|
canPostMessages,
|
||||||
canEditMessages,
|
canEditMessages,
|
||||||
@ -63,6 +67,7 @@ suspend fun TelegramBot.promoteChatMember(
|
|||||||
chatId: ChatId,
|
chatId: ChatId,
|
||||||
user: User,
|
user: User,
|
||||||
untilDate: TelegramDate? = null,
|
untilDate: TelegramDate? = null,
|
||||||
|
isAnonymous: Boolean? = null,
|
||||||
canChangeInfo: Boolean? = null,
|
canChangeInfo: Boolean? = null,
|
||||||
canPostMessages: Boolean? = null,
|
canPostMessages: Boolean? = null,
|
||||||
canEditMessages: Boolean? = null,
|
canEditMessages: Boolean? = null,
|
||||||
@ -75,6 +80,7 @@ suspend fun TelegramBot.promoteChatMember(
|
|||||||
chatId,
|
chatId,
|
||||||
user.id,
|
user.id,
|
||||||
untilDate,
|
untilDate,
|
||||||
|
isAnonymous,
|
||||||
canChangeInfo,
|
canChangeInfo,
|
||||||
canPostMessages,
|
canPostMessages,
|
||||||
canEditMessages,
|
canEditMessages,
|
||||||
@ -89,6 +95,7 @@ suspend fun TelegramBot.promoteChatMember(
|
|||||||
chat: PublicChat,
|
chat: PublicChat,
|
||||||
user: User,
|
user: User,
|
||||||
untilDate: TelegramDate? = null,
|
untilDate: TelegramDate? = null,
|
||||||
|
isAnonymous: Boolean? = null,
|
||||||
canChangeInfo: Boolean? = null,
|
canChangeInfo: Boolean? = null,
|
||||||
canPostMessages: Boolean? = null,
|
canPostMessages: Boolean? = null,
|
||||||
canEditMessages: Boolean? = null,
|
canEditMessages: Boolean? = null,
|
||||||
@ -101,6 +108,7 @@ suspend fun TelegramBot.promoteChatMember(
|
|||||||
chat.id,
|
chat.id,
|
||||||
user.id,
|
user.id,
|
||||||
untilDate,
|
untilDate,
|
||||||
|
isAnonymous,
|
||||||
canChangeInfo,
|
canChangeInfo,
|
||||||
canPostMessages,
|
canPostMessages,
|
||||||
canEditMessages,
|
canEditMessages,
|
||||||
|
Loading…
Reference in New Issue
Block a user