Skip to content

export Class

WebhookManager ​

extends ​

BaseManager

Constructor ​

ts
 new WebhookManager( client, pointer, defaults )
ParameterTypeDescription
clientClient
pointer?string
defaults?any

Properties ​

get defaults : Function ​

get isJson : Function ​

get nest : Function ​

readonly client : Client ​

readonly default? : any ​

readonly options : any ​

Methods ​

asyncdelete( drop_pending_updates ) ​

ParameterTypeDescription
drop_pending_updates?boolean

Returns: Promise<boolean>

asyncget( ) ​

Returns: Promise<boolean | WebhookInfo>

asyncset( options ) ​

ParameterTypeDescription
optionsWebhookEndpointOptions | WebhookCluster

Returns: Promise<boolean>

A modern, powerful library for building your Telegram bots, with seamless support for both JavaScript and Typescript.