add docs for PinChatMessage

This commit is contained in:
InsanusMokrassar 2020-11-04 23:41:19 +06:00
parent 60d5581ec6
commit 0886781d61
1 changed files with 5 additions and 0 deletions

View File

@ -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)