mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-12-02 06:50:06 +00:00
4.6 KiB
4.6 KiB
//docs/dev.inmo.tgbotapi.requests.chat.modify/PinChatMessage
PinChatMessage
[common] data class PinChatMessage(chatId: ChatIdentifier, messageId: MessageIdentifier, disableNotification: Boolean) : ChatRequest, SimpleRequest<Boolean> , MessageAction, DisableNotification
Use this method to add a message to the list of pinned messages in a chat. If the chat is not a private chat, the bot must be an administrator in the chat for this to work and must have the 'can_pin_messages' admin right in a supergroup or 'can_edit_messages' admin right in a channel.
Constructors
PinChatMessage | [common] fun PinChatMessage(chatId: ChatIdentifier, messageId: MessageIdentifier, disableNotification: Boolean = false) |
Functions
Name | Summary |
---|---|
method | [common] Content open override fun method(): String |
Properties
Name | Summary |
---|---|
chatId | [common] open override val chatId: ChatIdentifier |
disableNotification | [common] open override val disableNotification: Boolean = false |
messageId | [common] open override val messageId: MessageIdentifier |
requestSerializer | [common] open override val requestSerializer: <*> |
resultDeserializer | [common] open override val resultDeserializer: <Boolean> |