From c1160ff169d6d3793089c250c46051586d2b7303 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Sat, 31 Dec 2022 09:23:23 +0000 Subject: [PATCH] deploy: 92651fef785128e46d6c0827f0982691e2a516c1 --- .../-ktor-requests-executor/index.html | 40 +++++++++---------- .../index.html | 40 +++++++++---------- .../-base-requests-executor/index.html | 40 +++++++++---------- .../-requests-executor/index.html | 40 +++++++++---------- .../-behaviour-context-with-f-s-m/index.html | 40 +++++++++---------- .../-behaviour-context/index.html | 40 +++++++++---------- .../index.html | 40 +++++++++---------- .../-default-behaviour-context/index.html | 40 +++++++++---------- ...te-accumulated-updates-retriever-flow.html | 4 +- .../flush-accumulated-updates.html | 4 +- .../index.html | 36 ++++++++--------- .../long-polling-flow.html | 4 +- .../long-polling.html | 4 +- .../retrieve-accumulated-updates.html | 4 +- ...rt-getting-of-updates-by-long-polling.html | 4 +- .../-bot-action/index.html | 4 +- .../-choose-sticker-action/index.html | 4 +- .../-custom-bot-action/index.html | 4 +- .../-find-location-action/index.html | 4 +- .../-record-video-action/index.html | 4 +- .../-record-video-note-action/index.html | 4 +- .../-record-voice-action/index.html | 4 +- .../-typing-action/index.html | 4 +- .../-upload-document-action/index.html | 4 +- .../-upload-photo-action/index.html | 4 +- .../-upload-video-action/index.html | 4 +- .../-upload-video-note-action/index.html | 4 +- .../-upload-voice-action/index.html | 4 +- docs/package-list | 18 ++++----- navigation.html | 12 +++--- scripts/pages.json | 2 +- 31 files changed, 232 insertions(+), 232 deletions(-) diff --git a/docs/dev.inmo.tgbotapi.bot.ktor/-ktor-requests-executor/index.html b/docs/dev.inmo.tgbotapi.bot.ktor/-ktor-requests-executor/index.html index 16f7d19ab7..bf17f0c43e 100644 --- a/docs/dev.inmo.tgbotapi.bot.ktor/-ktor-requests-executor/index.html +++ b/docs/dev.inmo.tgbotapi.bot.ktor/-ktor-requests-executor/index.html @@ -492,17 +492,17 @@ - +
- +
Link copied to clipboard
-
fun TelegramBot.createAccumulatedUpdatesRetrieverFlow(avoidInlineQueries: Boolean = false, avoidCallbackQueries: Boolean = false, exceptionsHandler: ExceptionHandler<Unit>? = null, allowedUpdates: List<String>? = ALL_UPDATES_LIST): Flow<Update>
+
fun TelegramBot.createAccumulatedUpdatesRetrieverFlow(avoidInlineQueries: Boolean = false, avoidCallbackQueries: Boolean = false, exceptionsHandler: ExceptionHandler<Unit>? = null, allowedUpdates: List<String>? = ALL_UPDATES_LIST, autoDisableWebhooks: Boolean = true): Flow<Update>
@@ -1031,7 +1031,7 @@
-
suspend fun TelegramBot.editMessageCaption(chatId: ChatIdentifier, messageId: MessageId, text: String, parseMode: ParseMode? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<MediaContent>
suspend fun TelegramBot.editMessageCaption(chat: Chat, messageId: MessageId, text: String, parseMode: ParseMode? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<MediaContent>
suspend fun <T : TextedWithTextSources, MediaContent> TelegramBot.editMessageCaption(message: ContentMessage<T>, text: String, parseMode: ParseMode? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<T>
suspend fun TelegramBot.editMessageCaption(inlineMessageId: InlineMessageIdentifier, media: TelegramMedia, replyMarkup: InlineKeyboardMarkup? = null): Boolean
suspend fun TelegramBot.editMessageCaption(chat: Chat, messageId: MessageId, entities: List<TextSource>, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<MediaContent>
suspend fun TelegramBot.editMessageCaption(inlineMessageId: InlineMessageIdentifier, text: String, parseMode: ParseMode? = null, replyMarkup: InlineKeyboardMarkup? = null): Boolean
suspend fun TelegramBot.editMessageCaption(inlineMessageId: InlineMessageIdentifier, entities: TextSourcesList, replyMarkup: InlineKeyboardMarkup? = null): Boolean
+
suspend fun TelegramBot.editMessageCaption(chatId: ChatIdentifier, messageId: MessageId, text: String, parseMode: ParseMode? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<MediaContent>
suspend fun TelegramBot.editMessageCaption(chat: Chat, messageId: MessageId, text: String, parseMode: ParseMode? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<MediaContent>
suspend fun <T : TextedWithTextSources, MediaContent> TelegramBot.editMessageCaption(message: ContentMessage<T>, text: String, parseMode: ParseMode? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<T>
suspend fun TelegramBot.editMessageCaption(chat: Chat, messageId: MessageId, entities: List<TextSource>, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<MediaContent>
suspend fun TelegramBot.editMessageCaption(inlineMessageId: InlineMessageIdentifier, text: String, parseMode: ParseMode? = null, replyMarkup: InlineKeyboardMarkup? = null): Boolean
suspend fun TelegramBot.editMessageCaption(inlineMessageId: InlineMessageIdentifier, entities: TextSourcesList, replyMarkup: InlineKeyboardMarkup? = null): Boolean
suspend fun TelegramBot.editMessageCaption(inlineMessageId: InlineMessageIdentifier, media: TelegramMedia, replyMarkup: InlineKeyboardMarkup? = null): Boolean
@@ -1076,7 +1076,7 @@
-
suspend fun TelegramBot.editMessageText(chatId: ChatIdentifier, messageId: MessageId, text: String, parseMode: ParseMode? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(chat: Chat, messageId: MessageId, text: String, parseMode: ParseMode? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: ContentMessage<TextContent>, text: String, parseMode: ParseMode? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(chatId: ChatIdentifier, messageId: MessageId, entities: TextSourcesList, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: ContentMessage<TextContent>, separator: TextSource? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: ContentMessage<TextContent>, separator: String, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(chatId: ChatIdentifier, messageId: MessageId, separator: TextSource? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(chatId: ChatIdentifier, messageId: MessageId, separator: String, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(chat: Chat, messageId: MessageId, entities: TextSourcesList, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(chat: Chat, messageId: MessageId, separator: TextSource? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(chat: Chat, messageId: MessageId, separator: String, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: ContentMessage<TextContent>, entities: TextSourcesList, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: ContentMessage<TextContent>, separator: TextSource? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: ContentMessage<TextContent>, separator: String, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: Message, entities: TextSourcesList, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: Message, separator: TextSource? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: Message, separator: String, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(inlineMessageId: InlineMessageIdentifier, text: String, parseMode: ParseMode? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): Boolean
suspend fun TelegramBot.editMessageText(inlineMessageId: InlineMessageIdentifier, entities: TextSourcesList, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): Boolean
suspend fun TelegramBot.editMessageText(inlineMessageId: InlineMessageIdentifier, separator: TextSource? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): Boolean
suspend fun TelegramBot.editMessageText(inlineMessageId: InlineMessageIdentifier, separator: String, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): Boolean
+
suspend fun TelegramBot.editMessageText(chatId: ChatIdentifier, messageId: MessageId, text: String, parseMode: ParseMode? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: ContentMessage<TextContent>, separator: TextSource? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: ContentMessage<TextContent>, separator: String, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(chat: Chat, messageId: MessageId, text: String, parseMode: ParseMode? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: ContentMessage<TextContent>, text: String, parseMode: ParseMode? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(chatId: ChatIdentifier, messageId: MessageId, entities: TextSourcesList, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(chatId: ChatIdentifier, messageId: MessageId, separator: TextSource? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(chatId: ChatIdentifier, messageId: MessageId, separator: String, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(chat: Chat, messageId: MessageId, entities: TextSourcesList, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(chat: Chat, messageId: MessageId, separator: TextSource? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(chat: Chat, messageId: MessageId, separator: String, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: ContentMessage<TextContent>, entities: TextSourcesList, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: ContentMessage<TextContent>, separator: TextSource? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: ContentMessage<TextContent>, separator: String, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: Message, entities: TextSourcesList, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: Message, separator: TextSource? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: Message, separator: String, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(inlineMessageId: InlineMessageIdentifier, text: String, parseMode: ParseMode? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): Boolean
suspend fun TelegramBot.editMessageText(inlineMessageId: InlineMessageIdentifier, entities: TextSourcesList, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): Boolean
suspend fun TelegramBot.editMessageText(inlineMessageId: InlineMessageIdentifier, separator: TextSource? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): Boolean
suspend fun TelegramBot.editMessageText(inlineMessageId: InlineMessageIdentifier, separator: String, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): Boolean
@@ -1126,17 +1126,17 @@ - +
- +
Link copied to clipboard
-
suspend fun TelegramBot.flushAccumulatedUpdates(avoidInlineQueries: Boolean = false, avoidCallbackQueries: Boolean = false, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), allowedUpdates: List<String>? = ALL_UPDATES_LIST, exceptionsHandler: ExceptionHandler<Unit>? = null, updatesReceiver: UpdateReceiver<Update> = {})
+
suspend fun TelegramBot.flushAccumulatedUpdates(avoidInlineQueries: Boolean = false, avoidCallbackQueries: Boolean = false, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), allowedUpdates: List<String>? = ALL_UPDATES_LIST, exceptionsHandler: ExceptionHandler<Unit>? = null, autoDisableWebhooks: Boolean = true, updatesReceiver: UpdateReceiver<Update> = {})
@@ -1546,32 +1546,32 @@
- +
- +
Link copied to clipboard
-
fun TelegramBot.longPolling(updatesFilter: UpdatesFilter, timeoutSeconds: Seconds = 30, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), exceptionsHandler: ExceptionHandler<Unit>? = null): Job

Will startGettingOfUpdatesByLongPolling using incoming flowsUpdatesFilter. It is assumed that you ALREADY CONFIGURE all updates receivers, because this method will trigger getting of updates and.

fun TelegramBot.longPolling(timeoutSeconds: Seconds = 30, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), exceptionsHandler: ExceptionHandler<Unit>? = null, flowsUpdatesFilterUpdatesKeeperCount: Int = 100, flowUpdatesPreset: FlowsUpdatesFilter.() -> Unit): Job

Will enable longPolling by creating FlowsUpdatesFilter with flowsUpdatesFilterUpdatesKeeperCount as an argument and applied flowUpdatesPreset. It is assumed that you WILL CONFIGURE all updates receivers in flowUpdatesPreset, because of after flowUpdatesPreset method calling will be triggered getting of updates.

+
fun TelegramBot.longPolling(updatesFilter: UpdatesFilter, timeoutSeconds: Seconds = 30, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), autoDisableWebhooks: Boolean = true, exceptionsHandler: ExceptionHandler<Unit>? = null): Job

Will startGettingOfUpdatesByLongPolling using incoming flowsUpdatesFilter. It is assumed that you ALREADY CONFIGURE all updates receivers, because this method will trigger getting of updates and.

fun TelegramBot.longPolling(timeoutSeconds: Seconds = 30, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), exceptionsHandler: ExceptionHandler<Unit>? = null, flowsUpdatesFilterUpdatesKeeperCount: Int = 100, autoDisableWebhooks: Boolean = true, flowUpdatesPreset: FlowsUpdatesFilter.() -> Unit): Job

Will enable longPolling by creating FlowsUpdatesFilter with flowsUpdatesFilterUpdatesKeeperCount as an argument and applied flowUpdatesPreset. It is assumed that you WILL CONFIGURE all updates receivers in flowUpdatesPreset, because of after flowUpdatesPreset method calling will be triggered getting of updates.

- +
- +
Link copied to clipboard
-
fun TelegramBot.longPollingFlow(timeoutSeconds: Seconds = 30, exceptionsHandler: ExceptionHandler<Unit>? = null, allowedUpdates: List<String>? = ALL_UPDATES_LIST): Flow<Update>
+
fun TelegramBot.longPollingFlow(timeoutSeconds: Seconds = 30, exceptionsHandler: ExceptionHandler<Unit>? = null, allowedUpdates: List<String>? = ALL_UPDATES_LIST, autoDisableWebhooks: Boolean = true): Flow<Update>
@@ -1891,17 +1891,17 @@
- +
- +
Link copied to clipboard
-
fun TelegramBot.retrieveAccumulatedUpdates(avoidInlineQueries: Boolean = false, avoidCallbackQueries: Boolean = false, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), exceptionsHandler: ExceptionHandler<Unit>? = null, allowedUpdates: List<String>? = ALL_UPDATES_LIST, updatesReceiver: UpdateReceiver<Update>): Job
fun TelegramBot.retrieveAccumulatedUpdates(flowsUpdatesFilter: FlowsUpdatesFilter, avoidInlineQueries: Boolean = false, avoidCallbackQueries: Boolean = false, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), exceptionsHandler: ExceptionHandler<Unit>? = null): Job
+
fun TelegramBot.retrieveAccumulatedUpdates(avoidInlineQueries: Boolean = false, avoidCallbackQueries: Boolean = false, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), exceptionsHandler: ExceptionHandler<Unit>? = null, allowedUpdates: List<String>? = ALL_UPDATES_LIST, autoDisableWebhooks: Boolean = true, updatesReceiver: UpdateReceiver<Update>): Job
fun TelegramBot.retrieveAccumulatedUpdates(flowsUpdatesFilter: FlowsUpdatesFilter, avoidInlineQueries: Boolean = false, avoidCallbackQueries: Boolean = false, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), autoDisableWebhooks: Boolean = true, exceptionsHandler: ExceptionHandler<Unit>? = null): Job
@@ -2748,17 +2748,17 @@
- +
- +
Link copied to clipboard
-
fun TelegramBot.startGettingOfUpdatesByLongPolling(timeoutSeconds: Seconds = 30, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), exceptionsHandler: ExceptionHandler<Unit>? = null, allowedUpdates: List<String>? = ALL_UPDATES_LIST, updatesReceiver: UpdateReceiver<Update>): Job
fun RequestsExecutor.startGettingOfUpdatesByLongPolling(updatesFilter: UpdatesFilter, timeoutSeconds: Seconds = 30, exceptionsHandler: ExceptionHandler<Unit>? = null, scope: CoroutineScope = CoroutineScope(Dispatchers.Default)): Job
+
fun TelegramBot.startGettingOfUpdatesByLongPolling(timeoutSeconds: Seconds = 30, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), exceptionsHandler: ExceptionHandler<Unit>? = null, allowedUpdates: List<String>? = ALL_UPDATES_LIST, autoDisableWebhooks: Boolean = true, updatesReceiver: UpdateReceiver<Update>): Job
fun RequestsExecutor.startGettingOfUpdatesByLongPolling(updatesFilter: UpdatesFilter, timeoutSeconds: Seconds = 30, exceptionsHandler: ExceptionHandler<Unit>? = null, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), autoDisableWebhooks: Boolean = true): Job
diff --git a/docs/dev.inmo.tgbotapi.bot.multiserver/-simple-multi-server-requests-executor/index.html b/docs/dev.inmo.tgbotapi.bot.multiserver/-simple-multi-server-requests-executor/index.html index 98a58c7beb..e7b0c77b1d 100644 --- a/docs/dev.inmo.tgbotapi.bot.multiserver/-simple-multi-server-requests-executor/index.html +++ b/docs/dev.inmo.tgbotapi.bot.multiserver/-simple-multi-server-requests-executor/index.html @@ -521,17 +521,17 @@
- +
- +
Link copied to clipboard
-
fun TelegramBot.createAccumulatedUpdatesRetrieverFlow(avoidInlineQueries: Boolean = false, avoidCallbackQueries: Boolean = false, exceptionsHandler: ExceptionHandler<Unit>? = null, allowedUpdates: List<String>? = ALL_UPDATES_LIST): Flow<Update>
+
fun TelegramBot.createAccumulatedUpdatesRetrieverFlow(avoidInlineQueries: Boolean = false, avoidCallbackQueries: Boolean = false, exceptionsHandler: ExceptionHandler<Unit>? = null, allowedUpdates: List<String>? = ALL_UPDATES_LIST, autoDisableWebhooks: Boolean = true): Flow<Update>
@@ -1060,7 +1060,7 @@
-
suspend fun TelegramBot.editMessageCaption(chatId: ChatIdentifier, messageId: MessageId, text: String, parseMode: ParseMode? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<MediaContent>
suspend fun TelegramBot.editMessageCaption(chat: Chat, messageId: MessageId, text: String, parseMode: ParseMode? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<MediaContent>
suspend fun <T : TextedWithTextSources, MediaContent> TelegramBot.editMessageCaption(message: ContentMessage<T>, text: String, parseMode: ParseMode? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<T>
suspend fun TelegramBot.editMessageCaption(inlineMessageId: InlineMessageIdentifier, media: TelegramMedia, replyMarkup: InlineKeyboardMarkup? = null): Boolean
suspend fun TelegramBot.editMessageCaption(chat: Chat, messageId: MessageId, entities: List<TextSource>, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<MediaContent>
suspend fun TelegramBot.editMessageCaption(inlineMessageId: InlineMessageIdentifier, text: String, parseMode: ParseMode? = null, replyMarkup: InlineKeyboardMarkup? = null): Boolean
suspend fun TelegramBot.editMessageCaption(inlineMessageId: InlineMessageIdentifier, entities: TextSourcesList, replyMarkup: InlineKeyboardMarkup? = null): Boolean
+
suspend fun TelegramBot.editMessageCaption(chatId: ChatIdentifier, messageId: MessageId, text: String, parseMode: ParseMode? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<MediaContent>
suspend fun TelegramBot.editMessageCaption(chat: Chat, messageId: MessageId, text: String, parseMode: ParseMode? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<MediaContent>
suspend fun <T : TextedWithTextSources, MediaContent> TelegramBot.editMessageCaption(message: ContentMessage<T>, text: String, parseMode: ParseMode? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<T>
suspend fun TelegramBot.editMessageCaption(chat: Chat, messageId: MessageId, entities: List<TextSource>, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<MediaContent>
suspend fun TelegramBot.editMessageCaption(inlineMessageId: InlineMessageIdentifier, text: String, parseMode: ParseMode? = null, replyMarkup: InlineKeyboardMarkup? = null): Boolean
suspend fun TelegramBot.editMessageCaption(inlineMessageId: InlineMessageIdentifier, entities: TextSourcesList, replyMarkup: InlineKeyboardMarkup? = null): Boolean
suspend fun TelegramBot.editMessageCaption(inlineMessageId: InlineMessageIdentifier, media: TelegramMedia, replyMarkup: InlineKeyboardMarkup? = null): Boolean
@@ -1105,7 +1105,7 @@
-
suspend fun TelegramBot.editMessageText(chatId: ChatIdentifier, messageId: MessageId, text: String, parseMode: ParseMode? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(chat: Chat, messageId: MessageId, text: String, parseMode: ParseMode? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: ContentMessage<TextContent>, text: String, parseMode: ParseMode? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(chatId: ChatIdentifier, messageId: MessageId, entities: TextSourcesList, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: ContentMessage<TextContent>, separator: TextSource? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: ContentMessage<TextContent>, separator: String, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(chatId: ChatIdentifier, messageId: MessageId, separator: TextSource? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(chatId: ChatIdentifier, messageId: MessageId, separator: String, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(chat: Chat, messageId: MessageId, entities: TextSourcesList, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(chat: Chat, messageId: MessageId, separator: TextSource? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(chat: Chat, messageId: MessageId, separator: String, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: ContentMessage<TextContent>, entities: TextSourcesList, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: ContentMessage<TextContent>, separator: TextSource? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: ContentMessage<TextContent>, separator: String, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: Message, entities: TextSourcesList, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: Message, separator: TextSource? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: Message, separator: String, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(inlineMessageId: InlineMessageIdentifier, text: String, parseMode: ParseMode? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): Boolean
suspend fun TelegramBot.editMessageText(inlineMessageId: InlineMessageIdentifier, entities: TextSourcesList, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): Boolean
suspend fun TelegramBot.editMessageText(inlineMessageId: InlineMessageIdentifier, separator: TextSource? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): Boolean
suspend fun TelegramBot.editMessageText(inlineMessageId: InlineMessageIdentifier, separator: String, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): Boolean
+
suspend fun TelegramBot.editMessageText(chatId: ChatIdentifier, messageId: MessageId, text: String, parseMode: ParseMode? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: ContentMessage<TextContent>, separator: TextSource? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: ContentMessage<TextContent>, separator: String, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(chat: Chat, messageId: MessageId, text: String, parseMode: ParseMode? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: ContentMessage<TextContent>, text: String, parseMode: ParseMode? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(chatId: ChatIdentifier, messageId: MessageId, entities: TextSourcesList, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(chatId: ChatIdentifier, messageId: MessageId, separator: TextSource? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(chatId: ChatIdentifier, messageId: MessageId, separator: String, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(chat: Chat, messageId: MessageId, entities: TextSourcesList, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(chat: Chat, messageId: MessageId, separator: TextSource? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(chat: Chat, messageId: MessageId, separator: String, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: ContentMessage<TextContent>, entities: TextSourcesList, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: ContentMessage<TextContent>, separator: TextSource? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: ContentMessage<TextContent>, separator: String, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: Message, entities: TextSourcesList, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: Message, separator: TextSource? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: Message, separator: String, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(inlineMessageId: InlineMessageIdentifier, text: String, parseMode: ParseMode? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): Boolean
suspend fun TelegramBot.editMessageText(inlineMessageId: InlineMessageIdentifier, entities: TextSourcesList, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): Boolean
suspend fun TelegramBot.editMessageText(inlineMessageId: InlineMessageIdentifier, separator: TextSource? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): Boolean
suspend fun TelegramBot.editMessageText(inlineMessageId: InlineMessageIdentifier, separator: String, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): Boolean
@@ -1155,17 +1155,17 @@ - +
- +
Link copied to clipboard
-
suspend fun TelegramBot.flushAccumulatedUpdates(avoidInlineQueries: Boolean = false, avoidCallbackQueries: Boolean = false, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), allowedUpdates: List<String>? = ALL_UPDATES_LIST, exceptionsHandler: ExceptionHandler<Unit>? = null, updatesReceiver: UpdateReceiver<Update> = {})
+
suspend fun TelegramBot.flushAccumulatedUpdates(avoidInlineQueries: Boolean = false, avoidCallbackQueries: Boolean = false, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), allowedUpdates: List<String>? = ALL_UPDATES_LIST, exceptionsHandler: ExceptionHandler<Unit>? = null, autoDisableWebhooks: Boolean = true, updatesReceiver: UpdateReceiver<Update> = {})
@@ -1575,32 +1575,32 @@
- +
- +
Link copied to clipboard
-
fun TelegramBot.longPolling(updatesFilter: UpdatesFilter, timeoutSeconds: Seconds = 30, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), exceptionsHandler: ExceptionHandler<Unit>? = null): Job

Will startGettingOfUpdatesByLongPolling using incoming flowsUpdatesFilter. It is assumed that you ALREADY CONFIGURE all updates receivers, because this method will trigger getting of updates and.

fun TelegramBot.longPolling(timeoutSeconds: Seconds = 30, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), exceptionsHandler: ExceptionHandler<Unit>? = null, flowsUpdatesFilterUpdatesKeeperCount: Int = 100, flowUpdatesPreset: FlowsUpdatesFilter.() -> Unit): Job

Will enable longPolling by creating FlowsUpdatesFilter with flowsUpdatesFilterUpdatesKeeperCount as an argument and applied flowUpdatesPreset. It is assumed that you WILL CONFIGURE all updates receivers in flowUpdatesPreset, because of after flowUpdatesPreset method calling will be triggered getting of updates.

+
fun TelegramBot.longPolling(updatesFilter: UpdatesFilter, timeoutSeconds: Seconds = 30, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), autoDisableWebhooks: Boolean = true, exceptionsHandler: ExceptionHandler<Unit>? = null): Job

Will startGettingOfUpdatesByLongPolling using incoming flowsUpdatesFilter. It is assumed that you ALREADY CONFIGURE all updates receivers, because this method will trigger getting of updates and.

fun TelegramBot.longPolling(timeoutSeconds: Seconds = 30, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), exceptionsHandler: ExceptionHandler<Unit>? = null, flowsUpdatesFilterUpdatesKeeperCount: Int = 100, autoDisableWebhooks: Boolean = true, flowUpdatesPreset: FlowsUpdatesFilter.() -> Unit): Job

Will enable longPolling by creating FlowsUpdatesFilter with flowsUpdatesFilterUpdatesKeeperCount as an argument and applied flowUpdatesPreset. It is assumed that you WILL CONFIGURE all updates receivers in flowUpdatesPreset, because of after flowUpdatesPreset method calling will be triggered getting of updates.

- +
- +
Link copied to clipboard
-
fun TelegramBot.longPollingFlow(timeoutSeconds: Seconds = 30, exceptionsHandler: ExceptionHandler<Unit>? = null, allowedUpdates: List<String>? = ALL_UPDATES_LIST): Flow<Update>
+
fun TelegramBot.longPollingFlow(timeoutSeconds: Seconds = 30, exceptionsHandler: ExceptionHandler<Unit>? = null, allowedUpdates: List<String>? = ALL_UPDATES_LIST, autoDisableWebhooks: Boolean = true): Flow<Update>
@@ -1920,17 +1920,17 @@
- +
- +
Link copied to clipboard
-
fun TelegramBot.retrieveAccumulatedUpdates(avoidInlineQueries: Boolean = false, avoidCallbackQueries: Boolean = false, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), exceptionsHandler: ExceptionHandler<Unit>? = null, allowedUpdates: List<String>? = ALL_UPDATES_LIST, updatesReceiver: UpdateReceiver<Update>): Job
fun TelegramBot.retrieveAccumulatedUpdates(flowsUpdatesFilter: FlowsUpdatesFilter, avoidInlineQueries: Boolean = false, avoidCallbackQueries: Boolean = false, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), exceptionsHandler: ExceptionHandler<Unit>? = null): Job
+
fun TelegramBot.retrieveAccumulatedUpdates(avoidInlineQueries: Boolean = false, avoidCallbackQueries: Boolean = false, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), exceptionsHandler: ExceptionHandler<Unit>? = null, allowedUpdates: List<String>? = ALL_UPDATES_LIST, autoDisableWebhooks: Boolean = true, updatesReceiver: UpdateReceiver<Update>): Job
fun TelegramBot.retrieveAccumulatedUpdates(flowsUpdatesFilter: FlowsUpdatesFilter, avoidInlineQueries: Boolean = false, avoidCallbackQueries: Boolean = false, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), autoDisableWebhooks: Boolean = true, exceptionsHandler: ExceptionHandler<Unit>? = null): Job
@@ -2777,17 +2777,17 @@
- +
- +
Link copied to clipboard
-
fun TelegramBot.startGettingOfUpdatesByLongPolling(timeoutSeconds: Seconds = 30, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), exceptionsHandler: ExceptionHandler<Unit>? = null, allowedUpdates: List<String>? = ALL_UPDATES_LIST, updatesReceiver: UpdateReceiver<Update>): Job
fun RequestsExecutor.startGettingOfUpdatesByLongPolling(updatesFilter: UpdatesFilter, timeoutSeconds: Seconds = 30, exceptionsHandler: ExceptionHandler<Unit>? = null, scope: CoroutineScope = CoroutineScope(Dispatchers.Default)): Job
+
fun TelegramBot.startGettingOfUpdatesByLongPolling(timeoutSeconds: Seconds = 30, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), exceptionsHandler: ExceptionHandler<Unit>? = null, allowedUpdates: List<String>? = ALL_UPDATES_LIST, autoDisableWebhooks: Boolean = true, updatesReceiver: UpdateReceiver<Update>): Job
fun RequestsExecutor.startGettingOfUpdatesByLongPolling(updatesFilter: UpdatesFilter, timeoutSeconds: Seconds = 30, exceptionsHandler: ExceptionHandler<Unit>? = null, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), autoDisableWebhooks: Boolean = true): Job
diff --git a/docs/dev.inmo.tgbotapi.bot/-base-requests-executor/index.html b/docs/dev.inmo.tgbotapi.bot/-base-requests-executor/index.html index b46090ec9c..379ff38a8a 100644 --- a/docs/dev.inmo.tgbotapi.bot/-base-requests-executor/index.html +++ b/docs/dev.inmo.tgbotapi.bot/-base-requests-executor/index.html @@ -505,17 +505,17 @@
- +
- +
Link copied to clipboard
-
fun TelegramBot.createAccumulatedUpdatesRetrieverFlow(avoidInlineQueries: Boolean = false, avoidCallbackQueries: Boolean = false, exceptionsHandler: ExceptionHandler<Unit>? = null, allowedUpdates: List<String>? = ALL_UPDATES_LIST): Flow<Update>
+
fun TelegramBot.createAccumulatedUpdatesRetrieverFlow(avoidInlineQueries: Boolean = false, avoidCallbackQueries: Boolean = false, exceptionsHandler: ExceptionHandler<Unit>? = null, allowedUpdates: List<String>? = ALL_UPDATES_LIST, autoDisableWebhooks: Boolean = true): Flow<Update>
@@ -1044,7 +1044,7 @@
-
suspend fun TelegramBot.editMessageCaption(chatId: ChatIdentifier, messageId: MessageId, text: String, parseMode: ParseMode? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<MediaContent>
suspend fun TelegramBot.editMessageCaption(chat: Chat, messageId: MessageId, text: String, parseMode: ParseMode? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<MediaContent>
suspend fun <T : TextedWithTextSources, MediaContent> TelegramBot.editMessageCaption(message: ContentMessage<T>, text: String, parseMode: ParseMode? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<T>
suspend fun TelegramBot.editMessageCaption(inlineMessageId: InlineMessageIdentifier, media: TelegramMedia, replyMarkup: InlineKeyboardMarkup? = null): Boolean
suspend fun TelegramBot.editMessageCaption(chat: Chat, messageId: MessageId, entities: List<TextSource>, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<MediaContent>
suspend fun TelegramBot.editMessageCaption(inlineMessageId: InlineMessageIdentifier, text: String, parseMode: ParseMode? = null, replyMarkup: InlineKeyboardMarkup? = null): Boolean
suspend fun TelegramBot.editMessageCaption(inlineMessageId: InlineMessageIdentifier, entities: TextSourcesList, replyMarkup: InlineKeyboardMarkup? = null): Boolean
+
suspend fun TelegramBot.editMessageCaption(chatId: ChatIdentifier, messageId: MessageId, text: String, parseMode: ParseMode? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<MediaContent>
suspend fun TelegramBot.editMessageCaption(chat: Chat, messageId: MessageId, text: String, parseMode: ParseMode? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<MediaContent>
suspend fun <T : TextedWithTextSources, MediaContent> TelegramBot.editMessageCaption(message: ContentMessage<T>, text: String, parseMode: ParseMode? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<T>
suspend fun TelegramBot.editMessageCaption(chat: Chat, messageId: MessageId, entities: List<TextSource>, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<MediaContent>
suspend fun TelegramBot.editMessageCaption(inlineMessageId: InlineMessageIdentifier, text: String, parseMode: ParseMode? = null, replyMarkup: InlineKeyboardMarkup? = null): Boolean
suspend fun TelegramBot.editMessageCaption(inlineMessageId: InlineMessageIdentifier, entities: TextSourcesList, replyMarkup: InlineKeyboardMarkup? = null): Boolean
suspend fun TelegramBot.editMessageCaption(inlineMessageId: InlineMessageIdentifier, media: TelegramMedia, replyMarkup: InlineKeyboardMarkup? = null): Boolean
@@ -1089,7 +1089,7 @@
-
suspend fun TelegramBot.editMessageText(chatId: ChatIdentifier, messageId: MessageId, text: String, parseMode: ParseMode? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(chat: Chat, messageId: MessageId, text: String, parseMode: ParseMode? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: ContentMessage<TextContent>, text: String, parseMode: ParseMode? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(chatId: ChatIdentifier, messageId: MessageId, entities: TextSourcesList, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: ContentMessage<TextContent>, separator: TextSource? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: ContentMessage<TextContent>, separator: String, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(chatId: ChatIdentifier, messageId: MessageId, separator: TextSource? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(chatId: ChatIdentifier, messageId: MessageId, separator: String, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(chat: Chat, messageId: MessageId, entities: TextSourcesList, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(chat: Chat, messageId: MessageId, separator: TextSource? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(chat: Chat, messageId: MessageId, separator: String, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: ContentMessage<TextContent>, entities: TextSourcesList, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: ContentMessage<TextContent>, separator: TextSource? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: ContentMessage<TextContent>, separator: String, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: Message, entities: TextSourcesList, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: Message, separator: TextSource? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: Message, separator: String, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(inlineMessageId: InlineMessageIdentifier, text: String, parseMode: ParseMode? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): Boolean
suspend fun TelegramBot.editMessageText(inlineMessageId: InlineMessageIdentifier, entities: TextSourcesList, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): Boolean
suspend fun TelegramBot.editMessageText(inlineMessageId: InlineMessageIdentifier, separator: TextSource? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): Boolean
suspend fun TelegramBot.editMessageText(inlineMessageId: InlineMessageIdentifier, separator: String, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): Boolean
+
suspend fun TelegramBot.editMessageText(chatId: ChatIdentifier, messageId: MessageId, text: String, parseMode: ParseMode? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: ContentMessage<TextContent>, separator: TextSource? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: ContentMessage<TextContent>, separator: String, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(chat: Chat, messageId: MessageId, text: String, parseMode: ParseMode? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: ContentMessage<TextContent>, text: String, parseMode: ParseMode? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(chatId: ChatIdentifier, messageId: MessageId, entities: TextSourcesList, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(chatId: ChatIdentifier, messageId: MessageId, separator: TextSource? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(chatId: ChatIdentifier, messageId: MessageId, separator: String, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(chat: Chat, messageId: MessageId, entities: TextSourcesList, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(chat: Chat, messageId: MessageId, separator: TextSource? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(chat: Chat, messageId: MessageId, separator: String, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: ContentMessage<TextContent>, entities: TextSourcesList, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: ContentMessage<TextContent>, separator: TextSource? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: ContentMessage<TextContent>, separator: String, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: Message, entities: TextSourcesList, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: Message, separator: TextSource? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: Message, separator: String, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(inlineMessageId: InlineMessageIdentifier, text: String, parseMode: ParseMode? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): Boolean
suspend fun TelegramBot.editMessageText(inlineMessageId: InlineMessageIdentifier, entities: TextSourcesList, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): Boolean
suspend fun TelegramBot.editMessageText(inlineMessageId: InlineMessageIdentifier, separator: TextSource? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): Boolean
suspend fun TelegramBot.editMessageText(inlineMessageId: InlineMessageIdentifier, separator: String, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): Boolean
@@ -1139,17 +1139,17 @@ - +
- +
Link copied to clipboard
-
suspend fun TelegramBot.flushAccumulatedUpdates(avoidInlineQueries: Boolean = false, avoidCallbackQueries: Boolean = false, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), allowedUpdates: List<String>? = ALL_UPDATES_LIST, exceptionsHandler: ExceptionHandler<Unit>? = null, updatesReceiver: UpdateReceiver<Update> = {})
+
suspend fun TelegramBot.flushAccumulatedUpdates(avoidInlineQueries: Boolean = false, avoidCallbackQueries: Boolean = false, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), allowedUpdates: List<String>? = ALL_UPDATES_LIST, exceptionsHandler: ExceptionHandler<Unit>? = null, autoDisableWebhooks: Boolean = true, updatesReceiver: UpdateReceiver<Update> = {})
@@ -1559,32 +1559,32 @@
- +
- +
Link copied to clipboard
-
fun TelegramBot.longPolling(updatesFilter: UpdatesFilter, timeoutSeconds: Seconds = 30, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), exceptionsHandler: ExceptionHandler<Unit>? = null): Job

Will startGettingOfUpdatesByLongPolling using incoming flowsUpdatesFilter. It is assumed that you ALREADY CONFIGURE all updates receivers, because this method will trigger getting of updates and.

fun TelegramBot.longPolling(timeoutSeconds: Seconds = 30, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), exceptionsHandler: ExceptionHandler<Unit>? = null, flowsUpdatesFilterUpdatesKeeperCount: Int = 100, flowUpdatesPreset: FlowsUpdatesFilter.() -> Unit): Job

Will enable longPolling by creating FlowsUpdatesFilter with flowsUpdatesFilterUpdatesKeeperCount as an argument and applied flowUpdatesPreset. It is assumed that you WILL CONFIGURE all updates receivers in flowUpdatesPreset, because of after flowUpdatesPreset method calling will be triggered getting of updates.

+
fun TelegramBot.longPolling(updatesFilter: UpdatesFilter, timeoutSeconds: Seconds = 30, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), autoDisableWebhooks: Boolean = true, exceptionsHandler: ExceptionHandler<Unit>? = null): Job

Will startGettingOfUpdatesByLongPolling using incoming flowsUpdatesFilter. It is assumed that you ALREADY CONFIGURE all updates receivers, because this method will trigger getting of updates and.

fun TelegramBot.longPolling(timeoutSeconds: Seconds = 30, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), exceptionsHandler: ExceptionHandler<Unit>? = null, flowsUpdatesFilterUpdatesKeeperCount: Int = 100, autoDisableWebhooks: Boolean = true, flowUpdatesPreset: FlowsUpdatesFilter.() -> Unit): Job

Will enable longPolling by creating FlowsUpdatesFilter with flowsUpdatesFilterUpdatesKeeperCount as an argument and applied flowUpdatesPreset. It is assumed that you WILL CONFIGURE all updates receivers in flowUpdatesPreset, because of after flowUpdatesPreset method calling will be triggered getting of updates.

- +
- +
Link copied to clipboard
-
fun TelegramBot.longPollingFlow(timeoutSeconds: Seconds = 30, exceptionsHandler: ExceptionHandler<Unit>? = null, allowedUpdates: List<String>? = ALL_UPDATES_LIST): Flow<Update>
+
fun TelegramBot.longPollingFlow(timeoutSeconds: Seconds = 30, exceptionsHandler: ExceptionHandler<Unit>? = null, allowedUpdates: List<String>? = ALL_UPDATES_LIST, autoDisableWebhooks: Boolean = true): Flow<Update>
@@ -1904,17 +1904,17 @@
- +
- +
Link copied to clipboard
-
fun TelegramBot.retrieveAccumulatedUpdates(avoidInlineQueries: Boolean = false, avoidCallbackQueries: Boolean = false, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), exceptionsHandler: ExceptionHandler<Unit>? = null, allowedUpdates: List<String>? = ALL_UPDATES_LIST, updatesReceiver: UpdateReceiver<Update>): Job
fun TelegramBot.retrieveAccumulatedUpdates(flowsUpdatesFilter: FlowsUpdatesFilter, avoidInlineQueries: Boolean = false, avoidCallbackQueries: Boolean = false, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), exceptionsHandler: ExceptionHandler<Unit>? = null): Job
+
fun TelegramBot.retrieveAccumulatedUpdates(avoidInlineQueries: Boolean = false, avoidCallbackQueries: Boolean = false, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), exceptionsHandler: ExceptionHandler<Unit>? = null, allowedUpdates: List<String>? = ALL_UPDATES_LIST, autoDisableWebhooks: Boolean = true, updatesReceiver: UpdateReceiver<Update>): Job
fun TelegramBot.retrieveAccumulatedUpdates(flowsUpdatesFilter: FlowsUpdatesFilter, avoidInlineQueries: Boolean = false, avoidCallbackQueries: Boolean = false, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), autoDisableWebhooks: Boolean = true, exceptionsHandler: ExceptionHandler<Unit>? = null): Job
@@ -2761,17 +2761,17 @@
- +
- +
Link copied to clipboard
-
fun TelegramBot.startGettingOfUpdatesByLongPolling(timeoutSeconds: Seconds = 30, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), exceptionsHandler: ExceptionHandler<Unit>? = null, allowedUpdates: List<String>? = ALL_UPDATES_LIST, updatesReceiver: UpdateReceiver<Update>): Job
fun RequestsExecutor.startGettingOfUpdatesByLongPolling(updatesFilter: UpdatesFilter, timeoutSeconds: Seconds = 30, exceptionsHandler: ExceptionHandler<Unit>? = null, scope: CoroutineScope = CoroutineScope(Dispatchers.Default)): Job
+
fun TelegramBot.startGettingOfUpdatesByLongPolling(timeoutSeconds: Seconds = 30, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), exceptionsHandler: ExceptionHandler<Unit>? = null, allowedUpdates: List<String>? = ALL_UPDATES_LIST, autoDisableWebhooks: Boolean = true, updatesReceiver: UpdateReceiver<Update>): Job
fun RequestsExecutor.startGettingOfUpdatesByLongPolling(updatesFilter: UpdatesFilter, timeoutSeconds: Seconds = 30, exceptionsHandler: ExceptionHandler<Unit>? = null, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), autoDisableWebhooks: Boolean = true): Job
diff --git a/docs/dev.inmo.tgbotapi.bot/-requests-executor/index.html b/docs/dev.inmo.tgbotapi.bot/-requests-executor/index.html index b375bc6e97..f28e860f1d 100644 --- a/docs/dev.inmo.tgbotapi.bot/-requests-executor/index.html +++ b/docs/dev.inmo.tgbotapi.bot/-requests-executor/index.html @@ -525,17 +525,17 @@
- +
- +
Link copied to clipboard
-
fun TelegramBot.createAccumulatedUpdatesRetrieverFlow(avoidInlineQueries: Boolean = false, avoidCallbackQueries: Boolean = false, exceptionsHandler: ExceptionHandler<Unit>? = null, allowedUpdates: List<String>? = ALL_UPDATES_LIST): Flow<Update>
+
fun TelegramBot.createAccumulatedUpdatesRetrieverFlow(avoidInlineQueries: Boolean = false, avoidCallbackQueries: Boolean = false, exceptionsHandler: ExceptionHandler<Unit>? = null, allowedUpdates: List<String>? = ALL_UPDATES_LIST, autoDisableWebhooks: Boolean = true): Flow<Update>
@@ -1064,7 +1064,7 @@
-
suspend fun TelegramBot.editMessageCaption(chatId: ChatIdentifier, messageId: MessageId, text: String, parseMode: ParseMode? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<MediaContent>
suspend fun TelegramBot.editMessageCaption(chat: Chat, messageId: MessageId, text: String, parseMode: ParseMode? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<MediaContent>
suspend fun <T : TextedWithTextSources, MediaContent> TelegramBot.editMessageCaption(message: ContentMessage<T>, text: String, parseMode: ParseMode? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<T>
suspend fun TelegramBot.editMessageCaption(inlineMessageId: InlineMessageIdentifier, media: TelegramMedia, replyMarkup: InlineKeyboardMarkup? = null): Boolean
suspend fun TelegramBot.editMessageCaption(chat: Chat, messageId: MessageId, entities: List<TextSource>, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<MediaContent>
suspend fun TelegramBot.editMessageCaption(inlineMessageId: InlineMessageIdentifier, text: String, parseMode: ParseMode? = null, replyMarkup: InlineKeyboardMarkup? = null): Boolean
suspend fun TelegramBot.editMessageCaption(inlineMessageId: InlineMessageIdentifier, entities: TextSourcesList, replyMarkup: InlineKeyboardMarkup? = null): Boolean
+
suspend fun TelegramBot.editMessageCaption(chatId: ChatIdentifier, messageId: MessageId, text: String, parseMode: ParseMode? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<MediaContent>
suspend fun TelegramBot.editMessageCaption(chat: Chat, messageId: MessageId, text: String, parseMode: ParseMode? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<MediaContent>
suspend fun <T : TextedWithTextSources, MediaContent> TelegramBot.editMessageCaption(message: ContentMessage<T>, text: String, parseMode: ParseMode? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<T>
suspend fun TelegramBot.editMessageCaption(chat: Chat, messageId: MessageId, entities: List<TextSource>, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<MediaContent>
suspend fun TelegramBot.editMessageCaption(inlineMessageId: InlineMessageIdentifier, text: String, parseMode: ParseMode? = null, replyMarkup: InlineKeyboardMarkup? = null): Boolean
suspend fun TelegramBot.editMessageCaption(inlineMessageId: InlineMessageIdentifier, entities: TextSourcesList, replyMarkup: InlineKeyboardMarkup? = null): Boolean
suspend fun TelegramBot.editMessageCaption(inlineMessageId: InlineMessageIdentifier, media: TelegramMedia, replyMarkup: InlineKeyboardMarkup? = null): Boolean
@@ -1109,7 +1109,7 @@
-
suspend fun TelegramBot.editMessageText(chatId: ChatIdentifier, messageId: MessageId, text: String, parseMode: ParseMode? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(chat: Chat, messageId: MessageId, text: String, parseMode: ParseMode? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: ContentMessage<TextContent>, text: String, parseMode: ParseMode? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(chatId: ChatIdentifier, messageId: MessageId, entities: TextSourcesList, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: ContentMessage<TextContent>, separator: TextSource? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: ContentMessage<TextContent>, separator: String, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(chatId: ChatIdentifier, messageId: MessageId, separator: TextSource? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(chatId: ChatIdentifier, messageId: MessageId, separator: String, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(chat: Chat, messageId: MessageId, entities: TextSourcesList, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(chat: Chat, messageId: MessageId, separator: TextSource? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(chat: Chat, messageId: MessageId, separator: String, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: ContentMessage<TextContent>, entities: TextSourcesList, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: ContentMessage<TextContent>, separator: TextSource? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: ContentMessage<TextContent>, separator: String, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: Message, entities: TextSourcesList, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: Message, separator: TextSource? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: Message, separator: String, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(inlineMessageId: InlineMessageIdentifier, text: String, parseMode: ParseMode? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): Boolean
suspend fun TelegramBot.editMessageText(inlineMessageId: InlineMessageIdentifier, entities: TextSourcesList, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): Boolean
suspend fun TelegramBot.editMessageText(inlineMessageId: InlineMessageIdentifier, separator: TextSource? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): Boolean
suspend fun TelegramBot.editMessageText(inlineMessageId: InlineMessageIdentifier, separator: String, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): Boolean
+
suspend fun TelegramBot.editMessageText(chatId: ChatIdentifier, messageId: MessageId, text: String, parseMode: ParseMode? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: ContentMessage<TextContent>, separator: TextSource? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: ContentMessage<TextContent>, separator: String, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(chat: Chat, messageId: MessageId, text: String, parseMode: ParseMode? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: ContentMessage<TextContent>, text: String, parseMode: ParseMode? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(chatId: ChatIdentifier, messageId: MessageId, entities: TextSourcesList, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(chatId: ChatIdentifier, messageId: MessageId, separator: TextSource? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(chatId: ChatIdentifier, messageId: MessageId, separator: String, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(chat: Chat, messageId: MessageId, entities: TextSourcesList, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(chat: Chat, messageId: MessageId, separator: TextSource? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(chat: Chat, messageId: MessageId, separator: String, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: ContentMessage<TextContent>, entities: TextSourcesList, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: ContentMessage<TextContent>, separator: TextSource? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: ContentMessage<TextContent>, separator: String, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: Message, entities: TextSourcesList, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: Message, separator: TextSource? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: Message, separator: String, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(inlineMessageId: InlineMessageIdentifier, text: String, parseMode: ParseMode? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): Boolean
suspend fun TelegramBot.editMessageText(inlineMessageId: InlineMessageIdentifier, entities: TextSourcesList, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): Boolean
suspend fun TelegramBot.editMessageText(inlineMessageId: InlineMessageIdentifier, separator: TextSource? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): Boolean
suspend fun TelegramBot.editMessageText(inlineMessageId: InlineMessageIdentifier, separator: String, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): Boolean
@@ -1159,17 +1159,17 @@ - +
- +
Link copied to clipboard
-
suspend fun TelegramBot.flushAccumulatedUpdates(avoidInlineQueries: Boolean = false, avoidCallbackQueries: Boolean = false, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), allowedUpdates: List<String>? = ALL_UPDATES_LIST, exceptionsHandler: ExceptionHandler<Unit>? = null, updatesReceiver: UpdateReceiver<Update> = {})
+
suspend fun TelegramBot.flushAccumulatedUpdates(avoidInlineQueries: Boolean = false, avoidCallbackQueries: Boolean = false, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), allowedUpdates: List<String>? = ALL_UPDATES_LIST, exceptionsHandler: ExceptionHandler<Unit>? = null, autoDisableWebhooks: Boolean = true, updatesReceiver: UpdateReceiver<Update> = {})
@@ -1579,32 +1579,32 @@
- +
- +
Link copied to clipboard
-
fun TelegramBot.longPolling(updatesFilter: UpdatesFilter, timeoutSeconds: Seconds = 30, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), exceptionsHandler: ExceptionHandler<Unit>? = null): Job

Will startGettingOfUpdatesByLongPolling using incoming flowsUpdatesFilter. It is assumed that you ALREADY CONFIGURE all updates receivers, because this method will trigger getting of updates and.

fun TelegramBot.longPolling(timeoutSeconds: Seconds = 30, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), exceptionsHandler: ExceptionHandler<Unit>? = null, flowsUpdatesFilterUpdatesKeeperCount: Int = 100, flowUpdatesPreset: FlowsUpdatesFilter.() -> Unit): Job

Will enable longPolling by creating FlowsUpdatesFilter with flowsUpdatesFilterUpdatesKeeperCount as an argument and applied flowUpdatesPreset. It is assumed that you WILL CONFIGURE all updates receivers in flowUpdatesPreset, because of after flowUpdatesPreset method calling will be triggered getting of updates.

+
fun TelegramBot.longPolling(updatesFilter: UpdatesFilter, timeoutSeconds: Seconds = 30, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), autoDisableWebhooks: Boolean = true, exceptionsHandler: ExceptionHandler<Unit>? = null): Job

Will startGettingOfUpdatesByLongPolling using incoming flowsUpdatesFilter. It is assumed that you ALREADY CONFIGURE all updates receivers, because this method will trigger getting of updates and.

fun TelegramBot.longPolling(timeoutSeconds: Seconds = 30, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), exceptionsHandler: ExceptionHandler<Unit>? = null, flowsUpdatesFilterUpdatesKeeperCount: Int = 100, autoDisableWebhooks: Boolean = true, flowUpdatesPreset: FlowsUpdatesFilter.() -> Unit): Job

Will enable longPolling by creating FlowsUpdatesFilter with flowsUpdatesFilterUpdatesKeeperCount as an argument and applied flowUpdatesPreset. It is assumed that you WILL CONFIGURE all updates receivers in flowUpdatesPreset, because of after flowUpdatesPreset method calling will be triggered getting of updates.

- +
- +
Link copied to clipboard
-
fun TelegramBot.longPollingFlow(timeoutSeconds: Seconds = 30, exceptionsHandler: ExceptionHandler<Unit>? = null, allowedUpdates: List<String>? = ALL_UPDATES_LIST): Flow<Update>
+
fun TelegramBot.longPollingFlow(timeoutSeconds: Seconds = 30, exceptionsHandler: ExceptionHandler<Unit>? = null, allowedUpdates: List<String>? = ALL_UPDATES_LIST, autoDisableWebhooks: Boolean = true): Flow<Update>
@@ -1924,17 +1924,17 @@
- +
- +
Link copied to clipboard
-
fun TelegramBot.retrieveAccumulatedUpdates(avoidInlineQueries: Boolean = false, avoidCallbackQueries: Boolean = false, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), exceptionsHandler: ExceptionHandler<Unit>? = null, allowedUpdates: List<String>? = ALL_UPDATES_LIST, updatesReceiver: UpdateReceiver<Update>): Job
fun TelegramBot.retrieveAccumulatedUpdates(flowsUpdatesFilter: FlowsUpdatesFilter, avoidInlineQueries: Boolean = false, avoidCallbackQueries: Boolean = false, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), exceptionsHandler: ExceptionHandler<Unit>? = null): Job
+
fun TelegramBot.retrieveAccumulatedUpdates(avoidInlineQueries: Boolean = false, avoidCallbackQueries: Boolean = false, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), exceptionsHandler: ExceptionHandler<Unit>? = null, allowedUpdates: List<String>? = ALL_UPDATES_LIST, autoDisableWebhooks: Boolean = true, updatesReceiver: UpdateReceiver<Update>): Job
fun TelegramBot.retrieveAccumulatedUpdates(flowsUpdatesFilter: FlowsUpdatesFilter, avoidInlineQueries: Boolean = false, avoidCallbackQueries: Boolean = false, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), autoDisableWebhooks: Boolean = true, exceptionsHandler: ExceptionHandler<Unit>? = null): Job
@@ -2781,17 +2781,17 @@
- +
- +
Link copied to clipboard
-
fun TelegramBot.startGettingOfUpdatesByLongPolling(timeoutSeconds: Seconds = 30, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), exceptionsHandler: ExceptionHandler<Unit>? = null, allowedUpdates: List<String>? = ALL_UPDATES_LIST, updatesReceiver: UpdateReceiver<Update>): Job
fun RequestsExecutor.startGettingOfUpdatesByLongPolling(updatesFilter: UpdatesFilter, timeoutSeconds: Seconds = 30, exceptionsHandler: ExceptionHandler<Unit>? = null, scope: CoroutineScope = CoroutineScope(Dispatchers.Default)): Job
+
fun TelegramBot.startGettingOfUpdatesByLongPolling(timeoutSeconds: Seconds = 30, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), exceptionsHandler: ExceptionHandler<Unit>? = null, allowedUpdates: List<String>? = ALL_UPDATES_LIST, autoDisableWebhooks: Boolean = true, updatesReceiver: UpdateReceiver<Update>): Job
fun RequestsExecutor.startGettingOfUpdatesByLongPolling(updatesFilter: UpdatesFilter, timeoutSeconds: Seconds = 30, exceptionsHandler: ExceptionHandler<Unit>? = null, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), autoDisableWebhooks: Boolean = true): Job
diff --git a/docs/dev.inmo.tgbotapi.extensions.behaviour_builder/-behaviour-context-with-f-s-m/index.html b/docs/dev.inmo.tgbotapi.extensions.behaviour_builder/-behaviour-context-with-f-s-m/index.html index 08e68fcf19..8902579e24 100644 --- a/docs/dev.inmo.tgbotapi.extensions.behaviour_builder/-behaviour-context-with-f-s-m/index.html +++ b/docs/dev.inmo.tgbotapi.extensions.behaviour_builder/-behaviour-context-with-f-s-m/index.html @@ -1126,17 +1126,17 @@
- +
- +
Link copied to clipboard
-
fun TelegramBot.createAccumulatedUpdatesRetrieverFlow(avoidInlineQueries: Boolean = false, avoidCallbackQueries: Boolean = false, exceptionsHandler: ExceptionHandler<Unit>? = null, allowedUpdates: List<String>? = ALL_UPDATES_LIST): Flow<Update>
+
fun TelegramBot.createAccumulatedUpdatesRetrieverFlow(avoidInlineQueries: Boolean = false, avoidCallbackQueries: Boolean = false, exceptionsHandler: ExceptionHandler<Unit>? = null, allowedUpdates: List<String>? = ALL_UPDATES_LIST, autoDisableWebhooks: Boolean = true): Flow<Update>
@@ -1740,7 +1740,7 @@
-
suspend fun TelegramBot.editMessageCaption(chatId: ChatIdentifier, messageId: MessageId, text: String, parseMode: ParseMode? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<MediaContent>
suspend fun TelegramBot.editMessageCaption(chat: Chat, messageId: MessageId, text: String, parseMode: ParseMode? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<MediaContent>
suspend fun <T : TextedWithTextSources, MediaContent> TelegramBot.editMessageCaption(message: ContentMessage<T>, text: String, parseMode: ParseMode? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<T>
suspend fun TelegramBot.editMessageCaption(inlineMessageId: InlineMessageIdentifier, media: TelegramMedia, replyMarkup: InlineKeyboardMarkup? = null): Boolean
suspend fun TelegramBot.editMessageCaption(chat: Chat, messageId: MessageId, entities: List<TextSource>, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<MediaContent>
suspend fun TelegramBot.editMessageCaption(inlineMessageId: InlineMessageIdentifier, text: String, parseMode: ParseMode? = null, replyMarkup: InlineKeyboardMarkup? = null): Boolean
suspend fun TelegramBot.editMessageCaption(inlineMessageId: InlineMessageIdentifier, entities: TextSourcesList, replyMarkup: InlineKeyboardMarkup? = null): Boolean
+
suspend fun TelegramBot.editMessageCaption(chatId: ChatIdentifier, messageId: MessageId, text: String, parseMode: ParseMode? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<MediaContent>
suspend fun TelegramBot.editMessageCaption(chat: Chat, messageId: MessageId, text: String, parseMode: ParseMode? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<MediaContent>
suspend fun <T : TextedWithTextSources, MediaContent> TelegramBot.editMessageCaption(message: ContentMessage<T>, text: String, parseMode: ParseMode? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<T>
suspend fun TelegramBot.editMessageCaption(chat: Chat, messageId: MessageId, entities: List<TextSource>, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<MediaContent>
suspend fun TelegramBot.editMessageCaption(inlineMessageId: InlineMessageIdentifier, text: String, parseMode: ParseMode? = null, replyMarkup: InlineKeyboardMarkup? = null): Boolean
suspend fun TelegramBot.editMessageCaption(inlineMessageId: InlineMessageIdentifier, entities: TextSourcesList, replyMarkup: InlineKeyboardMarkup? = null): Boolean
suspend fun TelegramBot.editMessageCaption(inlineMessageId: InlineMessageIdentifier, media: TelegramMedia, replyMarkup: InlineKeyboardMarkup? = null): Boolean
@@ -1785,7 +1785,7 @@
-
suspend fun TelegramBot.editMessageText(chatId: ChatIdentifier, messageId: MessageId, text: String, parseMode: ParseMode? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(chat: Chat, messageId: MessageId, text: String, parseMode: ParseMode? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: ContentMessage<TextContent>, text: String, parseMode: ParseMode? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(chatId: ChatIdentifier, messageId: MessageId, entities: TextSourcesList, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: ContentMessage<TextContent>, separator: TextSource? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: ContentMessage<TextContent>, separator: String, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(chatId: ChatIdentifier, messageId: MessageId, separator: TextSource? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(chatId: ChatIdentifier, messageId: MessageId, separator: String, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(chat: Chat, messageId: MessageId, entities: TextSourcesList, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(chat: Chat, messageId: MessageId, separator: TextSource? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(chat: Chat, messageId: MessageId, separator: String, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: ContentMessage<TextContent>, entities: TextSourcesList, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: ContentMessage<TextContent>, separator: TextSource? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: ContentMessage<TextContent>, separator: String, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: Message, entities: TextSourcesList, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: Message, separator: TextSource? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: Message, separator: String, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(inlineMessageId: InlineMessageIdentifier, text: String, parseMode: ParseMode? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): Boolean
suspend fun TelegramBot.editMessageText(inlineMessageId: InlineMessageIdentifier, entities: TextSourcesList, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): Boolean
suspend fun TelegramBot.editMessageText(inlineMessageId: InlineMessageIdentifier, separator: TextSource? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): Boolean
suspend fun TelegramBot.editMessageText(inlineMessageId: InlineMessageIdentifier, separator: String, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): Boolean
+
suspend fun TelegramBot.editMessageText(chatId: ChatIdentifier, messageId: MessageId, text: String, parseMode: ParseMode? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: ContentMessage<TextContent>, separator: TextSource? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: ContentMessage<TextContent>, separator: String, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(chat: Chat, messageId: MessageId, text: String, parseMode: ParseMode? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: ContentMessage<TextContent>, text: String, parseMode: ParseMode? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(chatId: ChatIdentifier, messageId: MessageId, entities: TextSourcesList, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(chatId: ChatIdentifier, messageId: MessageId, separator: TextSource? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(chatId: ChatIdentifier, messageId: MessageId, separator: String, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(chat: Chat, messageId: MessageId, entities: TextSourcesList, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(chat: Chat, messageId: MessageId, separator: TextSource? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(chat: Chat, messageId: MessageId, separator: String, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: ContentMessage<TextContent>, entities: TextSourcesList, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: ContentMessage<TextContent>, separator: TextSource? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: ContentMessage<TextContent>, separator: String, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: Message, entities: TextSourcesList, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: Message, separator: TextSource? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: Message, separator: String, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(inlineMessageId: InlineMessageIdentifier, text: String, parseMode: ParseMode? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): Boolean
suspend fun TelegramBot.editMessageText(inlineMessageId: InlineMessageIdentifier, entities: TextSourcesList, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): Boolean
suspend fun TelegramBot.editMessageText(inlineMessageId: InlineMessageIdentifier, separator: TextSource? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): Boolean
suspend fun TelegramBot.editMessageText(inlineMessageId: InlineMessageIdentifier, separator: String, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): Boolean
@@ -1955,17 +1955,17 @@ - +
- +
Link copied to clipboard
-
suspend fun TelegramBot.flushAccumulatedUpdates(avoidInlineQueries: Boolean = false, avoidCallbackQueries: Boolean = false, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), allowedUpdates: List<String>? = ALL_UPDATES_LIST, exceptionsHandler: ExceptionHandler<Unit>? = null, updatesReceiver: UpdateReceiver<Update> = {})
+
suspend fun TelegramBot.flushAccumulatedUpdates(avoidInlineQueries: Boolean = false, avoidCallbackQueries: Boolean = false, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), allowedUpdates: List<String>? = ALL_UPDATES_LIST, exceptionsHandler: ExceptionHandler<Unit>? = null, autoDisableWebhooks: Boolean = true, updatesReceiver: UpdateReceiver<Update> = {})
@@ -2525,32 +2525,32 @@
- +
- +
Link copied to clipboard
-
fun TelegramBot.longPolling(updatesFilter: UpdatesFilter, timeoutSeconds: Seconds = 30, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), exceptionsHandler: ExceptionHandler<Unit>? = null): Job

Will startGettingOfUpdatesByLongPolling using incoming flowsUpdatesFilter. It is assumed that you ALREADY CONFIGURE all updates receivers, because this method will trigger getting of updates and.

fun TelegramBot.longPolling(timeoutSeconds: Seconds = 30, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), exceptionsHandler: ExceptionHandler<Unit>? = null, flowsUpdatesFilterUpdatesKeeperCount: Int = 100, flowUpdatesPreset: FlowsUpdatesFilter.() -> Unit): Job

Will enable longPolling by creating FlowsUpdatesFilter with flowsUpdatesFilterUpdatesKeeperCount as an argument and applied flowUpdatesPreset. It is assumed that you WILL CONFIGURE all updates receivers in flowUpdatesPreset, because of after flowUpdatesPreset method calling will be triggered getting of updates.

+
fun TelegramBot.longPolling(updatesFilter: UpdatesFilter, timeoutSeconds: Seconds = 30, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), autoDisableWebhooks: Boolean = true, exceptionsHandler: ExceptionHandler<Unit>? = null): Job

Will startGettingOfUpdatesByLongPolling using incoming flowsUpdatesFilter. It is assumed that you ALREADY CONFIGURE all updates receivers, because this method will trigger getting of updates and.

fun TelegramBot.longPolling(timeoutSeconds: Seconds = 30, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), exceptionsHandler: ExceptionHandler<Unit>? = null, flowsUpdatesFilterUpdatesKeeperCount: Int = 100, autoDisableWebhooks: Boolean = true, flowUpdatesPreset: FlowsUpdatesFilter.() -> Unit): Job

Will enable longPolling by creating FlowsUpdatesFilter with flowsUpdatesFilterUpdatesKeeperCount as an argument and applied flowUpdatesPreset. It is assumed that you WILL CONFIGURE all updates receivers in flowUpdatesPreset, because of after flowUpdatesPreset method calling will be triggered getting of updates.

- +
- +
Link copied to clipboard
-
fun TelegramBot.longPollingFlow(timeoutSeconds: Seconds = 30, exceptionsHandler: ExceptionHandler<Unit>? = null, allowedUpdates: List<String>? = ALL_UPDATES_LIST): Flow<Update>
+
fun TelegramBot.longPollingFlow(timeoutSeconds: Seconds = 30, exceptionsHandler: ExceptionHandler<Unit>? = null, allowedUpdates: List<String>? = ALL_UPDATES_LIST, autoDisableWebhooks: Boolean = true): Flow<Update>
@@ -3185,17 +3185,17 @@
- +
- +
Link copied to clipboard
-
fun TelegramBot.retrieveAccumulatedUpdates(avoidInlineQueries: Boolean = false, avoidCallbackQueries: Boolean = false, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), exceptionsHandler: ExceptionHandler<Unit>? = null, allowedUpdates: List<String>? = ALL_UPDATES_LIST, updatesReceiver: UpdateReceiver<Update>): Job
fun TelegramBot.retrieveAccumulatedUpdates(flowsUpdatesFilter: FlowsUpdatesFilter, avoidInlineQueries: Boolean = false, avoidCallbackQueries: Boolean = false, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), exceptionsHandler: ExceptionHandler<Unit>? = null): Job
+
fun TelegramBot.retrieveAccumulatedUpdates(avoidInlineQueries: Boolean = false, avoidCallbackQueries: Boolean = false, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), exceptionsHandler: ExceptionHandler<Unit>? = null, allowedUpdates: List<String>? = ALL_UPDATES_LIST, autoDisableWebhooks: Boolean = true, updatesReceiver: UpdateReceiver<Update>): Job
fun TelegramBot.retrieveAccumulatedUpdates(flowsUpdatesFilter: FlowsUpdatesFilter, avoidInlineQueries: Boolean = false, avoidCallbackQueries: Boolean = false, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), autoDisableWebhooks: Boolean = true, exceptionsHandler: ExceptionHandler<Unit>? = null): Job
@@ -4057,17 +4057,17 @@
- +
- +
Link copied to clipboard
-
fun TelegramBot.startGettingOfUpdatesByLongPolling(timeoutSeconds: Seconds = 30, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), exceptionsHandler: ExceptionHandler<Unit>? = null, allowedUpdates: List<String>? = ALL_UPDATES_LIST, updatesReceiver: UpdateReceiver<Update>): Job
fun RequestsExecutor.startGettingOfUpdatesByLongPolling(updatesFilter: UpdatesFilter, timeoutSeconds: Seconds = 30, exceptionsHandler: ExceptionHandler<Unit>? = null, scope: CoroutineScope = CoroutineScope(Dispatchers.Default)): Job
+
fun TelegramBot.startGettingOfUpdatesByLongPolling(timeoutSeconds: Seconds = 30, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), exceptionsHandler: ExceptionHandler<Unit>? = null, allowedUpdates: List<String>? = ALL_UPDATES_LIST, autoDisableWebhooks: Boolean = true, updatesReceiver: UpdateReceiver<Update>): Job
fun RequestsExecutor.startGettingOfUpdatesByLongPolling(updatesFilter: UpdatesFilter, timeoutSeconds: Seconds = 30, exceptionsHandler: ExceptionHandler<Unit>? = null, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), autoDisableWebhooks: Boolean = true): Job
diff --git a/docs/dev.inmo.tgbotapi.extensions.behaviour_builder/-behaviour-context/index.html b/docs/dev.inmo.tgbotapi.extensions.behaviour_builder/-behaviour-context/index.html index 263318d27a..bc4d96acd7 100644 --- a/docs/dev.inmo.tgbotapi.extensions.behaviour_builder/-behaviour-context/index.html +++ b/docs/dev.inmo.tgbotapi.extensions.behaviour_builder/-behaviour-context/index.html @@ -1041,17 +1041,17 @@
- +
- +
Link copied to clipboard
-
fun TelegramBot.createAccumulatedUpdatesRetrieverFlow(avoidInlineQueries: Boolean = false, avoidCallbackQueries: Boolean = false, exceptionsHandler: ExceptionHandler<Unit>? = null, allowedUpdates: List<String>? = ALL_UPDATES_LIST): Flow<Update>
+
fun TelegramBot.createAccumulatedUpdatesRetrieverFlow(avoidInlineQueries: Boolean = false, avoidCallbackQueries: Boolean = false, exceptionsHandler: ExceptionHandler<Unit>? = null, allowedUpdates: List<String>? = ALL_UPDATES_LIST, autoDisableWebhooks: Boolean = true): Flow<Update>
@@ -1655,7 +1655,7 @@
-
suspend fun TelegramBot.editMessageCaption(chatId: ChatIdentifier, messageId: MessageId, text: String, parseMode: ParseMode? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<MediaContent>
suspend fun TelegramBot.editMessageCaption(chat: Chat, messageId: MessageId, text: String, parseMode: ParseMode? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<MediaContent>
suspend fun <T : TextedWithTextSources, MediaContent> TelegramBot.editMessageCaption(message: ContentMessage<T>, text: String, parseMode: ParseMode? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<T>
suspend fun TelegramBot.editMessageCaption(inlineMessageId: InlineMessageIdentifier, media: TelegramMedia, replyMarkup: InlineKeyboardMarkup? = null): Boolean
suspend fun TelegramBot.editMessageCaption(chat: Chat, messageId: MessageId, entities: List<TextSource>, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<MediaContent>
suspend fun TelegramBot.editMessageCaption(inlineMessageId: InlineMessageIdentifier, text: String, parseMode: ParseMode? = null, replyMarkup: InlineKeyboardMarkup? = null): Boolean
suspend fun TelegramBot.editMessageCaption(inlineMessageId: InlineMessageIdentifier, entities: TextSourcesList, replyMarkup: InlineKeyboardMarkup? = null): Boolean
+
suspend fun TelegramBot.editMessageCaption(chatId: ChatIdentifier, messageId: MessageId, text: String, parseMode: ParseMode? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<MediaContent>
suspend fun TelegramBot.editMessageCaption(chat: Chat, messageId: MessageId, text: String, parseMode: ParseMode? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<MediaContent>
suspend fun <T : TextedWithTextSources, MediaContent> TelegramBot.editMessageCaption(message: ContentMessage<T>, text: String, parseMode: ParseMode? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<T>
suspend fun TelegramBot.editMessageCaption(chat: Chat, messageId: MessageId, entities: List<TextSource>, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<MediaContent>
suspend fun TelegramBot.editMessageCaption(inlineMessageId: InlineMessageIdentifier, text: String, parseMode: ParseMode? = null, replyMarkup: InlineKeyboardMarkup? = null): Boolean
suspend fun TelegramBot.editMessageCaption(inlineMessageId: InlineMessageIdentifier, entities: TextSourcesList, replyMarkup: InlineKeyboardMarkup? = null): Boolean
suspend fun TelegramBot.editMessageCaption(inlineMessageId: InlineMessageIdentifier, media: TelegramMedia, replyMarkup: InlineKeyboardMarkup? = null): Boolean
@@ -1700,7 +1700,7 @@
-
suspend fun TelegramBot.editMessageText(chatId: ChatIdentifier, messageId: MessageId, text: String, parseMode: ParseMode? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(chat: Chat, messageId: MessageId, text: String, parseMode: ParseMode? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: ContentMessage<TextContent>, text: String, parseMode: ParseMode? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(chatId: ChatIdentifier, messageId: MessageId, entities: TextSourcesList, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: ContentMessage<TextContent>, separator: TextSource? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: ContentMessage<TextContent>, separator: String, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(chatId: ChatIdentifier, messageId: MessageId, separator: TextSource? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(chatId: ChatIdentifier, messageId: MessageId, separator: String, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(chat: Chat, messageId: MessageId, entities: TextSourcesList, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(chat: Chat, messageId: MessageId, separator: TextSource? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(chat: Chat, messageId: MessageId, separator: String, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: ContentMessage<TextContent>, entities: TextSourcesList, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: ContentMessage<TextContent>, separator: TextSource? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: ContentMessage<TextContent>, separator: String, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: Message, entities: TextSourcesList, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: Message, separator: TextSource? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: Message, separator: String, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(inlineMessageId: InlineMessageIdentifier, text: String, parseMode: ParseMode? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): Boolean
suspend fun TelegramBot.editMessageText(inlineMessageId: InlineMessageIdentifier, entities: TextSourcesList, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): Boolean
suspend fun TelegramBot.editMessageText(inlineMessageId: InlineMessageIdentifier, separator: TextSource? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): Boolean
suspend fun TelegramBot.editMessageText(inlineMessageId: InlineMessageIdentifier, separator: String, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): Boolean
+
suspend fun TelegramBot.editMessageText(chatId: ChatIdentifier, messageId: MessageId, text: String, parseMode: ParseMode? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: ContentMessage<TextContent>, separator: TextSource? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: ContentMessage<TextContent>, separator: String, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(chat: Chat, messageId: MessageId, text: String, parseMode: ParseMode? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: ContentMessage<TextContent>, text: String, parseMode: ParseMode? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(chatId: ChatIdentifier, messageId: MessageId, entities: TextSourcesList, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(chatId: ChatIdentifier, messageId: MessageId, separator: TextSource? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(chatId: ChatIdentifier, messageId: MessageId, separator: String, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(chat: Chat, messageId: MessageId, entities: TextSourcesList, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(chat: Chat, messageId: MessageId, separator: TextSource? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(chat: Chat, messageId: MessageId, separator: String, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: ContentMessage<TextContent>, entities: TextSourcesList, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: ContentMessage<TextContent>, separator: TextSource? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: ContentMessage<TextContent>, separator: String, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: Message, entities: TextSourcesList, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: Message, separator: TextSource? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: Message, separator: String, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(inlineMessageId: InlineMessageIdentifier, text: String, parseMode: ParseMode? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): Boolean
suspend fun TelegramBot.editMessageText(inlineMessageId: InlineMessageIdentifier, entities: TextSourcesList, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): Boolean
suspend fun TelegramBot.editMessageText(inlineMessageId: InlineMessageIdentifier, separator: TextSource? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): Boolean
suspend fun TelegramBot.editMessageText(inlineMessageId: InlineMessageIdentifier, separator: String, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): Boolean
@@ -1870,17 +1870,17 @@ - +
- +
Link copied to clipboard
-
suspend fun TelegramBot.flushAccumulatedUpdates(avoidInlineQueries: Boolean = false, avoidCallbackQueries: Boolean = false, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), allowedUpdates: List<String>? = ALL_UPDATES_LIST, exceptionsHandler: ExceptionHandler<Unit>? = null, updatesReceiver: UpdateReceiver<Update> = {})
+
suspend fun TelegramBot.flushAccumulatedUpdates(avoidInlineQueries: Boolean = false, avoidCallbackQueries: Boolean = false, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), allowedUpdates: List<String>? = ALL_UPDATES_LIST, exceptionsHandler: ExceptionHandler<Unit>? = null, autoDisableWebhooks: Boolean = true, updatesReceiver: UpdateReceiver<Update> = {})
@@ -2440,32 +2440,32 @@
- +
- +
Link copied to clipboard
-
fun TelegramBot.longPolling(updatesFilter: UpdatesFilter, timeoutSeconds: Seconds = 30, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), exceptionsHandler: ExceptionHandler<Unit>? = null): Job

Will startGettingOfUpdatesByLongPolling using incoming flowsUpdatesFilter. It is assumed that you ALREADY CONFIGURE all updates receivers, because this method will trigger getting of updates and.

fun TelegramBot.longPolling(timeoutSeconds: Seconds = 30, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), exceptionsHandler: ExceptionHandler<Unit>? = null, flowsUpdatesFilterUpdatesKeeperCount: Int = 100, flowUpdatesPreset: FlowsUpdatesFilter.() -> Unit): Job

Will enable longPolling by creating FlowsUpdatesFilter with flowsUpdatesFilterUpdatesKeeperCount as an argument and applied flowUpdatesPreset. It is assumed that you WILL CONFIGURE all updates receivers in flowUpdatesPreset, because of after flowUpdatesPreset method calling will be triggered getting of updates.

+
fun TelegramBot.longPolling(updatesFilter: UpdatesFilter, timeoutSeconds: Seconds = 30, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), autoDisableWebhooks: Boolean = true, exceptionsHandler: ExceptionHandler<Unit>? = null): Job

Will startGettingOfUpdatesByLongPolling using incoming flowsUpdatesFilter. It is assumed that you ALREADY CONFIGURE all updates receivers, because this method will trigger getting of updates and.

fun TelegramBot.longPolling(timeoutSeconds: Seconds = 30, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), exceptionsHandler: ExceptionHandler<Unit>? = null, flowsUpdatesFilterUpdatesKeeperCount: Int = 100, autoDisableWebhooks: Boolean = true, flowUpdatesPreset: FlowsUpdatesFilter.() -> Unit): Job

Will enable longPolling by creating FlowsUpdatesFilter with flowsUpdatesFilterUpdatesKeeperCount as an argument and applied flowUpdatesPreset. It is assumed that you WILL CONFIGURE all updates receivers in flowUpdatesPreset, because of after flowUpdatesPreset method calling will be triggered getting of updates.

- +
- +
Link copied to clipboard
-
fun TelegramBot.longPollingFlow(timeoutSeconds: Seconds = 30, exceptionsHandler: ExceptionHandler<Unit>? = null, allowedUpdates: List<String>? = ALL_UPDATES_LIST): Flow<Update>
+
fun TelegramBot.longPollingFlow(timeoutSeconds: Seconds = 30, exceptionsHandler: ExceptionHandler<Unit>? = null, allowedUpdates: List<String>? = ALL_UPDATES_LIST, autoDisableWebhooks: Boolean = true): Flow<Update>
@@ -3085,17 +3085,17 @@
- +
- +
Link copied to clipboard
-
fun TelegramBot.retrieveAccumulatedUpdates(avoidInlineQueries: Boolean = false, avoidCallbackQueries: Boolean = false, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), exceptionsHandler: ExceptionHandler<Unit>? = null, allowedUpdates: List<String>? = ALL_UPDATES_LIST, updatesReceiver: UpdateReceiver<Update>): Job
fun TelegramBot.retrieveAccumulatedUpdates(flowsUpdatesFilter: FlowsUpdatesFilter, avoidInlineQueries: Boolean = false, avoidCallbackQueries: Boolean = false, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), exceptionsHandler: ExceptionHandler<Unit>? = null): Job
+
fun TelegramBot.retrieveAccumulatedUpdates(avoidInlineQueries: Boolean = false, avoidCallbackQueries: Boolean = false, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), exceptionsHandler: ExceptionHandler<Unit>? = null, allowedUpdates: List<String>? = ALL_UPDATES_LIST, autoDisableWebhooks: Boolean = true, updatesReceiver: UpdateReceiver<Update>): Job
fun TelegramBot.retrieveAccumulatedUpdates(flowsUpdatesFilter: FlowsUpdatesFilter, avoidInlineQueries: Boolean = false, avoidCallbackQueries: Boolean = false, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), autoDisableWebhooks: Boolean = true, exceptionsHandler: ExceptionHandler<Unit>? = null): Job
@@ -3957,17 +3957,17 @@
- +
- +
Link copied to clipboard
-
fun TelegramBot.startGettingOfUpdatesByLongPolling(timeoutSeconds: Seconds = 30, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), exceptionsHandler: ExceptionHandler<Unit>? = null, allowedUpdates: List<String>? = ALL_UPDATES_LIST, updatesReceiver: UpdateReceiver<Update>): Job
fun RequestsExecutor.startGettingOfUpdatesByLongPolling(updatesFilter: UpdatesFilter, timeoutSeconds: Seconds = 30, exceptionsHandler: ExceptionHandler<Unit>? = null, scope: CoroutineScope = CoroutineScope(Dispatchers.Default)): Job
+
fun TelegramBot.startGettingOfUpdatesByLongPolling(timeoutSeconds: Seconds = 30, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), exceptionsHandler: ExceptionHandler<Unit>? = null, allowedUpdates: List<String>? = ALL_UPDATES_LIST, autoDisableWebhooks: Boolean = true, updatesReceiver: UpdateReceiver<Update>): Job
fun RequestsExecutor.startGettingOfUpdatesByLongPolling(updatesFilter: UpdatesFilter, timeoutSeconds: Seconds = 30, exceptionsHandler: ExceptionHandler<Unit>? = null, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), autoDisableWebhooks: Boolean = true): Job
diff --git a/docs/dev.inmo.tgbotapi.extensions.behaviour_builder/-default-behaviour-context-with-f-s-m/index.html b/docs/dev.inmo.tgbotapi.extensions.behaviour_builder/-default-behaviour-context-with-f-s-m/index.html index 9632fb9e19..bf3e255625 100644 --- a/docs/dev.inmo.tgbotapi.extensions.behaviour_builder/-default-behaviour-context-with-f-s-m/index.html +++ b/docs/dev.inmo.tgbotapi.extensions.behaviour_builder/-default-behaviour-context-with-f-s-m/index.html @@ -1143,17 +1143,17 @@
- +
- +
Link copied to clipboard
-
fun TelegramBot.createAccumulatedUpdatesRetrieverFlow(avoidInlineQueries: Boolean = false, avoidCallbackQueries: Boolean = false, exceptionsHandler: ExceptionHandler<Unit>? = null, allowedUpdates: List<String>? = ALL_UPDATES_LIST): Flow<Update>
+
fun TelegramBot.createAccumulatedUpdatesRetrieverFlow(avoidInlineQueries: Boolean = false, avoidCallbackQueries: Boolean = false, exceptionsHandler: ExceptionHandler<Unit>? = null, allowedUpdates: List<String>? = ALL_UPDATES_LIST, autoDisableWebhooks: Boolean = true): Flow<Update>
@@ -1757,7 +1757,7 @@
-
suspend fun TelegramBot.editMessageCaption(chatId: ChatIdentifier, messageId: MessageId, text: String, parseMode: ParseMode? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<MediaContent>
suspend fun TelegramBot.editMessageCaption(chat: Chat, messageId: MessageId, text: String, parseMode: ParseMode? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<MediaContent>
suspend fun <T : TextedWithTextSources, MediaContent> TelegramBot.editMessageCaption(message: ContentMessage<T>, text: String, parseMode: ParseMode? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<T>
suspend fun TelegramBot.editMessageCaption(inlineMessageId: InlineMessageIdentifier, media: TelegramMedia, replyMarkup: InlineKeyboardMarkup? = null): Boolean
suspend fun TelegramBot.editMessageCaption(chat: Chat, messageId: MessageId, entities: List<TextSource>, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<MediaContent>
suspend fun TelegramBot.editMessageCaption(inlineMessageId: InlineMessageIdentifier, text: String, parseMode: ParseMode? = null, replyMarkup: InlineKeyboardMarkup? = null): Boolean
suspend fun TelegramBot.editMessageCaption(inlineMessageId: InlineMessageIdentifier, entities: TextSourcesList, replyMarkup: InlineKeyboardMarkup? = null): Boolean
+
suspend fun TelegramBot.editMessageCaption(chatId: ChatIdentifier, messageId: MessageId, text: String, parseMode: ParseMode? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<MediaContent>
suspend fun TelegramBot.editMessageCaption(chat: Chat, messageId: MessageId, text: String, parseMode: ParseMode? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<MediaContent>
suspend fun <T : TextedWithTextSources, MediaContent> TelegramBot.editMessageCaption(message: ContentMessage<T>, text: String, parseMode: ParseMode? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<T>
suspend fun TelegramBot.editMessageCaption(chat: Chat, messageId: MessageId, entities: List<TextSource>, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<MediaContent>
suspend fun TelegramBot.editMessageCaption(inlineMessageId: InlineMessageIdentifier, text: String, parseMode: ParseMode? = null, replyMarkup: InlineKeyboardMarkup? = null): Boolean
suspend fun TelegramBot.editMessageCaption(inlineMessageId: InlineMessageIdentifier, entities: TextSourcesList, replyMarkup: InlineKeyboardMarkup? = null): Boolean
suspend fun TelegramBot.editMessageCaption(inlineMessageId: InlineMessageIdentifier, media: TelegramMedia, replyMarkup: InlineKeyboardMarkup? = null): Boolean
@@ -1802,7 +1802,7 @@
-
suspend fun TelegramBot.editMessageText(chatId: ChatIdentifier, messageId: MessageId, text: String, parseMode: ParseMode? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(chat: Chat, messageId: MessageId, text: String, parseMode: ParseMode? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: ContentMessage<TextContent>, text: String, parseMode: ParseMode? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(chatId: ChatIdentifier, messageId: MessageId, entities: TextSourcesList, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: ContentMessage<TextContent>, separator: TextSource? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: ContentMessage<TextContent>, separator: String, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(chatId: ChatIdentifier, messageId: MessageId, separator: TextSource? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(chatId: ChatIdentifier, messageId: MessageId, separator: String, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(chat: Chat, messageId: MessageId, entities: TextSourcesList, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(chat: Chat, messageId: MessageId, separator: TextSource? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(chat: Chat, messageId: MessageId, separator: String, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: ContentMessage<TextContent>, entities: TextSourcesList, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: ContentMessage<TextContent>, separator: TextSource? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: ContentMessage<TextContent>, separator: String, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: Message, entities: TextSourcesList, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: Message, separator: TextSource? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: Message, separator: String, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(inlineMessageId: InlineMessageIdentifier, text: String, parseMode: ParseMode? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): Boolean
suspend fun TelegramBot.editMessageText(inlineMessageId: InlineMessageIdentifier, entities: TextSourcesList, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): Boolean
suspend fun TelegramBot.editMessageText(inlineMessageId: InlineMessageIdentifier, separator: TextSource? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): Boolean
suspend fun TelegramBot.editMessageText(inlineMessageId: InlineMessageIdentifier, separator: String, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): Boolean
+
suspend fun TelegramBot.editMessageText(chatId: ChatIdentifier, messageId: MessageId, text: String, parseMode: ParseMode? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: ContentMessage<TextContent>, separator: TextSource? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: ContentMessage<TextContent>, separator: String, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(chat: Chat, messageId: MessageId, text: String, parseMode: ParseMode? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: ContentMessage<TextContent>, text: String, parseMode: ParseMode? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(chatId: ChatIdentifier, messageId: MessageId, entities: TextSourcesList, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(chatId: ChatIdentifier, messageId: MessageId, separator: TextSource? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(chatId: ChatIdentifier, messageId: MessageId, separator: String, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(chat: Chat, messageId: MessageId, entities: TextSourcesList, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(chat: Chat, messageId: MessageId, separator: TextSource? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(chat: Chat, messageId: MessageId, separator: String, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: ContentMessage<TextContent>, entities: TextSourcesList, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: ContentMessage<TextContent>, separator: TextSource? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: ContentMessage<TextContent>, separator: String, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: Message, entities: TextSourcesList, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: Message, separator: TextSource? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: Message, separator: String, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(inlineMessageId: InlineMessageIdentifier, text: String, parseMode: ParseMode? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): Boolean
suspend fun TelegramBot.editMessageText(inlineMessageId: InlineMessageIdentifier, entities: TextSourcesList, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): Boolean
suspend fun TelegramBot.editMessageText(inlineMessageId: InlineMessageIdentifier, separator: TextSource? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): Boolean
suspend fun TelegramBot.editMessageText(inlineMessageId: InlineMessageIdentifier, separator: String, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): Boolean
@@ -1972,17 +1972,17 @@ - +
- +
Link copied to clipboard
-
suspend fun TelegramBot.flushAccumulatedUpdates(avoidInlineQueries: Boolean = false, avoidCallbackQueries: Boolean = false, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), allowedUpdates: List<String>? = ALL_UPDATES_LIST, exceptionsHandler: ExceptionHandler<Unit>? = null, updatesReceiver: UpdateReceiver<Update> = {})
+
suspend fun TelegramBot.flushAccumulatedUpdates(avoidInlineQueries: Boolean = false, avoidCallbackQueries: Boolean = false, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), allowedUpdates: List<String>? = ALL_UPDATES_LIST, exceptionsHandler: ExceptionHandler<Unit>? = null, autoDisableWebhooks: Boolean = true, updatesReceiver: UpdateReceiver<Update> = {})
@@ -2542,32 +2542,32 @@
- +
- +
Link copied to clipboard
-
fun TelegramBot.longPolling(updatesFilter: UpdatesFilter, timeoutSeconds: Seconds = 30, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), exceptionsHandler: ExceptionHandler<Unit>? = null): Job

Will startGettingOfUpdatesByLongPolling using incoming flowsUpdatesFilter. It is assumed that you ALREADY CONFIGURE all updates receivers, because this method will trigger getting of updates and.

fun TelegramBot.longPolling(timeoutSeconds: Seconds = 30, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), exceptionsHandler: ExceptionHandler<Unit>? = null, flowsUpdatesFilterUpdatesKeeperCount: Int = 100, flowUpdatesPreset: FlowsUpdatesFilter.() -> Unit): Job

Will enable longPolling by creating FlowsUpdatesFilter with flowsUpdatesFilterUpdatesKeeperCount as an argument and applied flowUpdatesPreset. It is assumed that you WILL CONFIGURE all updates receivers in flowUpdatesPreset, because of after flowUpdatesPreset method calling will be triggered getting of updates.

+
fun TelegramBot.longPolling(updatesFilter: UpdatesFilter, timeoutSeconds: Seconds = 30, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), autoDisableWebhooks: Boolean = true, exceptionsHandler: ExceptionHandler<Unit>? = null): Job

Will startGettingOfUpdatesByLongPolling using incoming flowsUpdatesFilter. It is assumed that you ALREADY CONFIGURE all updates receivers, because this method will trigger getting of updates and.

fun TelegramBot.longPolling(timeoutSeconds: Seconds = 30, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), exceptionsHandler: ExceptionHandler<Unit>? = null, flowsUpdatesFilterUpdatesKeeperCount: Int = 100, autoDisableWebhooks: Boolean = true, flowUpdatesPreset: FlowsUpdatesFilter.() -> Unit): Job

Will enable longPolling by creating FlowsUpdatesFilter with flowsUpdatesFilterUpdatesKeeperCount as an argument and applied flowUpdatesPreset. It is assumed that you WILL CONFIGURE all updates receivers in flowUpdatesPreset, because of after flowUpdatesPreset method calling will be triggered getting of updates.

- +
- +
Link copied to clipboard
-
fun TelegramBot.longPollingFlow(timeoutSeconds: Seconds = 30, exceptionsHandler: ExceptionHandler<Unit>? = null, allowedUpdates: List<String>? = ALL_UPDATES_LIST): Flow<Update>
+
fun TelegramBot.longPollingFlow(timeoutSeconds: Seconds = 30, exceptionsHandler: ExceptionHandler<Unit>? = null, allowedUpdates: List<String>? = ALL_UPDATES_LIST, autoDisableWebhooks: Boolean = true): Flow<Update>
@@ -3202,17 +3202,17 @@
- +
- +
Link copied to clipboard
-
fun TelegramBot.retrieveAccumulatedUpdates(avoidInlineQueries: Boolean = false, avoidCallbackQueries: Boolean = false, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), exceptionsHandler: ExceptionHandler<Unit>? = null, allowedUpdates: List<String>? = ALL_UPDATES_LIST, updatesReceiver: UpdateReceiver<Update>): Job
fun TelegramBot.retrieveAccumulatedUpdates(flowsUpdatesFilter: FlowsUpdatesFilter, avoidInlineQueries: Boolean = false, avoidCallbackQueries: Boolean = false, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), exceptionsHandler: ExceptionHandler<Unit>? = null): Job
+
fun TelegramBot.retrieveAccumulatedUpdates(avoidInlineQueries: Boolean = false, avoidCallbackQueries: Boolean = false, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), exceptionsHandler: ExceptionHandler<Unit>? = null, allowedUpdates: List<String>? = ALL_UPDATES_LIST, autoDisableWebhooks: Boolean = true, updatesReceiver: UpdateReceiver<Update>): Job
fun TelegramBot.retrieveAccumulatedUpdates(flowsUpdatesFilter: FlowsUpdatesFilter, avoidInlineQueries: Boolean = false, avoidCallbackQueries: Boolean = false, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), autoDisableWebhooks: Boolean = true, exceptionsHandler: ExceptionHandler<Unit>? = null): Job
@@ -4074,17 +4074,17 @@
- +
- +
Link copied to clipboard
-
fun TelegramBot.startGettingOfUpdatesByLongPolling(timeoutSeconds: Seconds = 30, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), exceptionsHandler: ExceptionHandler<Unit>? = null, allowedUpdates: List<String>? = ALL_UPDATES_LIST, updatesReceiver: UpdateReceiver<Update>): Job
fun RequestsExecutor.startGettingOfUpdatesByLongPolling(updatesFilter: UpdatesFilter, timeoutSeconds: Seconds = 30, exceptionsHandler: ExceptionHandler<Unit>? = null, scope: CoroutineScope = CoroutineScope(Dispatchers.Default)): Job
+
fun TelegramBot.startGettingOfUpdatesByLongPolling(timeoutSeconds: Seconds = 30, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), exceptionsHandler: ExceptionHandler<Unit>? = null, allowedUpdates: List<String>? = ALL_UPDATES_LIST, autoDisableWebhooks: Boolean = true, updatesReceiver: UpdateReceiver<Update>): Job
fun RequestsExecutor.startGettingOfUpdatesByLongPolling(updatesFilter: UpdatesFilter, timeoutSeconds: Seconds = 30, exceptionsHandler: ExceptionHandler<Unit>? = null, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), autoDisableWebhooks: Boolean = true): Job
diff --git a/docs/dev.inmo.tgbotapi.extensions.behaviour_builder/-default-behaviour-context/index.html b/docs/dev.inmo.tgbotapi.extensions.behaviour_builder/-default-behaviour-context/index.html index d1daee68c0..2b8e0bc5d3 100644 --- a/docs/dev.inmo.tgbotapi.extensions.behaviour_builder/-default-behaviour-context/index.html +++ b/docs/dev.inmo.tgbotapi.extensions.behaviour_builder/-default-behaviour-context/index.html @@ -1019,17 +1019,17 @@
- +
- +
Link copied to clipboard
-
fun TelegramBot.createAccumulatedUpdatesRetrieverFlow(avoidInlineQueries: Boolean = false, avoidCallbackQueries: Boolean = false, exceptionsHandler: ExceptionHandler<Unit>? = null, allowedUpdates: List<String>? = ALL_UPDATES_LIST): Flow<Update>
+
fun TelegramBot.createAccumulatedUpdatesRetrieverFlow(avoidInlineQueries: Boolean = false, avoidCallbackQueries: Boolean = false, exceptionsHandler: ExceptionHandler<Unit>? = null, allowedUpdates: List<String>? = ALL_UPDATES_LIST, autoDisableWebhooks: Boolean = true): Flow<Update>
@@ -1633,7 +1633,7 @@
-
suspend fun TelegramBot.editMessageCaption(chatId: ChatIdentifier, messageId: MessageId, text: String, parseMode: ParseMode? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<MediaContent>
suspend fun TelegramBot.editMessageCaption(chat: Chat, messageId: MessageId, text: String, parseMode: ParseMode? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<MediaContent>
suspend fun <T : TextedWithTextSources, MediaContent> TelegramBot.editMessageCaption(message: ContentMessage<T>, text: String, parseMode: ParseMode? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<T>
suspend fun TelegramBot.editMessageCaption(inlineMessageId: InlineMessageIdentifier, media: TelegramMedia, replyMarkup: InlineKeyboardMarkup? = null): Boolean
suspend fun TelegramBot.editMessageCaption(chat: Chat, messageId: MessageId, entities: List<TextSource>, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<MediaContent>
suspend fun TelegramBot.editMessageCaption(inlineMessageId: InlineMessageIdentifier, text: String, parseMode: ParseMode? = null, replyMarkup: InlineKeyboardMarkup? = null): Boolean
suspend fun TelegramBot.editMessageCaption(inlineMessageId: InlineMessageIdentifier, entities: TextSourcesList, replyMarkup: InlineKeyboardMarkup? = null): Boolean
+
suspend fun TelegramBot.editMessageCaption(chatId: ChatIdentifier, messageId: MessageId, text: String, parseMode: ParseMode? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<MediaContent>
suspend fun TelegramBot.editMessageCaption(chat: Chat, messageId: MessageId, text: String, parseMode: ParseMode? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<MediaContent>
suspend fun <T : TextedWithTextSources, MediaContent> TelegramBot.editMessageCaption(message: ContentMessage<T>, text: String, parseMode: ParseMode? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<T>
suspend fun TelegramBot.editMessageCaption(chat: Chat, messageId: MessageId, entities: List<TextSource>, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<MediaContent>
suspend fun TelegramBot.editMessageCaption(inlineMessageId: InlineMessageIdentifier, text: String, parseMode: ParseMode? = null, replyMarkup: InlineKeyboardMarkup? = null): Boolean
suspend fun TelegramBot.editMessageCaption(inlineMessageId: InlineMessageIdentifier, entities: TextSourcesList, replyMarkup: InlineKeyboardMarkup? = null): Boolean
suspend fun TelegramBot.editMessageCaption(inlineMessageId: InlineMessageIdentifier, media: TelegramMedia, replyMarkup: InlineKeyboardMarkup? = null): Boolean
@@ -1678,7 +1678,7 @@
-
suspend fun TelegramBot.editMessageText(chatId: ChatIdentifier, messageId: MessageId, text: String, parseMode: ParseMode? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(chat: Chat, messageId: MessageId, text: String, parseMode: ParseMode? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: ContentMessage<TextContent>, text: String, parseMode: ParseMode? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(chatId: ChatIdentifier, messageId: MessageId, entities: TextSourcesList, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: ContentMessage<TextContent>, separator: TextSource? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: ContentMessage<TextContent>, separator: String, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(chatId: ChatIdentifier, messageId: MessageId, separator: TextSource? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(chatId: ChatIdentifier, messageId: MessageId, separator: String, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(chat: Chat, messageId: MessageId, entities: TextSourcesList, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(chat: Chat, messageId: MessageId, separator: TextSource? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(chat: Chat, messageId: MessageId, separator: String, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: ContentMessage<TextContent>, entities: TextSourcesList, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: ContentMessage<TextContent>, separator: TextSource? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: ContentMessage<TextContent>, separator: String, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: Message, entities: TextSourcesList, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: Message, separator: TextSource? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: Message, separator: String, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(inlineMessageId: InlineMessageIdentifier, text: String, parseMode: ParseMode? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): Boolean
suspend fun TelegramBot.editMessageText(inlineMessageId: InlineMessageIdentifier, entities: TextSourcesList, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): Boolean
suspend fun TelegramBot.editMessageText(inlineMessageId: InlineMessageIdentifier, separator: TextSource? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): Boolean
suspend fun TelegramBot.editMessageText(inlineMessageId: InlineMessageIdentifier, separator: String, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): Boolean
+
suspend fun TelegramBot.editMessageText(chatId: ChatIdentifier, messageId: MessageId, text: String, parseMode: ParseMode? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: ContentMessage<TextContent>, separator: TextSource? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: ContentMessage<TextContent>, separator: String, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(chat: Chat, messageId: MessageId, text: String, parseMode: ParseMode? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: ContentMessage<TextContent>, text: String, parseMode: ParseMode? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(chatId: ChatIdentifier, messageId: MessageId, entities: TextSourcesList, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(chatId: ChatIdentifier, messageId: MessageId, separator: TextSource? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(chatId: ChatIdentifier, messageId: MessageId, separator: String, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(chat: Chat, messageId: MessageId, entities: TextSourcesList, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(chat: Chat, messageId: MessageId, separator: TextSource? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(chat: Chat, messageId: MessageId, separator: String, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: ContentMessage<TextContent>, entities: TextSourcesList, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: ContentMessage<TextContent>, separator: TextSource? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: ContentMessage<TextContent>, separator: String, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: Message, entities: TextSourcesList, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: Message, separator: TextSource? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(message: Message, separator: String, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.editMessageText(inlineMessageId: InlineMessageIdentifier, text: String, parseMode: ParseMode? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): Boolean
suspend fun TelegramBot.editMessageText(inlineMessageId: InlineMessageIdentifier, entities: TextSourcesList, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null): Boolean
suspend fun TelegramBot.editMessageText(inlineMessageId: InlineMessageIdentifier, separator: TextSource? = null, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): Boolean
suspend fun TelegramBot.editMessageText(inlineMessageId: InlineMessageIdentifier, separator: String, disableWebPagePreview: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null, builderBody: EntitiesBuilderBody): Boolean
@@ -1848,17 +1848,17 @@ - +
- +
Link copied to clipboard
-
suspend fun TelegramBot.flushAccumulatedUpdates(avoidInlineQueries: Boolean = false, avoidCallbackQueries: Boolean = false, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), allowedUpdates: List<String>? = ALL_UPDATES_LIST, exceptionsHandler: ExceptionHandler<Unit>? = null, updatesReceiver: UpdateReceiver<Update> = {})
+
suspend fun TelegramBot.flushAccumulatedUpdates(avoidInlineQueries: Boolean = false, avoidCallbackQueries: Boolean = false, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), allowedUpdates: List<String>? = ALL_UPDATES_LIST, exceptionsHandler: ExceptionHandler<Unit>? = null, autoDisableWebhooks: Boolean = true, updatesReceiver: UpdateReceiver<Update> = {})
@@ -2418,32 +2418,32 @@
- +
- +
Link copied to clipboard
-
fun TelegramBot.longPolling(updatesFilter: UpdatesFilter, timeoutSeconds: Seconds = 30, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), exceptionsHandler: ExceptionHandler<Unit>? = null): Job

Will startGettingOfUpdatesByLongPolling using incoming flowsUpdatesFilter. It is assumed that you ALREADY CONFIGURE all updates receivers, because this method will trigger getting of updates and.

fun TelegramBot.longPolling(timeoutSeconds: Seconds = 30, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), exceptionsHandler: ExceptionHandler<Unit>? = null, flowsUpdatesFilterUpdatesKeeperCount: Int = 100, flowUpdatesPreset: FlowsUpdatesFilter.() -> Unit): Job

Will enable longPolling by creating FlowsUpdatesFilter with flowsUpdatesFilterUpdatesKeeperCount as an argument and applied flowUpdatesPreset. It is assumed that you WILL CONFIGURE all updates receivers in flowUpdatesPreset, because of after flowUpdatesPreset method calling will be triggered getting of updates.

+
fun TelegramBot.longPolling(updatesFilter: UpdatesFilter, timeoutSeconds: Seconds = 30, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), autoDisableWebhooks: Boolean = true, exceptionsHandler: ExceptionHandler<Unit>? = null): Job

Will startGettingOfUpdatesByLongPolling using incoming flowsUpdatesFilter. It is assumed that you ALREADY CONFIGURE all updates receivers, because this method will trigger getting of updates and.

fun TelegramBot.longPolling(timeoutSeconds: Seconds = 30, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), exceptionsHandler: ExceptionHandler<Unit>? = null, flowsUpdatesFilterUpdatesKeeperCount: Int = 100, autoDisableWebhooks: Boolean = true, flowUpdatesPreset: FlowsUpdatesFilter.() -> Unit): Job

Will enable longPolling by creating FlowsUpdatesFilter with flowsUpdatesFilterUpdatesKeeperCount as an argument and applied flowUpdatesPreset. It is assumed that you WILL CONFIGURE all updates receivers in flowUpdatesPreset, because of after flowUpdatesPreset method calling will be triggered getting of updates.

- +
- +
Link copied to clipboard
-
fun TelegramBot.longPollingFlow(timeoutSeconds: Seconds = 30, exceptionsHandler: ExceptionHandler<Unit>? = null, allowedUpdates: List<String>? = ALL_UPDATES_LIST): Flow<Update>
+
fun TelegramBot.longPollingFlow(timeoutSeconds: Seconds = 30, exceptionsHandler: ExceptionHandler<Unit>? = null, allowedUpdates: List<String>? = ALL_UPDATES_LIST, autoDisableWebhooks: Boolean = true): Flow<Update>
@@ -3063,17 +3063,17 @@
- +
- +
Link copied to clipboard
-
fun TelegramBot.retrieveAccumulatedUpdates(avoidInlineQueries: Boolean = false, avoidCallbackQueries: Boolean = false, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), exceptionsHandler: ExceptionHandler<Unit>? = null, allowedUpdates: List<String>? = ALL_UPDATES_LIST, updatesReceiver: UpdateReceiver<Update>): Job
fun TelegramBot.retrieveAccumulatedUpdates(flowsUpdatesFilter: FlowsUpdatesFilter, avoidInlineQueries: Boolean = false, avoidCallbackQueries: Boolean = false, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), exceptionsHandler: ExceptionHandler<Unit>? = null): Job
+
fun TelegramBot.retrieveAccumulatedUpdates(avoidInlineQueries: Boolean = false, avoidCallbackQueries: Boolean = false, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), exceptionsHandler: ExceptionHandler<Unit>? = null, allowedUpdates: List<String>? = ALL_UPDATES_LIST, autoDisableWebhooks: Boolean = true, updatesReceiver: UpdateReceiver<Update>): Job
fun TelegramBot.retrieveAccumulatedUpdates(flowsUpdatesFilter: FlowsUpdatesFilter, avoidInlineQueries: Boolean = false, avoidCallbackQueries: Boolean = false, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), autoDisableWebhooks: Boolean = true, exceptionsHandler: ExceptionHandler<Unit>? = null): Job
@@ -3935,17 +3935,17 @@
- +
- +
Link copied to clipboard
-
fun TelegramBot.startGettingOfUpdatesByLongPolling(timeoutSeconds: Seconds = 30, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), exceptionsHandler: ExceptionHandler<Unit>? = null, allowedUpdates: List<String>? = ALL_UPDATES_LIST, updatesReceiver: UpdateReceiver<Update>): Job
fun RequestsExecutor.startGettingOfUpdatesByLongPolling(updatesFilter: UpdatesFilter, timeoutSeconds: Seconds = 30, exceptionsHandler: ExceptionHandler<Unit>? = null, scope: CoroutineScope = CoroutineScope(Dispatchers.Default)): Job
+
fun TelegramBot.startGettingOfUpdatesByLongPolling(timeoutSeconds: Seconds = 30, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), exceptionsHandler: ExceptionHandler<Unit>? = null, allowedUpdates: List<String>? = ALL_UPDATES_LIST, autoDisableWebhooks: Boolean = true, updatesReceiver: UpdateReceiver<Update>): Job
fun RequestsExecutor.startGettingOfUpdatesByLongPolling(updatesFilter: UpdatesFilter, timeoutSeconds: Seconds = 30, exceptionsHandler: ExceptionHandler<Unit>? = null, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), autoDisableWebhooks: Boolean = true): Job
diff --git a/docs/dev.inmo.tgbotapi.extensions.utils.updates.retrieving/create-accumulated-updates-retriever-flow.html b/docs/dev.inmo.tgbotapi.extensions.utils.updates.retrieving/create-accumulated-updates-retriever-flow.html index 5c99cd227e..6d455aee1e 100644 --- a/docs/dev.inmo.tgbotapi.extensions.utils.updates.retrieving/create-accumulated-updates-retriever-flow.html +++ b/docs/dev.inmo.tgbotapi.extensions.utils.updates.retrieving/create-accumulated-updates-retriever-flow.html @@ -54,12 +54,12 @@
-
+

createAccumulatedUpdatesRetrieverFlow

-
fun TelegramBot.createAccumulatedUpdatesRetrieverFlow(avoidInlineQueries: Boolean = false, avoidCallbackQueries: Boolean = false, exceptionsHandler: ExceptionHandler<Unit>? = null, allowedUpdates: List<String>? = ALL_UPDATES_LIST): Flow<Update>

Return

kotlinx.coroutines.flow.Flow which will emit updates to the collector while they will be accumulated. Works the same as longPollingFlow, but it will cancel the flow after the first one HttpRequestTimeoutException

+
fun TelegramBot.createAccumulatedUpdatesRetrieverFlow(avoidInlineQueries: Boolean = false, avoidCallbackQueries: Boolean = false, exceptionsHandler: ExceptionHandler<Unit>? = null, allowedUpdates: List<String>? = ALL_UPDATES_LIST, autoDisableWebhooks: Boolean = true): Flow<Update>

Return

kotlinx.coroutines.flow.Flow which will emit updates to the collector while they will be accumulated. Works the same as longPollingFlow, but it will cancel the flow after the first one HttpRequestTimeoutException

-
+

flushAccumulatedUpdates

-
suspend fun TelegramBot.flushAccumulatedUpdates(avoidInlineQueries: Boolean = false, avoidCallbackQueries: Boolean = false, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), allowedUpdates: List<String>? = ALL_UPDATES_LIST, exceptionsHandler: ExceptionHandler<Unit>? = null, updatesReceiver: UpdateReceiver<Update> = {})
+
suspend fun TelegramBot.flushAccumulatedUpdates(avoidInlineQueries: Boolean = false, avoidCallbackQueries: Boolean = false, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), allowedUpdates: List<String>? = ALL_UPDATES_LIST, exceptionsHandler: ExceptionHandler<Unit>? = null, autoDisableWebhooks: Boolean = true, updatesReceiver: UpdateReceiver<Update> = {})

Functions

-
+
- +
Link copied to clipboard
-
fun TelegramBot.createAccumulatedUpdatesRetrieverFlow(avoidInlineQueries: Boolean = false, avoidCallbackQueries: Boolean = false, exceptionsHandler: ExceptionHandler<Unit>? = null, allowedUpdates: List<String>? = ALL_UPDATES_LIST): Flow<Update>
+
fun TelegramBot.createAccumulatedUpdatesRetrieverFlow(avoidInlineQueries: Boolean = false, avoidCallbackQueries: Boolean = false, exceptionsHandler: ExceptionHandler<Unit>? = null, allowedUpdates: List<String>? = ALL_UPDATES_LIST, autoDisableWebhooks: Boolean = true): Flow<Update>
- +
- +
Link copied to clipboard
-
suspend fun TelegramBot.flushAccumulatedUpdates(avoidInlineQueries: Boolean = false, avoidCallbackQueries: Boolean = false, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), allowedUpdates: List<String>? = ALL_UPDATES_LIST, exceptionsHandler: ExceptionHandler<Unit>? = null, updatesReceiver: UpdateReceiver<Update> = {})
+
suspend fun TelegramBot.flushAccumulatedUpdates(avoidInlineQueries: Boolean = false, avoidCallbackQueries: Boolean = false, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), allowedUpdates: List<String>? = ALL_UPDATES_LIST, exceptionsHandler: ExceptionHandler<Unit>? = null, autoDisableWebhooks: Boolean = true, updatesReceiver: UpdateReceiver<Update> = {})
@@ -128,47 +128,47 @@
- +
- +
Link copied to clipboard
-
fun TelegramBot.longPolling(updatesFilter: UpdatesFilter, timeoutSeconds: Seconds = 30, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), exceptionsHandler: ExceptionHandler<Unit>? = null): Job

Will startGettingOfUpdatesByLongPolling using incoming flowsUpdatesFilter. It is assumed that you ALREADY CONFIGURE all updates receivers, because this method will trigger getting of updates and.

fun TelegramBot.longPolling(timeoutSeconds: Seconds = 30, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), exceptionsHandler: ExceptionHandler<Unit>? = null, flowsUpdatesFilterUpdatesKeeperCount: Int = 100, flowUpdatesPreset: FlowsUpdatesFilter.() -> Unit): Job

Will enable longPolling by creating FlowsUpdatesFilter with flowsUpdatesFilterUpdatesKeeperCount as an argument and applied flowUpdatesPreset. It is assumed that you WILL CONFIGURE all updates receivers in flowUpdatesPreset, because of after flowUpdatesPreset method calling will be triggered getting of updates.

+
fun TelegramBot.longPolling(updatesFilter: UpdatesFilter, timeoutSeconds: Seconds = 30, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), autoDisableWebhooks: Boolean = true, exceptionsHandler: ExceptionHandler<Unit>? = null): Job

Will startGettingOfUpdatesByLongPolling using incoming flowsUpdatesFilter. It is assumed that you ALREADY CONFIGURE all updates receivers, because this method will trigger getting of updates and.

fun TelegramBot.longPolling(timeoutSeconds: Seconds = 30, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), exceptionsHandler: ExceptionHandler<Unit>? = null, flowsUpdatesFilterUpdatesKeeperCount: Int = 100, autoDisableWebhooks: Boolean = true, flowUpdatesPreset: FlowsUpdatesFilter.() -> Unit): Job

Will enable longPolling by creating FlowsUpdatesFilter with flowsUpdatesFilterUpdatesKeeperCount as an argument and applied flowUpdatesPreset. It is assumed that you WILL CONFIGURE all updates receivers in flowUpdatesPreset, because of after flowUpdatesPreset method calling will be triggered getting of updates.

- +
- +
Link copied to clipboard
-
fun TelegramBot.longPollingFlow(timeoutSeconds: Seconds = 30, exceptionsHandler: ExceptionHandler<Unit>? = null, allowedUpdates: List<String>? = ALL_UPDATES_LIST): Flow<Update>
+
fun TelegramBot.longPollingFlow(timeoutSeconds: Seconds = 30, exceptionsHandler: ExceptionHandler<Unit>? = null, allowedUpdates: List<String>? = ALL_UPDATES_LIST, autoDisableWebhooks: Boolean = true): Flow<Update>
- +
- +
Link copied to clipboard
-
fun TelegramBot.retrieveAccumulatedUpdates(flowsUpdatesFilter: FlowsUpdatesFilter, avoidInlineQueries: Boolean = false, avoidCallbackQueries: Boolean = false, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), exceptionsHandler: ExceptionHandler<Unit>? = null): Job
fun TelegramBot.retrieveAccumulatedUpdates(avoidInlineQueries: Boolean = false, avoidCallbackQueries: Boolean = false, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), exceptionsHandler: ExceptionHandler<Unit>? = null, allowedUpdates: List<String>? = ALL_UPDATES_LIST, updatesReceiver: UpdateReceiver<Update>): Job
+
fun TelegramBot.retrieveAccumulatedUpdates(flowsUpdatesFilter: FlowsUpdatesFilter, avoidInlineQueries: Boolean = false, avoidCallbackQueries: Boolean = false, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), autoDisableWebhooks: Boolean = true, exceptionsHandler: ExceptionHandler<Unit>? = null): Job
fun TelegramBot.retrieveAccumulatedUpdates(avoidInlineQueries: Boolean = false, avoidCallbackQueries: Boolean = false, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), exceptionsHandler: ExceptionHandler<Unit>? = null, allowedUpdates: List<String>? = ALL_UPDATES_LIST, autoDisableWebhooks: Boolean = true, updatesReceiver: UpdateReceiver<Update>): Job
@@ -190,17 +190,17 @@
- +
- +
Link copied to clipboard
-
fun RequestsExecutor.startGettingOfUpdatesByLongPolling(updatesFilter: UpdatesFilter, timeoutSeconds: Seconds = 30, exceptionsHandler: ExceptionHandler<Unit>? = null, scope: CoroutineScope = CoroutineScope(Dispatchers.Default)): Job
fun TelegramBot.startGettingOfUpdatesByLongPolling(timeoutSeconds: Seconds = 30, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), exceptionsHandler: ExceptionHandler<Unit>? = null, allowedUpdates: List<String>? = ALL_UPDATES_LIST, updatesReceiver: UpdateReceiver<Update>): Job
+
fun RequestsExecutor.startGettingOfUpdatesByLongPolling(updatesFilter: UpdatesFilter, timeoutSeconds: Seconds = 30, exceptionsHandler: ExceptionHandler<Unit>? = null, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), autoDisableWebhooks: Boolean = true): Job
fun TelegramBot.startGettingOfUpdatesByLongPolling(timeoutSeconds: Seconds = 30, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), exceptionsHandler: ExceptionHandler<Unit>? = null, allowedUpdates: List<String>? = ALL_UPDATES_LIST, autoDisableWebhooks: Boolean = true, updatesReceiver: UpdateReceiver<Update>): Job
diff --git a/docs/dev.inmo.tgbotapi.extensions.utils.updates.retrieving/long-polling-flow.html b/docs/dev.inmo.tgbotapi.extensions.utils.updates.retrieving/long-polling-flow.html index b4ed583a2a..7cfda4d683 100644 --- a/docs/dev.inmo.tgbotapi.extensions.utils.updates.retrieving/long-polling-flow.html +++ b/docs/dev.inmo.tgbotapi.extensions.utils.updates.retrieving/long-polling-flow.html @@ -54,12 +54,12 @@
-
+

longPollingFlow

-
fun TelegramBot.longPollingFlow(timeoutSeconds: Seconds = 30, exceptionsHandler: ExceptionHandler<Unit>? = null, allowedUpdates: List<String>? = ALL_UPDATES_LIST): Flow<Update>
+
fun TelegramBot.longPollingFlow(timeoutSeconds: Seconds = 30, exceptionsHandler: ExceptionHandler<Unit>? = null, allowedUpdates: List<String>? = ALL_UPDATES_LIST, autoDisableWebhooks: Boolean = true): Flow<Update>
-
+

longPolling

-
fun TelegramBot.longPolling(updatesFilter: UpdatesFilter, timeoutSeconds: Seconds = 30, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), exceptionsHandler: ExceptionHandler<Unit>? = null): Job

Will startGettingOfUpdatesByLongPolling using incoming flowsUpdatesFilter. It is assumed that you ALREADY CONFIGURE all updates receivers, because this method will trigger getting of updates and.


fun TelegramBot.longPolling(timeoutSeconds: Seconds = 30, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), exceptionsHandler: ExceptionHandler<Unit>? = null, flowsUpdatesFilterUpdatesKeeperCount: Int = 100, flowUpdatesPreset: FlowsUpdatesFilter.() -> Unit): Job

Will enable longPolling by creating FlowsUpdatesFilter with flowsUpdatesFilterUpdatesKeeperCount as an argument and applied flowUpdatesPreset. It is assumed that you WILL CONFIGURE all updates receivers in flowUpdatesPreset, because of after flowUpdatesPreset method calling will be triggered getting of updates.

+
fun TelegramBot.longPolling(updatesFilter: UpdatesFilter, timeoutSeconds: Seconds = 30, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), autoDisableWebhooks: Boolean = true, exceptionsHandler: ExceptionHandler<Unit>? = null): Job

Will startGettingOfUpdatesByLongPolling using incoming flowsUpdatesFilter. It is assumed that you ALREADY CONFIGURE all updates receivers, because this method will trigger getting of updates and.


fun TelegramBot.longPolling(timeoutSeconds: Seconds = 30, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), exceptionsHandler: ExceptionHandler<Unit>? = null, flowsUpdatesFilterUpdatesKeeperCount: Int = 100, autoDisableWebhooks: Boolean = true, flowUpdatesPreset: FlowsUpdatesFilter.() -> Unit): Job

Will enable longPolling by creating FlowsUpdatesFilter with flowsUpdatesFilterUpdatesKeeperCount as an argument and applied flowUpdatesPreset. It is assumed that you WILL CONFIGURE all updates receivers in flowUpdatesPreset, because of after flowUpdatesPreset method calling will be triggered getting of updates.

-
+

retrieveAccumulatedUpdates

-
fun TelegramBot.retrieveAccumulatedUpdates(avoidInlineQueries: Boolean = false, avoidCallbackQueries: Boolean = false, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), exceptionsHandler: ExceptionHandler<Unit>? = null, allowedUpdates: List<String>? = ALL_UPDATES_LIST, updatesReceiver: UpdateReceiver<Update>): Job
fun TelegramBot.retrieveAccumulatedUpdates(flowsUpdatesFilter: FlowsUpdatesFilter, avoidInlineQueries: Boolean = false, avoidCallbackQueries: Boolean = false, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), exceptionsHandler: ExceptionHandler<Unit>? = null): Job
+
fun TelegramBot.retrieveAccumulatedUpdates(avoidInlineQueries: Boolean = false, avoidCallbackQueries: Boolean = false, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), exceptionsHandler: ExceptionHandler<Unit>? = null, allowedUpdates: List<String>? = ALL_UPDATES_LIST, autoDisableWebhooks: Boolean = true, updatesReceiver: UpdateReceiver<Update>): Job
fun TelegramBot.retrieveAccumulatedUpdates(flowsUpdatesFilter: FlowsUpdatesFilter, avoidInlineQueries: Boolean = false, avoidCallbackQueries: Boolean = false, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), autoDisableWebhooks: Boolean = true, exceptionsHandler: ExceptionHandler<Unit>? = null): Job
-
+

startGettingOfUpdatesByLongPolling

-
fun TelegramBot.startGettingOfUpdatesByLongPolling(timeoutSeconds: Seconds = 30, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), exceptionsHandler: ExceptionHandler<Unit>? = null, allowedUpdates: List<String>? = ALL_UPDATES_LIST, updatesReceiver: UpdateReceiver<Update>): Job
fun RequestsExecutor.startGettingOfUpdatesByLongPolling(updatesFilter: UpdatesFilter, timeoutSeconds: Seconds = 30, exceptionsHandler: ExceptionHandler<Unit>? = null, scope: CoroutineScope = CoroutineScope(Dispatchers.Default)): Job
+
fun TelegramBot.startGettingOfUpdatesByLongPolling(timeoutSeconds: Seconds = 30, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), exceptionsHandler: ExceptionHandler<Unit>? = null, allowedUpdates: List<String>? = ALL_UPDATES_LIST, autoDisableWebhooks: Boolean = true, updatesReceiver: UpdateReceiver<Update>): Job
fun RequestsExecutor.startGettingOfUpdatesByLongPolling(updatesFilter: UpdatesFilter, timeoutSeconds: Seconds = 30, exceptionsHandler: ExceptionHandler<Unit>? = null, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), autoDisableWebhooks: Boolean = true): Job