[Docs] Document Polls (#2930)

* poll docs

* oopsie
This commit is contained in:
Mihail Gribkov
2024-05-27 14:50:38 +03:00
committed by GitHub
parent 9030a5b2bb
commit 3e7ab0915f
6 changed files with 111 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
// Get the id of the first answer in the poll
var answerId = message.Poll.Answers.First().AnswerId;
// Get the list of voters who voted for the first answer
var voters = await message.GetPollAnswerVotersAsync(answerId).FlattenAsync();