Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface PollAnswerChangeEvent

A user changed their answer in a non-anonymous poll. Bots receive new votes only in polls that were sent by the bot itself.

guides

Check official reference.

eventcategory

'postback'

eventtype

'poll_answer_change'

Hierarchy

  • EventObject<"postback", "poll_answer_change">
  • EventBase
  • PollAnswer
    • PollAnswerChangeEvent

Index

Properties

botId: number
category: "postback"
channel: null

The chat channel

optionIds: number[]

0-based identifiers of answer options, chosen by the user. May be empty if the user retracted their vote.

platform: "telegram"
pollAnswer: any

Poll answer object.

pollId: string

Unique poll identifier

type: "poll_answer_change"
updateId: string

The update's unique identifier. Update identifiers start from a certain positive number and increase sequentially. This ID becomes especially handy if you're using Webhooks, since it allows you to ignore repeated updates or to restore the correct update sequence, should they get out of order. If there are no new updates for at least a week, then identifier of the next update will be chosen randomly instead of sequentially.

The user, who changed the answer to the poll

Generated using TypeDoc