SetGameScore

class pyrogram.raw.functions.messages.SetGameScore

Use this method to set the score of the specified user in a game sent as a normal message (bots only).

Details
  • Layer: 126

  • ID: 0x8ef8ecc0

Parameters
  • peer (InputPeer) – Unique identifier of target chat.

  • id (int 32-bit) – Identifier of the sent message.

  • user_id (InputUser) – User identifier.

  • score (int 32-bit) – New score.

  • edit_message (bool, optional) – Set this flag if the game message should be automatically edited to include the current scoreboard.

  • force (bool, optional) – Set this flag if the high score is allowed to decrease. This can be useful when fixing mistakes or banning cheaters.

Returns

Updates – Object which is perceived by the client without a call on its part when an event occurs.