ChatKtx.pinMessage - libtd-ktx

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


libtd-ktx / kotlinx.telegram.extensions / ChatKtx / pinMessage

pinMessage

open suspend fun Chat.pinMessage(messageId: Long, disableNotification: Boolean): Unit

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

Parameters

messageId - Identifier of the new pinned message.

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