tgify.js - v1.3.0
    Preparing search index...

    Interface LaunchOptions

    interface LaunchOptions {
        allowedUpdates?: UpdateType[];
        dropPendingUpdates?: boolean;
        webhook?: {
            cb?: RequestListener<typeof IncomingMessage, typeof ServerResponse>;
            certificate?: InputFile;
            domain: string;
            hookPath?: string;
            host?: string;
            ipAddress?: string;
            local?: boolean;
            maxConnections?: number;
            path?: string;
            port?: number;
            secretToken?: string;
            tlsOptions?: TlsOptions;
        };
    }
    Index

    Properties

    allowedUpdates?: UpdateType[]

    List the types of updates you want your bot to receive

    dropPendingUpdates?: boolean
    webhook?: {
        cb?: RequestListener<typeof IncomingMessage, typeof ServerResponse>;
        certificate?: InputFile;
        domain: string;
        hookPath?: string;
        host?: string;
        ipAddress?: string;
        local?: boolean;
        maxConnections?: number;
        path?: string;
        port?: number;
        secretToken?: string;
        tlsOptions?: TlsOptions;
    }

    Configuration options for when the bot is run via webhooks

    Type Declaration

    • Optionalcb?: RequestListener<typeof IncomingMessage, typeof ServerResponse>
    • Optionalcertificate?: InputFile

      Upload your public key certificate so that the root certificate in use can be checked. See self-signed guide for details.

    • domain: string

      Domain for webhook.

    • OptionalhookPath?: string

      Webhook url path; will be automatically generated if not specified

      Pass path instead

    • Optionalhost?: string
    • OptionalipAddress?: string

      The fixed IP address which will be used to send webhook requests instead of the IP address resolved through DNS

    • Optionallocal?: boolean

      Local bot api is used

    • OptionalmaxConnections?: number

      Maximum allowed number of simultaneous HTTPS connections to the webhook for update delivery, 1-100. Defaults to 40. Use lower values to limit the load on your bot's server, and higher values to increase your bot's throughput.

    • Optionalpath?: string

      Webhook url path; will be automatically generated if not specified

    • Optionalport?: number
    • OptionalsecretToken?: string

      A secret token to be sent in a header “X-Telegram-Bot-Api-Secret-Token” in every webhook request. 1-256 characters. Only characters A-Z, a-z, 0-9, _ and - are allowed. The header is useful to ensure that the request comes from a webhook set by you.

    • OptionaltlsOptions?: TlsOptions

      TLS server options. Omit to use http.