Skip to content

export Class

PollAnswers ​

Constructor ​

ts
 new PollAnswers( options )
ParameterTypeDescription
optionsPollOption[]

Properties ​

records : Object ​

default: {}

Methods ​

answered( id, user_id ) ​

ParameterTypeDescription
idnumberThe id of the answer.
user_idnumberThe id of the user to check.

Checks if the user has answered an answer with the id.

Returns: boolean

update( user_id, ids ) ​

ParameterTypeDescription
user_idnumberThe id of the user.
idsnumber[]The ids of the answers of the users.

Updates the answers of a user.

Returns: void

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