Documentation - v0.31.0
    Preparing search index...

    Function getEphemeralCallbackAnswer

    • Request a callback answer from a bot for an ephemeral message, i.e. click an inline button that contains data.

      Parameters

      • client: ITelegramClient
      • params: {
            chatId: InputPeerLike;
            data?: string | Uint8Array<ArrayBufferLike>;
            fireAndForget?: boolean;
            messageId: number;
            timeout?: number;
        }
        • chatId: InputPeerLike

          Chat where the ephemeral message was sent

        • Optionaldata?: string | Uint8Array<ArrayBufferLike>

          Data contained in the button

        • OptionalfireAndForget?: boolean

          Whether to "fire and forget" this request, in which case the promise will resolve as soon as the request is sent with an empty response.

          Note: any errors will be silently ignored.

        • messageId: number

          ID of the ephemeral message containing the button

        • Optionaltimeout?: number

          Timeout for the query in ms.

          10000 (10 sec)

      Returns Promise<RawBotCallbackAnswer>