Raw.messages.SetInlineGameScore
Use this method to set the score of the specified user in a game sent as an inline message (bots only).
messages.setInlineGameScore#15ad9f64 flags:# edit_message:flags.0?true force:flags.1?true id:InputBotInlineMessageID user_id:InputUser score:int = Bool;
export namespace Raw {
export namespace messages {
export class SetInlineGameScore {
constructor(params: {
editMessage?: boolean;
force?: boolean;
id: Raw.TypeInputBotInlineMessageID;
userId: Raw.TypeInputUser;
score: number;
}) {}
}
}
}
This is a function constructor, you can use it as method when call invoke
Layer: 185
Constructor ID: 0x15ad9f64
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
id
: Raw.TypeInputBotInlineMessageIDId of the inline message
userId
: Raw.TypeInputUserUser identifier
score
: numberNew score