//[docs](../../../index.md)/[dev.inmo.tgbotapi.requests.chat.modify](../index.md)/[PinChatMessage](index.md)
# PinChatMessage
[common] data class [PinChatMessage](index.md)(**chatId**: [ChatIdentifier](../../dev.inmo.tgbotapi.types/-chat-identifier/index.md), **messageId**: [MessageIdentifier](../../dev.inmo.tgbotapi.types/index.md#%5Bdev.inmo.tgbotapi.types%2FMessageIdentifier%2F%2F%2FPointingToDeclaration%2F%5D%2FClasslikes%2F625018081), **disableNotification**: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)) : [ChatRequest](../../dev.inmo.tgbotapi.CommonAbstracts.types/-chat-request/index.md), [SimpleRequest](../../dev.inmo.tgbotapi.requests.abstracts/-simple-request/index.md)<[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)> , [MessageAction](../../dev.inmo.tgbotapi.CommonAbstracts.types/-message-action/index.md), [DisableNotification](../../dev.inmo.tgbotapi.CommonAbstracts.types/-disable-notification/index.md)
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](-pin-chat-message.md)| [common] fun [PinChatMessage](-pin-chat-message.md)(chatId: [ChatIdentifier](../../dev.inmo.tgbotapi.types/-chat-identifier/index.md), messageId: [MessageIdentifier](../../dev.inmo.tgbotapi.types/index.md#%5Bdev.inmo.tgbotapi.types%2FMessageIdentifier%2F%2F%2FPointingToDeclaration%2F%5D%2FClasslikes%2F625018081), disableNotification: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) = false)
|
## Functions
| Name | Summary |
|---|---|
| [method](method.md)| [common]
Content
open override fun [method](method.md)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)
|
## Properties
| Name | Summary |
|---|---|
| [chatId](chat-id.md)| [common] open override val [chatId](chat-id.md): [ChatIdentifier](../../dev.inmo.tgbotapi.types/-chat-identifier/index.md)
|
| [disableNotification](disable-notification.md)| [common] open override val [disableNotification](disable-notification.md): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) = false
|
| [messageId](message-id.md)| [common] open override val [messageId](message-id.md): [MessageIdentifier](../../dev.inmo.tgbotapi.types/index.md#%5Bdev.inmo.tgbotapi.types%2FMessageIdentifier%2F%2F%2FPointingToDeclaration%2F%5D%2FClasslikes%2F625018081)
|
| [requestSerializer](request-serializer.md)| [common] open override val [requestSerializer](request-serializer.md): <*>
|
| [resultDeserializer](result-deserializer.md)| [common] open override val [resultDeserializer](result-deserializer.md): <[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)>
|