messages.setGameScore
Use this method to set the score of the specified user in a game sent as a normal message (bots only).
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
edit_message | true | Nein | Set this flag if the game message should be automatically edited to include the current scoreboard |
force | true | Nein | Set this flag if the high score is allowed to decrease. This can be useful when fixing mistakes or banning cheaters |
peer | InputPeer | Ja | Unique identifier of target chat |
id | int | Ja | Identifier of the sent message |
user_id | InputUser | Ja | Benutzerkennung |
score | int | Ja | New score |
Antworten
Updates
MTProto RPC
- 400 · BOT_SCORE_NOT_MODIFIED — Die Punktzahl wurde nicht geändert.
- 400 · MESSAGE_ID_INVALID – Die angegebene Nachrichten-ID ist ungültig.
- 400 · PEER_ID_INVALID – Die angegebene Peer-ID ist ungültig.
- 400 · SCORE_INVALID – Der angegebene Spielstand ist ungültig.
- 400 · USER_BOT_REQUIRED — Diese Methode kann nur von einem Bot aufgerufen werden.