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 undefinedSet this flag if the game message should be automatically edited to include the current scoreboard
force
: boolean or undefinedSet this flag if the high score is allowed to decrease. this can be useful when fixing mistakes or banning cheaters
peer
: Raw.TypeInputPeerUnique identifier of target chat
id
: numberIdentifier of the sent message
userId
: Raw.TypeInputUserUser identifier
score
: numberNew score