Skip to content

addPollOption

Function · TDLib 1.8.67 · d1085f9c

Adds an option to a poll

addPollOption(
  chat_id: int53,
  message_id: int53,
  option: InputPollOption
) → Ok

chat_id

int53

Identifier of the chat to which the poll belongs

message_id

int53

Identifier of the message containing the poll. Use messagePoll.can_add_option to check whether an option can be added

option

InputPollOption

The new option