• Send an answer to a callback query.

    Parameters

    • client: ITelegramClient
    • queryId: Long | CallbackQuery

      ID of the callback query, or the query itself

    • Optionalparams: {
          alert?: boolean;
          cacheTime?: number;
          text?: string;
          url?: string;
      }

      Parameters of the answer

      • Optionalalert?: boolean

        Whether to show an alert in the middle of the screen instead of a notification at the top of the screen.

        false
        
      • OptionalcacheTime?: number

        Maximum amount of time in seconds for which this result can be cached by the client (not server!).

        0
        
      • Optionaltext?: string

        Text of the notification (0-200 chars).

        If not set, nothing will be displayed

      • Optionalurl?: string

        URL that the client should open.

        If this was a button containing a game, you can provide arbitrary link to your game. Otherwise, you can only use links in the format t.me/your_bot?start=... that open your bot with a deep-link parameter.

    Returns Promise<void>