MessageKtx.pinChat - libtd-ktx

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


libtd-ktx / kotlinx.telegram.extensions / MessageKtx / pinChat

pinChat

open suspend fun Message.pinChat(chatId: Long, disableNotification: Boolean): Unit

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

Parameters

chatId - Identifier of the chat.

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