SetGameScore class

Updates the game score of the specified user in the game; for bots only.

Returns Message.

Inheritance
Available Extensions

Constructors

SetGameScore({required int chat_id, required int message_id, required bool edit_message, required int user_id, required int score, required bool force, int? extra, int? clientId})
Updates the game score of the specified user in the game; for bots only

Properties

chat_id int
The chat to which the message with the game belongs.
read / write
clientId int?
TDLib client instance identifier, for which the response was received.
read / writeoverride
edit_message bool
Pass true to edit the game message to include the current scoreboard.
read / write
extra int?
Request identifier. Must be non-zero.
read / writeoverride
force bool
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-onlyinherited
message_id int
Identifier of the message.
read / write
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
score int
The new score.
read / write
user_id int
User identifier.
read / write

Methods

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

Operators

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

Static Methods

fromMap(Map<String, dynamic>? _map) SetGameScore?
Construct from Map.
override

Constants

CONSTRUCTOR → const String
@type
"setGameScore"