OptionalallowedOptionaldropOptionalwebhookConfiguration options for when the bot is run via webhooks
Optionalcb?: RequestListener<typeof IncomingMessage, typeof ServerResponse>Optionalcertificate?: InputFileUpload your public key certificate so that the root certificate in use can be checked. See self-signed guide for details.
Domain for webhook.
OptionalhookPath?: stringWebhook url path; will be automatically generated if not specified
Optionalhost?: stringOptionalipAddress?: stringThe fixed IP address which will be used to send webhook requests instead of the IP address resolved through DNS
Optionallocal?: booleanLocal bot api is used
OptionalmaxConnections?: numberMaximum 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?: stringWebhook url path; will be automatically generated if not specified
Optionalport?: numberOptionalsecretToken?: stringA 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?: TlsOptionsTLS server options. Omit to use http.
List the types of updates you want your bot to receive