Skip to content

deletePollOption

Function · TDLib 1.8.67 · d1085f9c

Deletes an option from a poll

deletePollOption(
  chat_id: int53,
  message_id: int53,
  option_id: string
) → Ok

chat_id

int53

Identifier of the chat to which the poll belongs

message_id

int53

Identifier of the message containing the poll

option_id

string

Unique identifier of the option. Use pollOptionProperties.can_be_deleted to check whether the option can be deleted by the user