1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2026-08-20 16:16:56 +00:00
Files
tgbotapi/docs/dev.inmo.tgbotapi.extensions.api.send.polls/reply-with-regular-poll.md
InsanusMokrassar b942627f12 deploy: 308fb9274b
2021-03-17 15:18:37 +00:00

3.3 KiB

//docs/dev.inmo.tgbotapi.extensions.api.send.polls/replyWithRegularPoll

replyWithRegularPoll

[common]
Content
inline suspend fun TelegramBot.replyWithRegularPoll(to: Message, question: String, options: List<String>, isAnonymous: Boolean = true, isClosed: Boolean = false, allowMultipleAnswers: Boolean = false, closeInfo: ScheduledCloseInfo? = null, disableNotification: Boolean = false, allowSendingWithoutReply: Boolean? = null, replyMarkup: KeyboardMarkup? = null): ContentMessage<PollContent>
inline suspend fun TelegramBot.replyWithRegularPoll(to: Message, poll: RegularPoll, isClosed: Boolean = false, question: String = poll.question, options: List<String> = poll.options.map { it.text }, isAnonymous: Boolean = poll.isAnonymous, allowMultipleAnswers: Boolean = poll.allowMultipleAnswers, closeInfo: ScheduledCloseInfo? = null, disableNotification: Boolean = false, allowSendingWithoutReply: Boolean? = null, replyMarkup: KeyboardMarkup? = null): ContentMessage<PollContent>