get_answer_voters

Function get_answer_voters 

Source
pub async fn get_answer_voters(
    client: &Client,
    token: &str,
    channel_id: &str,
    message_id: &str,
    answer_id: &str,
    after: Option<&str>,
    limit: Option<u32>,
) -> Result<Value, Box<dyn Error>>
Expand description

Fetches the voters for a specific answer in 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.
  • answer_id - The ID of the answer to fetch voters for.
  • after - (Optional) Fetch users after this user ID.
  • limit - (Optional) Max number of users to return (1-100).

§Returns

A result containing the list of voters as a JSON value.