import { tl } from '../../../tl/index.js'; import { ITelegramClient } from '../../client.types.js'; import { InputMessageId, InputPeerLike, Message } from '../../types/index.js'; /** * Set a score of a user in a game * * @param params * @returns The modified message */ export declare function setGameScore(client: ITelegramClient, params: InputMessageId & { /** ID of the user who has scored */ userId: InputPeerLike; /** The new score (must be >0) */ score: number; /** * When `true`, the game message will not be modified * to include the new score */ noEdit?: boolean; /** * Whether to allow user's score to decrease. * This can be useful when fixing mistakes or banning cheaters */ force?: boolean; /** * Whether to dispatch the edit message event * to the client's update handler. */ shouldDispatch?: true; }): Promise; /** * Set a score of a user in a game contained in * an inline message * * @param params */ export declare function setInlineGameScore(client: ITelegramClient, params: { /** ID of the inline message */ messageId: string | tl.TypeInputBotInlineMessageID; /** ID of the user who has scored */ userId: InputPeerLike; /** The new score (must be >0) */ score: number; /** * When `true`, the game message will not be modified * to include the new score */ noEdit?: boolean; /** * Whether to allow user's score to decrease. * This can be useful when fixing mistakes or banning cheaters */ force?: boolean; }): Promise;