ForwardMessageRequest

data class ForwardMessageRequest(chatId: Int, fromChatId: Int, disableNotification: Boolean, messageId: Int)

Request body for forwardMessage

Parameters

chatId

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

fromChatId

Unique identifier for the chat where the original message was sent (or channel username in the format @channelusername)

disableNotification

Sends the message silently. Users will receive a notification with no sound.

messageId

Message identifier in the chat specified in from_chat_id

Constructors

ForwardMessageRequest
Link copied to clipboard
common
fun ForwardMessageRequest(chatId: Int, fromChatId: Int, disableNotification: Boolean = false, messageId: Int)
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
component4
Link copied to clipboard
common
operator fun component4(): Int
copy
Link copied to clipboard
common
fun copy(chatId: Int, fromChatId: Int, disableNotification: Boolean = false, messageId: Int): ForwardMessageRequest
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
Sends the message silently.
fromChatId
Link copied to clipboard
common
val fromChatId: Int
Unique identifier for the chat where the original message was sent (or channel username in the format @channelusername)
messageId
Link copied to clipboard
common
val messageId: Int
Message identifier in the chat specified in from_chat_id