Interface ResolvedTelegramClientOptionsInternal

Resolved options for the Telegram client. This is the "client options" after normalizing them with normalizeOptions.

interface ResolvedTelegramClientOptions {
    baseUrl: string;
    fetch?: ((input, init?) => Promise<Response>);
}

Properties

Properties

baseUrl: string

The base URL of the Telegram API. Contains the token.

fetch?: ((input, init?) => Promise<Response>)

A custom fetch function. Defaults to the global fetch.

Type declaration

    • (input, init?): Promise<Response>
    • Parameters

      • input: RequestInfo | URL
      • Optional init: RequestInit

      Returns Promise<Response>