PinChatMessageRequest

data class PinChatMessageRequest(chatId: Int, messageId: Int, disableNotification: Boolean)

Request body for pinChatMessage

Parameters

chatId

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

messageId

Identifier of a message to pin

disableNotification

Pass True, if it is not necessary to send a notification to all chat members about the new pinned message. Notifications are always disabled in channels and private chats.

Constructors

PinChatMessageRequest
Link copied to clipboard
common
fun PinChatMessageRequest(chatId: Int, messageId: Int, disableNotification: Boolean = false)
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
component3
Link copied to clipboard
common
operator fun component3(): Boolean
copy
Link copied to clipboard
common
fun copy(chatId: Int, messageId: Int, disableNotification: Boolean = false): PinChatMessageRequest
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)
disableNotification
Link copied to clipboard
common
val disableNotification: Boolean = false
Pass True, if it is not necessary to send a notification to all chat members about the new pinned message.
messageId
Link copied to clipboard
common
val messageId: Int
Identifier of a message to pin