Documentation - v0.27.1
    Preparing search index...

    Class InlineQueryContext

    Context of an inline query update.

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

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Accessors

    Methods

    Constructors

    Properties

    _name: "inline_query" = ...
    _peers: PeersIndex

    Accessors

    • get peerType(): PeerType | null

      Peer type from which this query was sent.

      Can be:

      • bot: Query was sent in this bot's PM
      • user: Query was sent in somebody's PM
      • group: Query was sent in a legacy group
      • supergroup: Query was sent in a supergroup
      • channel: Query was sent in a channel
      • null, in case this information is not available

      Returns PeerType | null

    Methods

    • Answer to this inline query

      Parameters

      • ...params: [
            results: InputInlineResult[],
            params?: {
                cacheTime?: number;
                gallery?: boolean;
                nextOffset?: string;
                private?: boolean;
                switchPm?: { parameter: string; text: string };
                switchWebview?: { text: string; url: string };
            },
        ]

      Returns Promise<void>