Documentation - v0.27.0
    Preparing search index...
    • Set a score of a user in a game

      Parameters

      • client: ITelegramClient
      • params: InputMessageId & {
            force?: boolean;
            noEdit?: boolean;
            score: number;
            shouldDispatch?: true;
            userId: InputPeerLike;
        }
        • Optionalforce?: boolean

          Whether to allow user's score to decrease. This can be useful when fixing mistakes or banning cheaters

        • OptionalnoEdit?: boolean

          When true, the game message will not be modified to include the new score

        • score: number

          The new score (must be >0)

        • OptionalshouldDispatch?: true

          Whether to dispatch the edit message event to the client's update handler.

        • userId: InputPeerLike

          ID of the user who has scored

      Returns Promise<Message>

      The modified message