Function createClient

  • Create a Client.

    Parameters

    Returns Client

    Example

    const client = createClient({ token: "xyz" });
    const clientFromBaseUrl = createClient({ baseUrl: "https://api.telegram.org/botxyz" });
    const clientWithCustomFetch = createClient({ token: "xyz", fetch: customFetchFunction });