libtd-ktx / kotlinx.telegram.extensions / ChatKtx / getPollVoters
getPollVoters
open suspend fun
Chat
.getPollVoters(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
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 TdApi.Users Represents a list of users.