messages.setInlineGameScore #

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

Layer 223

boolFalse#bc799737 = Bool;
boolTrue#997275b5 = Bool;
---functions---
messages.setInlineGameScore#15ad9f64 flags:# edit_message:flags.0?true force:flags.1?true id:InputBotInlineMessageID user_id:InputUser score:int = Bool;

Parameters #

NameTypeDescription
flags#Flags, see TL conditional fields
edit_messageflags.0?trueSet this flag if the game message should be automatically edited to include the current scoreboard
forceflags.1?trueSet this flag if the high score is allowed to decrease. This can be useful when fixing mistakes or banning cheaters
idInputBotInlineMessageIDID of the inline message
user_idInputUserUser identifier
scoreintNew score

Result #

Bool

Only bots can use this method #

Possible errors #

CodeTypeDescription
400MESSAGE_ID_INVALIDThe provided message id is invalid.
400USER_BOT_REQUIREDThis method can only be called by a bot.