Raw.messages.SetGameScore

Raw.messages.SetGameScore

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

messages.setGameScore#8ef8ecc0 flags:# edit_message:flags.0?true force:flags.1?true peer:InputPeer id:int user_id:InputUser score:int = Updates;
export namespace Raw {
  export namespace messages {
    export class SetGameScore {
      constructor(params: {
        editMessage?: boolean;
        force?: boolean;
        peer: Raw.TypeInputPeer;
        id: number;
        userId: Raw.TypeInputUser;
        score: number;
      }) {}
    }
  }
}

This is a function constructor, you can use it as method when call invoke

Layer: 185
Constructor ID: 0x8ef8ecc0

Property

  • editMessage : boolean or undefined

    Set this flag if the game message should be automatically edited to include the current scoreboard

  • force : boolean or undefined

    Set this flag if the high score is allowed to decrease. this can be useful when fixing mistakes or banning cheaters

  • peer : Raw.TypeInputPeer

    Unique identifier of target chat

  • id : number

    Identifier of the sent message

  • userId : Raw.TypeInputUser

    User identifier

  • score : number

    New score

Results

Raw.TypeUpdates

Bots can use