UnpinChatMessageRequest

data class UnpinChatMessageRequest(chatId: Int, messageId: Int?)

Request body for unpinChatMessage

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.

Constructors

UnpinChatMessageRequest
Link copied to clipboard
common
fun UnpinChatMessageRequest(chatId: Int, messageId: Int? = null)
Unique identifier for the target chat or username of the target channel (in the format @channelusername)

Functions

component1
Link copied to clipboard
common
operator fun component1(): Int
component2
Link copied to clipboard
common
operator fun component2(): Int?
copy
Link copied to clipboard
common
fun copy(chatId: Int, messageId: Int? = null): UnpinChatMessageRequest
equals
Link copied to clipboard
common
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
common
open override fun hashCode(): Int
toString
Link copied to clipboard
common
open override fun toString(): String

Properties

chatId
Link copied to clipboard
common
val chatId: Int
Unique identifier for the target chat or username of the target channel (in the format @channelusername)
messageId
Link copied to clipboard
common
val messageId: Int? = null
Identifier of a message to unpin.