Context of an callback query update originated from a business connection message

This is a subclass of BusinessCallbackQuery, so all its fields are also available.

Hierarchy (view full)

Implements

Constructors

Properties

_name: "business_callback_query" = ...
_peers: PeersIndex

Accessors

  • get data(): null | Uint8Array
  • Data that was contained in the callback button, if any

    Note that this field is defined by the client, and a bad client can send arbitrary data in this field.

    Returns null | Uint8Array

  • get dataStr(): null | string
  • Data that was contained in the callback button, if any, parsed as a UTF8 string

    Note that this field is defined by the client, and a bad client can send arbitrary data in this field.

    Returns null | string

Methods

  • Answer to this callback query

    Parameters

    • params: undefined | {
          alert?: boolean;
          cacheTime?: number;
          text?: string;
          url?: string;
      }

    Returns Promise<void>