SetGameScore class

Inheritance

Constructors

SetGameScore({int chatId, int messageId, bool editMessage, int userId, int score, bool force})
Updates the game score of the specified user in the game; for bots only
SetGameScore.fromJson(Map<String, dynamic> json)
Parse from a json

Properties

chatId int
chatId The chat to which the message with the game belongs
read / write
editMessage bool
editMessage True, if the message should be edited
read / write
extra ↔ dynamic
callback sign
read / write
force bool
force Pass true to update the score even if it decreases. If the score is 0, the user will be deleted from the high score table
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
messageId int
messageId Identifier of the message
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
score int
score The new score
read / write
userId int
userId User identifier
read / write

Methods

getConstructor() String
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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

Constants

CONSTRUCTOR → const String
'setGameScore'