Skip to content

GramIO API Reference / gramio/dist / SetGameScoreParams

Interface: SetGameScoreParams

Defined in: @gramio/types/out/params.d.ts:4980

Params object for setGameScore method

Properties

PropertyTypeDescriptionDefined in
chat_id?numberRequired if inline_message_id is not specified. Unique identifier for the target chat.@gramio/types/out/params.d.ts:5000
disable_edit_message?booleanPass True if the game message should not be automatically edited to include the current scoreboard@gramio/types/out/params.d.ts:4996
force?booleanPass True if the high score is allowed to decrease. This can be useful when fixing mistakes or banning cheaters.@gramio/types/out/params.d.ts:4992
inline_message_id?stringRequired if chat_id and message_id are not specified. Identifier of the inline message.@gramio/types/out/params.d.ts:5008
message_id?numberRequired if inline_message_id is not specified. Identifier of the sent message.@gramio/types/out/params.d.ts:5004
scorenumberNew score, must be non-negative@gramio/types/out/params.d.ts:4988
user_idnumberUser identifier@gramio/types/out/params.d.ts:4984