SendGameRequest

data class SendGameRequest(chat_id: Long, game_short_name: String, disable_notification: Boolean?, reply_to_message_id: Long?, allow_sending_without_reply: Boolean?, reply_markup: InlineKeyboardMarkup?) : TelegramRequest

Use this method to send a game. On success, the sent Message is returned.

Constructors

SendGameRequest
Link copied to clipboard
fun SendGameRequest(chat_id: Long, game_short_name: String, disable_notification: Boolean? = null, reply_to_message_id: Long? = null, allow_sending_without_reply: Boolean? = null, reply_markup: InlineKeyboardMarkup? = null)

Properties

allow_sending_without_reply
Link copied to clipboard
val allow_sending_without_reply: Boolean? = null
Pass True, if the message should be sent even if the specified replied-to message is not found
chat_id
Link copied to clipboard
val chat_id: Long
Unique identifier for the target chat
disable_notification
Link copied to clipboard
val disable_notification: Boolean? = null
Sends the message
game_short_name
Link copied to clipboard
val game_short_name: String
Short name of the game, serves as the unique identifier for the game.
reply_markup
Link copied to clipboard
val reply_markup: InlineKeyboardMarkup? = null
A JSON-serialized object for an
reply_to_message_id
Link copied to clipboard
val reply_to_message_id: Long? = null
If the message is a reply, ID of the original message