ultra-telegram-framework
    Preparing search index...
    Index

    Constructors

    Methods

    • Get data for high score tables in a game.

      Parameters

      • userId: number

        User ID

      • Optionaloptions: Omit<
            GetGameHighScoresParams,
            "chat_id"
            | "message_id"
            | "user_id"
            | "inline_message_id",
        >

        Additional parameters

      Returns Promise<GameHighScore[]>

      Promise<GameHighScore[]>

    • Send a game to the current chat.

      Parameters

      • gameShortName: string

        Short name of the game, serves as the unique identifier for the game on Telegram

      • Optionaloptions: Omit<SendGameParams, "chat_id" | "game_short_name">

        Additional parameters

      Returns Promise<Message>

      Promise<Message>

    • Set the score of the specified user in a game.

      Parameters

      • userId: number

        User ID

      • score: number

        New score

      • Optionaloptions: Omit<
            SetGameScoreParams,
            "chat_id"
            | "message_id"
            | "user_id"
            | "inline_message_id"
            | "score",
        >

        Additional parameters

      Returns Promise<boolean | Message>

      Promise<Message | boolean>