export Class
PollManager ​
extends ​
BaseManager
<PollManagerOptions
>
Constructor ​
ts
new PollManager( client )
Parameter | Type | Description |
---|---|---|
client | Client |
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.
Parameter | Type | Description |
---|---|---|
update | UpdatePacket | UpdatePacket[] | The packet response from Telegram. |
Returns: void
asyncinitialize( ) ​
Returns: Promise
<void
>
switch( ) ​
Enable or disable the poll manager.
Returns: void