SetWebhook
Represents a request for setting a webhook in Telegram's Bot API. A webhook allows Telegram to send updates directly to the bot via an HTTPS POST request to the provided URL, enabling real-time interaction.
Throws
if the provided maxAllowedConnections value is outside the permitted range (both allowedConnectionsLength and allowedConnectionsWithLocalServerLength)
Properties
A list of update types the bot will receive. Defaults to all update types.
An optional path to a public certificate file for webhook verification. Use only if a self-signed certificate is applied.
If true, all pending updates will be dropped when the webhook is changed.
The maximum number of simultaneous HTTPS connections allowed to the webhook for delivering updates. You may use value outside of allowedConnectionsLength, but be sure that it is in allowedConnectionsWithLocalServerLength and you are using local bot api url
An optional arbitrary secret key to ensure the webhook updates are coming from Telegram.