libtd-ktx / kotlinx.telegram.coroutines / getPollVoters
getPollVoters
suspend fun
TelegramFlow
.getPollVoters(chatId:
Long
, messageId:
Long
, optionId:
Int
, offset:
Int
, limit:
Int
):
Users
Suspend function, which returns users voted for the specified option in a non-anonymous polls. For the optimal performance the number of returned users is chosen by the library.
Parameters
chatId
- Identifier of the chat to which the poll belongs.
messageId
- Identifier of the message containing the poll.
optionId
- 0-based identifier of the answer option.
offset
- Number of users to skip in the result; must be non-negative.
limit
- The maximum number of users to be returned; must be positive and can’t be greater
than 50. Fewer users may be returned than specified by the limit, even if the end of the voter list
has not been reached.
Return Users Represents a list of users.