end_poll

Function end_poll 

Source
pub async fn end_poll(
    client: &Client,
    token: &str,
    channel_id: &str,
    message_id: &str,
) -> Result<Value, Box<dyn Error>>
Expand description

Ends a poll.

§Arguments

  • client - The HTTP client used to send the request.
  • token - The bot token for authentication.
  • channel_id - The ID of the channel.
  • message_id - The ID of the poll message.

§Returns

A result containing the updated message information as a JSON value.