Skip to content

setPollAnswer

Function · TDLib 1.8.67 · d1085f9c

Changes the user answer to a poll

setPollAnswer(
  chat_id: int53,
  message_id: int53,
  option_ids: list of int32
) → Ok

chat_id

int53

Identifier of the chat to which the poll belongs

message_id

int53

Identifier of the message containing the poll

option_ids

list of int32

0-based identifiers of answer options, chosen by the user. User can choose more than 1 answer option only is the poll allows multiple answers