Skip to content

export Class

PollManager ​

extends ​

BaseManager<PollManagerOptions>

Constructor ​

ts
new PollManager( client )
ParameterTypeDescription
clientClient

Properties ​

active : boolean ​

readonly client : Client ​

readonly default? : PollManagerOptions ​

interluder? : __global.NodeJS.Timeout ​

offset? : number ​

readonly options : PollManagerOptions ​

Methods ​

handle( update ) ​

Handles an incoming update packet from Telegram.

ParameterTypeDescription
updateUpdatePacket | UpdatePacket[]The packet response from Telegram.

Returns: void

asyncinitialize( ) ​

Returns: Promise<void>

switch( ) ​

Enable or disable the poll manager.

Returns: void