Skip to content

GramIO API Reference / gramio/dist / SetGameScoreParams

Interface: SetGameScoreParams

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

Params object for setGameScore method

Properties

PropertyTypeDescriptionDefined in
chat_id?numberRequired if inline_message_id is not specified. Unique identifier for the target chatgramio/node_modules/@gramio/types/out/params.d.ts:4365
disable_edit_message?booleanPass True if the game message should not be automatically edited to include the current scoreboardgramio/node_modules/@gramio/types/out/params.d.ts:4361
force?booleanPass True if the high score is allowed to decrease. This can be useful when fixing mistakes or banning cheatersgramio/node_modules/@gramio/types/out/params.d.ts:4357
inline_message_id?stringRequired if chat_id and message_id are not specified. Identifier of the inline messagegramio/node_modules/@gramio/types/out/params.d.ts:4373
message_id?numberRequired if inline_message_id is not specified. Identifier of the sent messagegramio/node_modules/@gramio/types/out/params.d.ts:4369
scorenumberNew score, must be non-negativegramio/node_modules/@gramio/types/out/params.d.ts:4353
user_idnumberUser identifiergramio/node_modules/@gramio/types/out/params.d.ts:4349