Skip to content

pin chat message

Alexey Kravtsov edited this page May 19, 2020 · 1 revision

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.

Clone this wiki locally