-
Notifications
You must be signed in to change notification settings - Fork 11
set poll answer
Alexey Kravtsov edited this page May 19, 2020
·
1 revision
libtd-ktx / kotlinx.telegram.coroutines / setPollAnswer
suspend fun
TelegramFlow
.setPollAnswer(chatId:
Long
, messageId:
Long
, optionIds:
IntArray
?):
Unit
Suspend function, which changes the user answer to a poll. A poll in quiz mode can be answered only once.
chatId
- Identifier of the chat to which the poll belongs.
messageId
- Identifier of the message containing the poll.
optionIds
- 0-based identifiers of answer options, chosen by the user. User can choose more
than 1 answer option only is the poll allows multiple answers.