Creates an instance of WebhookClient.
The Telegram client instance.
Readonly
clientIndicates whether the webhook client is closed.
The offset used to keep track of the latest updates.
Filters incoming webhook requests to verify their authenticity.
The incoming request.
The options for filtering the request.
Optional
secretWhether the request is valid.
The HTTP or HTTPS server for handling webhook requests.
Creates a callback function for handling webhook requests.
Optional
requestCallback: RequestListenerThe callback function to handle requests.
Optional
options: { The options for creating the webhook callback.
Optional
path?: stringOptional
secretThe created callback function.
Starts the webhook server to receive updates from Telegram.
Optional
path: stringThe path for the webhook endpoint.
Optional
secretToken: stringThe secret token for verifying webhook requests.
Optional
options: { The options for the webhook server.
Optional
host?: stringOptional
port?: numberOptional
requestOptional
tls
Represents a client for handling Telegram updates using webhooks.