From 0886781d61912617d86e21aa81dfb6257d595fa5 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Wed, 4 Nov 2020 23:41:19 +0600 Subject: [PATCH] add docs for PinChatMessage --- .../dev/inmo/tgbotapi/requests/chat/modify/PinChatMessage.kt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/requests/chat/modify/PinChatMessage.kt b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/requests/chat/modify/PinChatMessage.kt index e3ea186dcc..af3e88920c 100644 --- a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/requests/chat/modify/PinChatMessage.kt +++ b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/requests/chat/modify/PinChatMessage.kt @@ -6,6 +6,11 @@ import dev.inmo.tgbotapi.types.* import kotlinx.serialization.* import kotlinx.serialization.builtins.serializer +/** + * 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. + */ @Serializable data class PinChatMessage ( @SerialName(chatIdField)