set_poll_answer

Function set_poll_answer 

Source
pub async fn set_poll_answer(
    chat_id: i64,
    message_id: i64,
    option_ids: Vec<i32>,
    client_id: i32,
) -> Result<(), Error>
Expand description

Changes the user answer to a poll. A poll in quiz mode can be answered only once

ยงArguments

  • chat_id - Identifier of the chat to which the poll belongs
  • message_id - Identifier of the message containing the poll
  • option_ids - 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
  • client_id - The client id to send the request to