getPollVoters
Get poll voters. USER-ONLY
Parameters
The identifier of the chat that includes the poll.
messageId: number
The identifier of the message that includes the poll.
optionIndex?: number
The index of an option. If specified, only voters of that option will be returned.
offset?: string
An offset key returned by a previous result.
limit?: number
The maximum number of results to return.
Result
Syntax
// Required parameters only.
await client.getPollVoters(chatId, messageId);
// Required parameters + optional parameters.
// Any of the optional parameters can be omitted.
await client.getPollVoters(chatId, messageId, {
optionIndex,
offset,
limit,
});