Function stop_poll

Source
pub async fn stop_poll(
    chat_id: i64,
    message_id: i64,
    reply_markup: Option<ReplyMarkup>,
    client_id: i32,
) -> Result<(), Error>
Expand description

Stops a poll. A poll in a message can be stopped when the message has can_be_edited flag is set

ยงArguments

  • chat_id - Identifier of the chat to which the poll belongs
  • message_id - Identifier of the message containing the poll
  • reply_markup - The new message reply markup; pass null if none; for bots only
  • client_id - The client id to send the request to