UnpinChatMessageRequest

fun UnpinChatMessageRequest(chatId: Int, messageId: Int? = null)

Parameters

chatId

Unique identifier for the target chat or username of the target channel (in the format @channelusername)

messageId

Identifier of a message to unpin. If not specified, the most recent pinned message (by sending date) will be unpinned.