Game class
This object represents a game. Use BotFather to create and edit games, their short names will act as unique identifiers.
Constructors
Properties
- animation → Animation?
-
Optional. Animation that will be displayed in the game message in chats. Upload via BotFather.
final
- description → String
-
Description of the game
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
photo
→ List<
PhotoSize> -
Photo that will be displayed in the game message in chats.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- text → String?
-
Optional. Brief description of the game or high scores included in the game message. Can be automatically edited to include current high scores for the game when the bot calls setGameScore, or manually edited using editMessageText. 0-4096 characters.
final
-
textEntities
→ List<
MessageEntity> ? -
Optional. Special entities that appear in text, such as usernames, URLs, bot commands, etc.
final
- title → String
-
Title of the game
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Serializes a Game object to a JSON map
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited