InlineQueryResultGame

data class InlineQueryResultGame(id: String, gameShortName: String, replyMarkup: InlineKeyboardMarkup?, type: String) : InlineQueryResult

Represents a Game. Note: This will only work in Telegram versions released after October 1, 2016. Older clients will not display any inline results if a game result is among them.

Parameters

id

Unique identifier for this result, 1-64 bytes

gameShortName

Short name of the game

replyMarkup

Optional. Inline keyboard attached to the message

type

Type of the result, must be game

Constructors

InlineQueryResultGame
Link copied to clipboard
common
fun InlineQueryResultGame(id: String, gameShortName: String, replyMarkup: InlineKeyboardMarkup? = null, type: String)
Unique identifier for this result, 1-64 bytes

Functions

component1
Link copied to clipboard
common
operator fun component1(): String
component2
Link copied to clipboard
common
operator fun component2(): String
component3
Link copied to clipboard
common
operator fun component3(): InlineKeyboardMarkup?
component4
Link copied to clipboard
common
operator fun component4(): String
copy
Link copied to clipboard
common
fun copy(id: String, gameShortName: String, replyMarkup: InlineKeyboardMarkup? = null, type: String): InlineQueryResultGame
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

gameShortName
Link copied to clipboard
common
val gameShortName: String
Short name of the game
id
Link copied to clipboard
common
val id: String
Unique identifier for this result, 1-64 bytes
replyMarkup
Link copied to clipboard
common
val replyMarkup: InlineKeyboardMarkup? = null
Optional.
type
Link copied to clipboard
common
val type: String
Type of the result, must be game