libtd-ktx / kotlinx.telegram.extensions / MessageKtx / getPollVoters
getPollVoters
open suspend fun
Message
.getPollVoters(chatId:
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.
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.