SetGameScore class final
Updates the game score of the specified user in the game; for bots only
Returns Message.
- Inheritance
-
- Object
- TdFunction<
Message> - SetGameScore
Constructors
Properties
- canBeCalledSynchronously → bool
-
Whether TDLib documents this request as callable through
td_execute.no setterinherited - chatId → int
-
The chat to which the message with the game belongs
final
- editMessage → bool
-
Pass true to edit the game message to include the current scoreboard
final
- 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
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- messageId → int
-
Identifier of the message
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- score → int
-
The new score
final
- userId → int
-
User identifier
final
Methods
-
copyWith(
{int? chatId, int? messageId, bool? editMessage, int? userId, int? score, bool? force}) → SetGameScore -
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g.
field: () => nullto clear it. -
getConstructor(
) → String -
TDLib function name, e.g.
getMe.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
[dynamic extra]) → Map< String, dynamic> -
Converts this request to TDLib JSON, tagged with
extraif given.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- CONSTRUCTOR → const String
- TDLib type name.