castPollVote

fun castPollVote(messageId: String, pollId: String, optionId: String): Call<Vote>

Cast a vote for a poll in a message.

Return

Executable async Call responsible for casting a vote.

Parameters

messageId

The message id where the poll is.

pollId

The poll id.

optionId

The id of the option to vote for.


fun castPollVote(messageId: String, pollId: String, option: Option): Call<Vote>

Deprecated

Use castPollVote(messageId: String, pollId: String, optionId: String) instead.

Cast a vote for a poll in a message.

Return

Executable async Call responsible for casting a vote.

Parameters

messageId

The message id where the poll is.

pollId

The poll id.

option

The option to vote for.