List the types of updates you want your bot to receive
Configuration options for when the bot is run via webhooks
Optionalcb?: RequestListener<typeof IncomingMessage, typeof ServerResponse>
Upload your public key certificate so that the root certificate in use can be checked. See self-signed guide for details.
Public domain for webhook.
Webhook url path; will be automatically generated if not specified
The fixed IP address which will be used to send webhook requests instead of the IP address resolved through DNS
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.
A secret token to be sent in a header
“X-Telegram-Bot-Api-Secret-Token” in every webhook request.
1-256 characters. Only characters
- are allowed.
The header is useful to ensure that the request comes from a webhook set by you.
TLS server options. Omit to use http.
Generated using TypeDoc