export Class
WebhookManager ​
extends ​
BaseManager
<WebhookManagerOptions
>
Constructor ​
ts
new WebhookManager( client )
Parameter | Type | Description |
---|---|---|
client | Client |
Properties ​
get endpoint : string
​
readonly client : Client
​
readonly default? : WebhookManagerOptions
​
express : any
​
static max : number
​
static min : number
​
readonly options : WebhookManagerOptions
​
Methods ​
asyncdelete( drop_pending_updates ) ​
Deletes the webhook from Telegram.
Parameter | Type | Description |
---|---|---|
drop_pending_updates? | boolean | Pass True to drop all pending updates |
Returns: Promise
<boolean
>
asyncget( ) ​
Gets the webhook information from Telegram.
Returns: Promise
<boolean
| WebhookInfo
>
asyncintialize( ) ​
Returns: Promise
<void
>
asyncset( options ) ​
Updates the webhook on the Telegram api.
The following values are taken from options: drop_pending_updates, secret_token, max_connections, ip_address, certificate.
Parameter | Type | Description |
---|---|---|
options = ... | WebhookManagerOptions |
Returns: Promise
<boolean
>