InlineQueryResultGame class

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.

https://core.telegram.org/bots/api#inlinequeryresultgame

Implemented types
Annotations
  • @JsonSerializable.new(includeIfNull: false)

Constructors

InlineQueryResultGame({String? type = 'game', String? id, String? gameShortName, InlineKeyboardMarkup? replyMarkup})
InlineQueryResultGame.fromJson(Map<String, dynamic> json)
factory

Properties

gameShortName ↔ String?
Short name of the game.
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
id ↔ String?
Unique identifier for this result, 1-64 bytes.
getter/setter pairoverride
replyMarkup ↔ InlineKeyboardMarkup?
Optional. Inline keyboard attached to the message.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
type ↔ String?
Type of the result, must be game.
getter/setter pairoverride

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
override
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited