pinChatMessage - libtd-ktx

Kotlin Coroutines extensions for Telegram API TDLib (Telegram Database library)


libtd-ktx / kotlinx.telegram.coroutines / pinChatMessage

pinChatMessage

suspend fun TelegramFlow.pinChatMessage(chatId: Long, messageId: Long, disableNotification: Boolean): Unit

Suspend function, which pins a message in a chat; requires canPinMessages rights.

Parameters

chatId - Identifier of the chat.

messageId - Identifier of the new pinned message.

disableNotification - True, if there should be no notification about the pinned message.