mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2026-04-07 10:32:44 +00:00
add support of QuizPoll#correctOptionIds
This commit is contained in:
@@ -2285,7 +2285,7 @@ public suspend inline fun TelegramBot.reply(
|
||||
to: AccessibleMessage,
|
||||
question: String,
|
||||
options: List<InputPollOption>,
|
||||
correctOptionId: Int,
|
||||
correctOptionIds: List<Int>,
|
||||
explanation: String?,
|
||||
isAnonymous: Boolean = true,
|
||||
isClosed: Boolean = false,
|
||||
@@ -2308,7 +2308,7 @@ public suspend inline fun TelegramBot.reply(
|
||||
chatId = replyInChatId,
|
||||
question = question,
|
||||
options = options,
|
||||
correctOptionId = correctOptionId,
|
||||
correctOptionIds = correctOptionIds,
|
||||
closeInfo = closeInfo,
|
||||
questionParseMode = questionParseMode,
|
||||
explanation = explanation,
|
||||
@@ -2333,7 +2333,7 @@ public suspend inline fun TelegramBot.reply(
|
||||
question: String,
|
||||
explanation: String?,
|
||||
options: List<InputPollOption> = quizPoll.options.map { it.asInput() },
|
||||
correctOptionId: Int = quizPoll.correctOptionId
|
||||
correctOptionIds: List<Int> = quizPoll.correctOptionIds
|
||||
?: error("Correct option ID must be provided by income QuizPoll or by developer"),
|
||||
isAnonymous: Boolean = quizPoll.isAnonymous,
|
||||
isClosed: Boolean = false,
|
||||
@@ -2356,7 +2356,7 @@ public suspend inline fun TelegramBot.reply(
|
||||
chatId = replyInChatId,
|
||||
question = question,
|
||||
options = options,
|
||||
correctOptionId = correctOptionId,
|
||||
correctOptionIds = correctOptionIds,
|
||||
closeInfo = closeInfo,
|
||||
questionParseMode = questionParseMode,
|
||||
explanation = explanation,
|
||||
@@ -2379,7 +2379,7 @@ public suspend inline fun TelegramBot.reply(
|
||||
to: AccessibleMessage,
|
||||
questionTextSources: List<TextSource>,
|
||||
options: List<InputPollOption>,
|
||||
correctOptionId: Int,
|
||||
correctOptionIds: List<Int>,
|
||||
explanation: String?,
|
||||
isAnonymous: Boolean = true,
|
||||
isClosed: Boolean = false,
|
||||
@@ -2401,7 +2401,7 @@ public suspend inline fun TelegramBot.reply(
|
||||
chatId = replyInChatId,
|
||||
questionEntities = questionTextSources,
|
||||
options = options,
|
||||
correctOptionId = correctOptionId,
|
||||
correctOptionIds = correctOptionIds,
|
||||
closeInfo = closeInfo,
|
||||
explanation = explanation,
|
||||
explanationParseMode = explanationParseMode,
|
||||
@@ -2425,7 +2425,7 @@ public suspend inline fun TelegramBot.reply(
|
||||
explanation: String?,
|
||||
questionTextSources: List<TextSource> = quizPoll.questionTextSources,
|
||||
options: List<InputPollOption> = quizPoll.options.map { it.asInput() },
|
||||
correctOptionId: Int = quizPoll.correctOptionId
|
||||
correctOptionIds: List<Int> = quizPoll.correctOptionIds
|
||||
?: error("Correct option ID must be provided by income QuizPoll or by developer"),
|
||||
isAnonymous: Boolean = quizPoll.isAnonymous,
|
||||
isClosed: Boolean = false,
|
||||
@@ -2447,7 +2447,7 @@ public suspend inline fun TelegramBot.reply(
|
||||
chatId = replyInChatId,
|
||||
questionEntities = questionTextSources,
|
||||
options = options,
|
||||
correctOptionId = correctOptionId,
|
||||
correctOptionIds = correctOptionIds,
|
||||
closeInfo = closeInfo,
|
||||
explanation = explanation,
|
||||
explanationParseMode = explanationParseMode,
|
||||
@@ -2469,7 +2469,7 @@ public suspend inline fun TelegramBot.reply(
|
||||
to: AccessibleMessage,
|
||||
question: String,
|
||||
options: List<InputPollOption>,
|
||||
correctOptionId: Int,
|
||||
correctOptionIds: List<Int>,
|
||||
isAnonymous: Boolean = true,
|
||||
isClosed: Boolean = false,
|
||||
questionParseMode: ParseMode? = null,
|
||||
@@ -2491,7 +2491,7 @@ public suspend inline fun TelegramBot.reply(
|
||||
chatId = replyInChatId,
|
||||
question = question,
|
||||
options = options,
|
||||
correctOptionId = correctOptionId,
|
||||
correctOptionIds = correctOptionIds,
|
||||
closeInfo = closeInfo,
|
||||
questionParseMode = questionParseMode,
|
||||
explanationTextSources = explanationTextSources,
|
||||
@@ -2514,7 +2514,7 @@ public suspend inline fun TelegramBot.reply(
|
||||
quizPoll: QuizPoll,
|
||||
question: String,
|
||||
options: List<InputPollOption> = quizPoll.options.map { it.asInput() },
|
||||
correctOptionId: Int = quizPoll.correctOptionId
|
||||
correctOptionIds: List<Int> = quizPoll.correctOptionIds
|
||||
?: error("Correct option ID must be provided by income QuizPoll or by developer"),
|
||||
isAnonymous: Boolean = quizPoll.isAnonymous,
|
||||
isClosed: Boolean = false,
|
||||
@@ -2537,7 +2537,7 @@ public suspend inline fun TelegramBot.reply(
|
||||
chatId = replyInChatId,
|
||||
question = question,
|
||||
options = options,
|
||||
correctOptionId = correctOptionId,
|
||||
correctOptionIds = correctOptionIds,
|
||||
closeInfo = closeInfo,
|
||||
questionParseMode = questionParseMode,
|
||||
explanationTextSources = explanationTextSources,
|
||||
@@ -2559,7 +2559,7 @@ public suspend inline fun TelegramBot.reply(
|
||||
to: AccessibleMessage,
|
||||
questionTextSources: List<TextSource>,
|
||||
options: List<InputPollOption>,
|
||||
correctOptionId: Int,
|
||||
correctOptionIds: List<Int>,
|
||||
isAnonymous: Boolean = true,
|
||||
isClosed: Boolean = false,
|
||||
explanationTextSources: List<TextSource>? = null,
|
||||
@@ -2580,7 +2580,7 @@ public suspend inline fun TelegramBot.reply(
|
||||
chatId = replyInChatId,
|
||||
questionEntities = questionTextSources,
|
||||
options = options,
|
||||
correctOptionId = correctOptionId,
|
||||
correctOptionIds = correctOptionIds,
|
||||
closeInfo = closeInfo,
|
||||
explanationTextSources = explanationTextSources,
|
||||
isAnonymous = isAnonymous,
|
||||
@@ -2602,8 +2602,7 @@ public suspend inline fun TelegramBot.reply(
|
||||
quizPoll: QuizPoll,
|
||||
questionTextSources: List<TextSource> = quizPoll.questionTextSources,
|
||||
options: List<InputPollOption> = quizPoll.options.map { it.asInput() },
|
||||
correctOptionId: Int = quizPoll.correctOptionId
|
||||
?: error("Correct option ID must be provided by income QuizPoll or by developer"),
|
||||
correctOptionIds: List<Int> = quizPoll.correctOptionIds ?: error("Correct option ID must be provided by income QuizPoll or by developer"),
|
||||
isAnonymous: Boolean = quizPoll.isAnonymous,
|
||||
isClosed: Boolean = false,
|
||||
explanationTextSources: List<TextSource>? = quizPoll.explanationTextSources,
|
||||
@@ -2624,7 +2623,7 @@ public suspend inline fun TelegramBot.reply(
|
||||
chatId = replyInChatId,
|
||||
questionEntities = questionTextSources,
|
||||
options = options,
|
||||
correctOptionId = correctOptionId,
|
||||
correctOptionIds = correctOptionIds,
|
||||
closeInfo = closeInfo,
|
||||
explanationTextSources = explanationTextSources,
|
||||
isAnonymous = isAnonymous,
|
||||
|
||||
@@ -2260,7 +2260,7 @@ public suspend inline fun TelegramBot.reply(
|
||||
toMessageId: MessageId,
|
||||
question: String,
|
||||
options: List<InputPollOption>,
|
||||
correctOptionId: Int,
|
||||
correctOptionIds: List<Int>,
|
||||
explanation: String?,
|
||||
isAnonymous: Boolean = true,
|
||||
isClosed: Boolean = false,
|
||||
@@ -2283,7 +2283,7 @@ public suspend inline fun TelegramBot.reply(
|
||||
chatId = replyInChatId,
|
||||
question = question,
|
||||
options = options,
|
||||
correctOptionId = correctOptionId,
|
||||
correctOptionIds = correctOptionIds,
|
||||
closeInfo = closeInfo,
|
||||
questionParseMode = questionParseMode,
|
||||
explanation = explanation,
|
||||
@@ -2309,7 +2309,7 @@ public suspend inline fun TelegramBot.reply(
|
||||
question: String,
|
||||
explanation: String?,
|
||||
options: List<InputPollOption> = quizPoll.options.map { it.asInput() },
|
||||
correctOptionId: Int = quizPoll.correctOptionId
|
||||
correctOptionIds: List<Int> = quizPoll.correctOptionIds
|
||||
?: error("Correct option ID must be provided by income QuizPoll or by developer"),
|
||||
isAnonymous: Boolean = quizPoll.isAnonymous,
|
||||
isClosed: Boolean = false,
|
||||
@@ -2332,7 +2332,7 @@ public suspend inline fun TelegramBot.reply(
|
||||
chatId = replyInChatId,
|
||||
question = question,
|
||||
options = options,
|
||||
correctOptionId = correctOptionId,
|
||||
correctOptionIds = correctOptionIds,
|
||||
closeInfo = closeInfo,
|
||||
questionParseMode = questionParseMode,
|
||||
explanation = explanation,
|
||||
@@ -2356,7 +2356,7 @@ public suspend inline fun TelegramBot.reply(
|
||||
toMessageId: MessageId,
|
||||
questionTextSources: List<TextSource>,
|
||||
options: List<InputPollOption>,
|
||||
correctOptionId: Int,
|
||||
correctOptionIds: List<Int>,
|
||||
explanation: String?,
|
||||
isAnonymous: Boolean = true,
|
||||
isClosed: Boolean = false,
|
||||
@@ -2378,7 +2378,7 @@ public suspend inline fun TelegramBot.reply(
|
||||
chatId = replyInChatId,
|
||||
questionEntities = questionTextSources,
|
||||
options = options,
|
||||
correctOptionId = correctOptionId,
|
||||
correctOptionIds = correctOptionIds,
|
||||
closeInfo = closeInfo,
|
||||
explanation = explanation,
|
||||
explanationParseMode = explanationParseMode,
|
||||
@@ -2403,7 +2403,7 @@ public suspend inline fun TelegramBot.reply(
|
||||
explanation: String?,
|
||||
questionTextSources: List<TextSource> = quizPoll.questionTextSources,
|
||||
options: List<InputPollOption> = quizPoll.options.map { it.asInput() },
|
||||
correctOptionId: Int = quizPoll.correctOptionId
|
||||
correctOptionIds: List<Int> = quizPoll.correctOptionIds
|
||||
?: error("Correct option ID must be provided by income QuizPoll or by developer"),
|
||||
isAnonymous: Boolean = quizPoll.isAnonymous,
|
||||
isClosed: Boolean = false,
|
||||
@@ -2425,7 +2425,7 @@ public suspend inline fun TelegramBot.reply(
|
||||
chatId = replyInChatId,
|
||||
questionEntities = questionTextSources,
|
||||
options = options,
|
||||
correctOptionId = correctOptionId,
|
||||
correctOptionIds = correctOptionIds,
|
||||
closeInfo = closeInfo,
|
||||
explanation = explanation,
|
||||
explanationParseMode = explanationParseMode,
|
||||
@@ -2448,7 +2448,7 @@ public suspend inline fun TelegramBot.reply(
|
||||
toMessageId: MessageId,
|
||||
question: String,
|
||||
options: List<InputPollOption>,
|
||||
correctOptionId: Int,
|
||||
correctOptionIds: List<Int>,
|
||||
isAnonymous: Boolean = true,
|
||||
isClosed: Boolean = false,
|
||||
questionParseMode: ParseMode? = null,
|
||||
@@ -2470,7 +2470,7 @@ public suspend inline fun TelegramBot.reply(
|
||||
chatId = replyInChatId,
|
||||
question = question,
|
||||
options = options,
|
||||
correctOptionId = correctOptionId,
|
||||
correctOptionIds = correctOptionIds,
|
||||
closeInfo = closeInfo,
|
||||
questionParseMode = questionParseMode,
|
||||
explanationTextSources = explanationTextSources,
|
||||
@@ -2494,7 +2494,7 @@ public suspend inline fun TelegramBot.reply(
|
||||
quizPoll: QuizPoll,
|
||||
question: String,
|
||||
options: List<InputPollOption> = quizPoll.options.map { it.asInput() },
|
||||
correctOptionId: Int = quizPoll.correctOptionId
|
||||
correctOptionIds: List<Int> = quizPoll.correctOptionIds
|
||||
?: error("Correct option ID must be provided by income QuizPoll or by developer"),
|
||||
isAnonymous: Boolean = quizPoll.isAnonymous,
|
||||
isClosed: Boolean = false,
|
||||
@@ -2517,7 +2517,7 @@ public suspend inline fun TelegramBot.reply(
|
||||
chatId = replyInChatId,
|
||||
question = question,
|
||||
options = options,
|
||||
correctOptionId = correctOptionId,
|
||||
correctOptionIds = correctOptionIds,
|
||||
closeInfo = closeInfo,
|
||||
questionParseMode = questionParseMode,
|
||||
explanationTextSources = explanationTextSources,
|
||||
@@ -2540,7 +2540,7 @@ public suspend inline fun TelegramBot.reply(
|
||||
toMessageId: MessageId,
|
||||
questionTextSources: List<TextSource>,
|
||||
options: List<InputPollOption>,
|
||||
correctOptionId: Int,
|
||||
correctOptionIds: List<Int>,
|
||||
isAnonymous: Boolean = true,
|
||||
isClosed: Boolean = false,
|
||||
explanationTextSources: List<TextSource>? = null,
|
||||
@@ -2561,7 +2561,7 @@ public suspend inline fun TelegramBot.reply(
|
||||
chatId = replyInChatId,
|
||||
questionEntities = questionTextSources,
|
||||
options = options,
|
||||
correctOptionId = correctOptionId,
|
||||
correctOptionIds = correctOptionIds,
|
||||
closeInfo = closeInfo,
|
||||
explanationTextSources = explanationTextSources,
|
||||
isAnonymous = isAnonymous,
|
||||
@@ -2584,7 +2584,7 @@ public suspend inline fun TelegramBot.reply(
|
||||
quizPoll: QuizPoll,
|
||||
questionTextSources: List<TextSource> = quizPoll.questionTextSources,
|
||||
options: List<InputPollOption> = quizPoll.options.map { it.asInput() },
|
||||
correctOptionId: Int = quizPoll.correctOptionId
|
||||
correctOptionIds: List<Int> = quizPoll.correctOptionIds
|
||||
?: error("Correct option ID must be provided by income QuizPoll or by developer"),
|
||||
isAnonymous: Boolean = quizPoll.isAnonymous,
|
||||
isClosed: Boolean = false,
|
||||
@@ -2606,7 +2606,7 @@ public suspend inline fun TelegramBot.reply(
|
||||
chatId = replyInChatId,
|
||||
questionEntities = questionTextSources,
|
||||
options = options,
|
||||
correctOptionId = correctOptionId,
|
||||
correctOptionIds = correctOptionIds,
|
||||
closeInfo = closeInfo,
|
||||
explanationTextSources = explanationTextSources,
|
||||
isAnonymous = isAnonymous,
|
||||
|
||||
@@ -2336,7 +2336,7 @@ public suspend fun TelegramBot.send(
|
||||
chatId: ChatIdentifier,
|
||||
question: String,
|
||||
options: List<InputPollOption>,
|
||||
correctOptionId: Int,
|
||||
correctOptionIds: List<Int>,
|
||||
questionParseMode: ParseMode? = null,
|
||||
isAnonymous: Boolean = true,
|
||||
isClosed: Boolean = false,
|
||||
@@ -2357,7 +2357,7 @@ public suspend fun TelegramBot.send(
|
||||
chatId = chatId,
|
||||
question = question,
|
||||
options = options,
|
||||
correctOptionId = correctOptionId,
|
||||
correctOptionIds = correctOptionIds,
|
||||
closeInfo = closeInfo,
|
||||
questionParseMode = questionParseMode,
|
||||
explanation = explanation,
|
||||
@@ -2385,7 +2385,7 @@ public suspend fun TelegramBot.send(
|
||||
chat: Chat,
|
||||
question: String,
|
||||
options: List<InputPollOption>,
|
||||
correctOptionId: Int,
|
||||
correctOptionIds: List<Int>,
|
||||
questionParseMode: ParseMode? = null,
|
||||
isAnonymous: Boolean = true,
|
||||
isClosed: Boolean = false,
|
||||
@@ -2406,7 +2406,7 @@ public suspend fun TelegramBot.send(
|
||||
chatId = chat.id,
|
||||
question = question,
|
||||
options = options,
|
||||
correctOptionId = correctOptionId,
|
||||
correctOptionIds = correctOptionIds,
|
||||
closeInfo = closeInfo,
|
||||
questionParseMode = questionParseMode,
|
||||
explanation = explanation,
|
||||
@@ -2437,7 +2437,7 @@ public suspend fun TelegramBot.send(
|
||||
question: String,
|
||||
questionParseMode: ParseMode? = null,
|
||||
options: List<InputPollOption> = quizPoll.options.map { it.asInput() },
|
||||
correctOptionId: Int = quizPoll.correctOptionId ?: error("Correct option ID must be provided by income QuizPoll or by developer"),
|
||||
correctOptionIds: List<Int> = quizPoll.correctOptionIds ?: error("Correct option ID must be provided by incoming QuizPoll or by developer"),
|
||||
isAnonymous: Boolean = quizPoll.isAnonymous,
|
||||
explanation: String? = null,
|
||||
explanationParseMode: ParseMode? = null,
|
||||
@@ -2456,7 +2456,7 @@ public suspend fun TelegramBot.send(
|
||||
chatId = chatId,
|
||||
question = question,
|
||||
options = options,
|
||||
correctOptionId = correctOptionId,
|
||||
correctOptionIds = correctOptionIds,
|
||||
closeInfo = closeInfo,
|
||||
questionParseMode = questionParseMode,
|
||||
explanation = explanation,
|
||||
@@ -2487,7 +2487,7 @@ public suspend fun TelegramBot.send(
|
||||
question: String,
|
||||
questionParseMode: ParseMode? = null,
|
||||
options: List<InputPollOption> = quizPoll.options.map { it.asInput() },
|
||||
correctOptionId: Int = quizPoll.correctOptionId ?: error("Correct option ID must be provided by income QuizPoll or by developer"),
|
||||
correctOptionIds: List<Int> = quizPoll.correctOptionIds ?: error("Correct option ID must be provided by incoming QuizPoll or by developer"),
|
||||
isAnonymous: Boolean = quizPoll.isAnonymous,
|
||||
explanation: String? = null,
|
||||
explanationParseMode: ParseMode? = null,
|
||||
@@ -2506,7 +2506,7 @@ public suspend fun TelegramBot.send(
|
||||
chatId = chat.id,
|
||||
question = question,
|
||||
options = options,
|
||||
correctOptionId = correctOptionId,
|
||||
correctOptionIds = correctOptionIds,
|
||||
closeInfo = closeInfo,
|
||||
questionParseMode = questionParseMode,
|
||||
explanation = explanation,
|
||||
@@ -2534,7 +2534,7 @@ public suspend fun TelegramBot.send(
|
||||
chatId: ChatIdentifier,
|
||||
questionTextSources: List<TextSource>,
|
||||
options: List<InputPollOption>,
|
||||
correctOptionId: Int,
|
||||
correctOptionIds: List<Int>,
|
||||
isAnonymous: Boolean = true,
|
||||
isClosed: Boolean = false,
|
||||
explanation: String? = null,
|
||||
@@ -2554,7 +2554,7 @@ public suspend fun TelegramBot.send(
|
||||
chatId = chatId,
|
||||
questionEntities = questionTextSources,
|
||||
options = options,
|
||||
correctOptionId = correctOptionId,
|
||||
correctOptionIds = correctOptionIds,
|
||||
closeInfo = closeInfo,
|
||||
explanation = explanation,
|
||||
explanationParseMode = explanationParseMode,
|
||||
@@ -2581,7 +2581,7 @@ public suspend fun TelegramBot.send(
|
||||
chat: Chat,
|
||||
questionTextSources: List<TextSource>,
|
||||
options: List<InputPollOption>,
|
||||
correctOptionId: Int,
|
||||
correctOptionIds: List<Int>,
|
||||
isAnonymous: Boolean = true,
|
||||
isClosed: Boolean = false,
|
||||
explanation: String? = null,
|
||||
@@ -2601,7 +2601,7 @@ public suspend fun TelegramBot.send(
|
||||
chatId = chat.id,
|
||||
questionEntities = questionTextSources,
|
||||
options = options,
|
||||
correctOptionId = correctOptionId,
|
||||
correctOptionIds = correctOptionIds,
|
||||
closeInfo = closeInfo,
|
||||
explanation = explanation,
|
||||
explanationParseMode = explanationParseMode,
|
||||
@@ -2630,7 +2630,7 @@ public suspend fun TelegramBot.send(
|
||||
quizPoll: QuizPoll,
|
||||
questionTextSources: List<TextSource>,
|
||||
options: List<InputPollOption> = quizPoll.options.map { it.asInput() },
|
||||
correctOptionId: Int = quizPoll.correctOptionId ?: error("Correct option ID must be provided by income QuizPoll or by developer"),
|
||||
correctOptionIds: List<Int> = quizPoll.correctOptionIds ?: error("Correct option ID must be provided by incoming QuizPoll or by developer"),
|
||||
isAnonymous: Boolean = quizPoll.isAnonymous,
|
||||
explanation: String? = null,
|
||||
explanationParseMode: ParseMode? = null,
|
||||
@@ -2649,7 +2649,7 @@ public suspend fun TelegramBot.send(
|
||||
chatId = chatId,
|
||||
questionEntities = questionTextSources,
|
||||
options = options,
|
||||
correctOptionId = correctOptionId,
|
||||
correctOptionIds = correctOptionIds,
|
||||
closeInfo = closeInfo,
|
||||
explanation = explanation,
|
||||
explanationParseMode = explanationParseMode,
|
||||
@@ -2678,7 +2678,7 @@ public suspend fun TelegramBot.send(
|
||||
quizPoll: QuizPoll,
|
||||
questionTextSources: List<TextSource>,
|
||||
options: List<InputPollOption> = quizPoll.options.map { it.asInput() },
|
||||
correctOptionId: Int = quizPoll.correctOptionId ?: error("Correct option ID must be provided by income QuizPoll or by developer"),
|
||||
correctOptionIds: List<Int> = quizPoll.correctOptionIds ?: error("Correct option ID must be provided by incoming QuizPoll or by developer"),
|
||||
isAnonymous: Boolean = quizPoll.isAnonymous,
|
||||
explanation: String? = null,
|
||||
explanationParseMode: ParseMode? = null,
|
||||
@@ -2697,7 +2697,7 @@ public suspend fun TelegramBot.send(
|
||||
chatId = chat.id,
|
||||
questionEntities = questionTextSources,
|
||||
options = options,
|
||||
correctOptionId = correctOptionId,
|
||||
correctOptionIds = correctOptionIds,
|
||||
closeInfo = closeInfo,
|
||||
explanation = explanation,
|
||||
explanationParseMode = explanationParseMode,
|
||||
@@ -2724,7 +2724,7 @@ public suspend fun TelegramBot.send(
|
||||
chatId: ChatIdentifier,
|
||||
question: String,
|
||||
options: List<InputPollOption>,
|
||||
correctOptionId: Int,
|
||||
correctOptionIds: List<Int>,
|
||||
explanationTextSources: List<TextSource>? = null,
|
||||
questionParseMode: ParseMode? = null,
|
||||
isAnonymous: Boolean = true,
|
||||
@@ -2744,7 +2744,7 @@ public suspend fun TelegramBot.send(
|
||||
chatId = chatId,
|
||||
question = question,
|
||||
options = options,
|
||||
correctOptionId = correctOptionId,
|
||||
correctOptionIds = correctOptionIds,
|
||||
closeInfo = closeInfo,
|
||||
questionParseMode = questionParseMode,
|
||||
explanationTextSources = explanationTextSources,
|
||||
@@ -2771,7 +2771,7 @@ public suspend fun TelegramBot.send(
|
||||
chat: Chat,
|
||||
question: String,
|
||||
options: List<InputPollOption>,
|
||||
correctOptionId: Int,
|
||||
correctOptionIds: List<Int>,
|
||||
explanationTextSources: List<TextSource>? = null,
|
||||
questionParseMode: ParseMode? = null,
|
||||
isAnonymous: Boolean = true,
|
||||
@@ -2791,7 +2791,7 @@ public suspend fun TelegramBot.send(
|
||||
chatId = chat.id,
|
||||
question = question,
|
||||
options = options,
|
||||
correctOptionId = correctOptionId,
|
||||
correctOptionIds = correctOptionIds,
|
||||
closeInfo = closeInfo,
|
||||
questionParseMode = questionParseMode,
|
||||
explanationTextSources = explanationTextSources,
|
||||
@@ -2822,7 +2822,7 @@ public suspend fun TelegramBot.send(
|
||||
explanationTextSources: List<TextSource>? = null,
|
||||
questionParseMode: ParseMode? = null,
|
||||
options: List<InputPollOption> = quizPoll.options.map { it.asInput() },
|
||||
correctOptionId: Int = quizPoll.correctOptionId ?: error("Correct option ID must be provided by income QuizPoll or by developer"),
|
||||
correctOptionIds: List<Int> = quizPoll.correctOptionIds ?: error("Correct option ID must be provided by incoming QuizPoll or by developer"),
|
||||
isAnonymous: Boolean = quizPoll.isAnonymous,
|
||||
closeInfo: ScheduledCloseInfo? = null,
|
||||
threadId: MessageThreadId? = chatId.threadId,
|
||||
@@ -2839,7 +2839,7 @@ public suspend fun TelegramBot.send(
|
||||
chatId = chatId,
|
||||
question = question,
|
||||
options = options,
|
||||
correctOptionId = correctOptionId,
|
||||
correctOptionIds = correctOptionIds,
|
||||
closeInfo = closeInfo,
|
||||
questionParseMode = questionParseMode,
|
||||
explanationTextSources = explanationTextSources,
|
||||
@@ -2870,7 +2870,7 @@ public suspend fun TelegramBot.send(
|
||||
questionParseMode: ParseMode? = null,
|
||||
explanationTextSources: List<TextSource>? = null,
|
||||
options: List<InputPollOption> = quizPoll.options.map { it.asInput() },
|
||||
correctOptionId: Int = quizPoll.correctOptionId ?: error("Correct option ID must be provided by income QuizPoll or by developer"),
|
||||
correctOptionIds: List<Int> = quizPoll.correctOptionIds ?: error("Correct option ID must be provided by incoming QuizPoll or by developer"),
|
||||
isAnonymous: Boolean = quizPoll.isAnonymous,
|
||||
closeInfo: ScheduledCloseInfo? = null,
|
||||
threadId: MessageThreadId? = chat.id.threadId,
|
||||
@@ -2887,7 +2887,7 @@ public suspend fun TelegramBot.send(
|
||||
chatId = chat.id,
|
||||
question = question,
|
||||
options = options,
|
||||
correctOptionId = correctOptionId,
|
||||
correctOptionIds = correctOptionIds,
|
||||
closeInfo = closeInfo,
|
||||
questionParseMode = questionParseMode,
|
||||
explanationTextSources = explanationTextSources,
|
||||
@@ -2914,7 +2914,7 @@ public suspend fun TelegramBot.send(
|
||||
chatId: ChatIdentifier,
|
||||
questionTextSources: List<TextSource>,
|
||||
options: List<InputPollOption>,
|
||||
correctOptionId: Int,
|
||||
correctOptionIds: List<Int>,
|
||||
explanationTextSources: List<TextSource>? = null,
|
||||
isAnonymous: Boolean = true,
|
||||
isClosed: Boolean = false,
|
||||
@@ -2933,7 +2933,7 @@ public suspend fun TelegramBot.send(
|
||||
chatId = chatId,
|
||||
questionEntities = questionTextSources,
|
||||
options = options,
|
||||
correctOptionId = correctOptionId,
|
||||
correctOptionIds = correctOptionIds,
|
||||
closeInfo = closeInfo,
|
||||
explanationTextSources = explanationTextSources,
|
||||
isAnonymous = isAnonymous,
|
||||
@@ -2959,7 +2959,7 @@ public suspend fun TelegramBot.send(
|
||||
chat: Chat,
|
||||
questionTextSources: List<TextSource>,
|
||||
options: List<InputPollOption>,
|
||||
correctOptionId: Int,
|
||||
correctOptionIds: List<Int>,
|
||||
explanationTextSources: List<TextSource>? = null,
|
||||
isAnonymous: Boolean = true,
|
||||
isClosed: Boolean = false,
|
||||
@@ -2978,7 +2978,7 @@ public suspend fun TelegramBot.send(
|
||||
chatId = chat.id,
|
||||
questionEntities = questionTextSources,
|
||||
options = options,
|
||||
correctOptionId = correctOptionId,
|
||||
correctOptionIds = correctOptionIds,
|
||||
closeInfo = closeInfo,
|
||||
explanationTextSources = explanationTextSources,
|
||||
isAnonymous = isAnonymous,
|
||||
@@ -3007,7 +3007,7 @@ public suspend fun TelegramBot.send(
|
||||
questionTextSources: List<TextSource> = quizPoll.questionTextSources,
|
||||
explanationTextSources: List<TextSource>? = quizPoll.explanationTextSources.takeIf { it.isNotEmpty() },
|
||||
options: List<InputPollOption> = quizPoll.options.map { it.asInput() },
|
||||
correctOptionId: Int = quizPoll.correctOptionId ?: error("Correct option ID must be provided by income QuizPoll or by developer"),
|
||||
correctOptionIds: List<Int> = quizPoll.correctOptionIds ?: error("Correct option ID must be provided by incoming QuizPoll or by developer"),
|
||||
isAnonymous: Boolean = quizPoll.isAnonymous,
|
||||
closeInfo: ScheduledCloseInfo? = null,
|
||||
threadId: MessageThreadId? = chatId.threadId,
|
||||
@@ -3024,7 +3024,7 @@ public suspend fun TelegramBot.send(
|
||||
chatId = chatId,
|
||||
questionEntities = questionTextSources,
|
||||
options = options,
|
||||
correctOptionId = correctOptionId,
|
||||
correctOptionIds = correctOptionIds,
|
||||
closeInfo = closeInfo,
|
||||
explanationTextSources = explanationTextSources,
|
||||
isAnonymous = isAnonymous,
|
||||
@@ -3053,7 +3053,7 @@ public suspend fun TelegramBot.send(
|
||||
questionTextSources: List<TextSource> = quizPoll.questionTextSources,
|
||||
explanationTextSources: List<TextSource>? = quizPoll.explanationTextSources.takeIf { it.isNotEmpty() },
|
||||
options: List<InputPollOption> = quizPoll.options.map { it.asInput() },
|
||||
correctOptionId: Int = quizPoll.correctOptionId ?: error("Correct option ID must be provided by income QuizPoll or by developer"),
|
||||
correctOptionIds: List<Int> = quizPoll.correctOptionIds ?: error("Correct option ID must be provided by incoming QuizPoll or by developer"),
|
||||
isAnonymous: Boolean = quizPoll.isAnonymous,
|
||||
closeInfo: ScheduledCloseInfo? = null,
|
||||
threadId: MessageThreadId? = chat.id.threadId,
|
||||
@@ -3070,7 +3070,7 @@ public suspend fun TelegramBot.send(
|
||||
chatId = chat.id,
|
||||
questionEntities = questionTextSources,
|
||||
options = options,
|
||||
correctOptionId = correctOptionId,
|
||||
correctOptionIds = correctOptionIds,
|
||||
closeInfo = closeInfo,
|
||||
explanationTextSources = explanationTextSources,
|
||||
isAnonymous = isAnonymous,
|
||||
|
||||
@@ -18,7 +18,7 @@ public suspend fun TelegramBot.sendQuizPoll(
|
||||
chatId: ChatIdentifier,
|
||||
question: String,
|
||||
options: List<InputPollOption>,
|
||||
correctOptionId: Int,
|
||||
correctOptionIds: List<Int>,
|
||||
explanation: String?,
|
||||
questionParseMode: ParseMode? = null,
|
||||
explanationParseMode: ParseMode? = null,
|
||||
@@ -41,7 +41,7 @@ public suspend fun TelegramBot.sendQuizPoll(
|
||||
chatId = chatId,
|
||||
question = question,
|
||||
options = options,
|
||||
correctOptionId = correctOptionId,
|
||||
correctOptionIds = correctOptionIds,
|
||||
explanation = explanation,
|
||||
questionParseMode = questionParseMode,
|
||||
explanationParseMode = explanationParseMode,
|
||||
@@ -66,7 +66,7 @@ public suspend fun TelegramBot.sendQuizPoll(
|
||||
chatId: ChatIdentifier,
|
||||
questionEntities: List<TextSource>,
|
||||
options: List<InputPollOption>,
|
||||
correctOptionId: Int,
|
||||
correctOptionIds: List<Int>,
|
||||
explanation: String?,
|
||||
explanationParseMode: ParseMode? = null,
|
||||
isAnonymous: Boolean = true,
|
||||
@@ -88,7 +88,7 @@ public suspend fun TelegramBot.sendQuizPoll(
|
||||
chatId = chatId,
|
||||
questionEntities = questionEntities,
|
||||
options = options,
|
||||
correctOptionId = correctOptionId,
|
||||
correctOptionIds = correctOptionIds,
|
||||
explanation = explanation,
|
||||
explanationParseMode = explanationParseMode,
|
||||
isAnonymous = isAnonymous,
|
||||
@@ -112,7 +112,7 @@ public suspend fun TelegramBot.sendQuizPoll(
|
||||
chatId: ChatIdentifier,
|
||||
question: String,
|
||||
options: List<InputPollOption>,
|
||||
correctOptionId: Int,
|
||||
correctOptionIds: List<Int>,
|
||||
explanationTextSources: List<TextSource>? = null,
|
||||
questionParseMode: ParseMode? = null,
|
||||
isAnonymous: Boolean = true,
|
||||
@@ -134,7 +134,7 @@ public suspend fun TelegramBot.sendQuizPoll(
|
||||
chatId = chatId,
|
||||
question = question,
|
||||
options = options,
|
||||
correctOptionId = correctOptionId,
|
||||
correctOptionIds = correctOptionIds,
|
||||
questionParseMode = questionParseMode,
|
||||
explanationTextSources = explanationTextSources,
|
||||
isAnonymous = isAnonymous,
|
||||
@@ -159,7 +159,7 @@ public suspend fun TelegramBot.sendQuizPoll(
|
||||
chatId: ChatIdentifier,
|
||||
questionEntities: List<TextSource>,
|
||||
options: List<InputPollOption>,
|
||||
correctOptionId: Int,
|
||||
correctOptionIds: List<Int>,
|
||||
explanationTextSources: List<TextSource>? = null,
|
||||
isAnonymous: Boolean = true,
|
||||
isClosed: Boolean = false,
|
||||
@@ -180,7 +180,7 @@ public suspend fun TelegramBot.sendQuizPoll(
|
||||
chatId = chatId,
|
||||
questionEntities = questionEntities,
|
||||
options = options,
|
||||
correctOptionId = correctOptionId,
|
||||
correctOptionIds = correctOptionIds,
|
||||
explanationTextSources = explanationTextSources,
|
||||
isAnonymous = isAnonymous,
|
||||
isClosed = isClosed,
|
||||
@@ -203,7 +203,7 @@ public suspend fun TelegramBot.sendQuizPoll(
|
||||
chatId: ChatIdentifier,
|
||||
question: String,
|
||||
options: List<InputPollOption>,
|
||||
correctOptionId: Int,
|
||||
correctOptionIds: List<Int>,
|
||||
closeInfo: ScheduledCloseInfo?,
|
||||
questionParseMode: ParseMode? = null,
|
||||
explanation: String?,
|
||||
@@ -225,7 +225,7 @@ public suspend fun TelegramBot.sendQuizPoll(
|
||||
chatId = chatId,
|
||||
question = question,
|
||||
options = options,
|
||||
correctOptionId = correctOptionId,
|
||||
correctOptionIds = correctOptionIds,
|
||||
closeInfo = closeInfo,
|
||||
explanation = explanation,
|
||||
questionParseMode = questionParseMode,
|
||||
@@ -249,7 +249,7 @@ public suspend fun TelegramBot.sendQuizPoll(
|
||||
chatId: ChatIdentifier,
|
||||
questionEntities: List<TextSource>,
|
||||
options: List<InputPollOption>,
|
||||
correctOptionId: Int,
|
||||
correctOptionIds: List<Int>,
|
||||
closeInfo: ScheduledCloseInfo?,
|
||||
explanation: String?,
|
||||
explanationParseMode: ParseMode? = null,
|
||||
@@ -270,7 +270,7 @@ public suspend fun TelegramBot.sendQuizPoll(
|
||||
chatId = chatId,
|
||||
questionEntities = questionEntities,
|
||||
options = options,
|
||||
correctOptionId = correctOptionId,
|
||||
correctOptionIds = correctOptionIds,
|
||||
closeInfo = closeInfo,
|
||||
explanation = explanation,
|
||||
explanationParseMode = explanationParseMode,
|
||||
@@ -293,7 +293,7 @@ public suspend fun TelegramBot.sendQuizPoll(
|
||||
chatId: ChatIdentifier,
|
||||
question: String,
|
||||
options: List<InputPollOption>,
|
||||
correctOptionId: Int,
|
||||
correctOptionIds: List<Int>,
|
||||
closeInfo: ScheduledCloseInfo?,
|
||||
questionParseMode: ParseMode? = null,
|
||||
explanationTextSources: List<TextSource>? = null,
|
||||
@@ -314,7 +314,7 @@ public suspend fun TelegramBot.sendQuizPoll(
|
||||
chatId = chatId,
|
||||
question = question,
|
||||
options = options,
|
||||
correctOptionId = correctOptionId,
|
||||
correctOptionIds = correctOptionIds,
|
||||
closeInfo = closeInfo,
|
||||
questionParseMode = questionParseMode,
|
||||
explanationTextSources = explanationTextSources,
|
||||
@@ -337,7 +337,7 @@ public suspend fun TelegramBot.sendQuizPoll(
|
||||
chatId: ChatIdentifier,
|
||||
questionEntities: List<TextSource>,
|
||||
options: List<InputPollOption>,
|
||||
correctOptionId: Int,
|
||||
correctOptionIds: List<Int>,
|
||||
closeInfo: ScheduledCloseInfo?,
|
||||
explanationTextSources: List<TextSource>? = null,
|
||||
isAnonymous: Boolean = true,
|
||||
@@ -357,7 +357,7 @@ public suspend fun TelegramBot.sendQuizPoll(
|
||||
chatId = chatId,
|
||||
questionEntities = questionEntities,
|
||||
options = options,
|
||||
correctOptionId = correctOptionId,
|
||||
correctOptionIds = correctOptionIds,
|
||||
closeInfo = closeInfo,
|
||||
explanationTextSources = explanationTextSources,
|
||||
isAnonymous = isAnonymous,
|
||||
|
||||
Reference in New Issue
Block a user