From 64f81071bd170d487200bcaaea5bf3670ad16087 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Sat, 31 Dec 2022 09:25:50 +0000 Subject: [PATCH] deploy: 4aa59246156b4553f134e6ef1b00a9ac8b418cdf --- .../-ktor-requests-executor/index.html | 42 +++++++++---------- .../index.html | 42 +++++++++---------- .../-base-requests-executor/index.html | 42 +++++++++---------- .../-requests-executor/index.html | 42 +++++++++---------- .../-behaviour-context-with-f-s-m/index.html | 42 +++++++++---------- .../-behaviour-context/index.html | 42 +++++++++---------- .../index.html | 42 +++++++++---------- .../-default-behaviour-context/index.html | 42 +++++++++---------- ...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, 240 insertions(+), 240 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 bf17f0c43e..54ecdf3dd5 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, autoDisableWebhooks: Boolean = true): Flow<Update>
+
fun TelegramBot.createAccumulatedUpdatesRetrieverFlow(avoidInlineQueries: Boolean = false, avoidCallbackQueries: Boolean = false, exceptionsHandler: ExceptionHandler<Unit>? = null, allowedUpdates: List<String>? = ALL_UPDATES_LIST): 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(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
+
suspend fun TelegramBot.editMessageCaption(chatId: ChatIdentifier, messageId: MessageId, text: String, parseMode: ParseMode? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<MediaContent>
suspend fun TelegramBot.editMessageCaption(inlineMessageId: InlineMessageIdentifier, media: TelegramMedia, replyMarkup: InlineKeyboardMarkup? = null): Boolean
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
@@ -1070,13 +1070,13 @@
- +
Link copied to clipboard
-
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
+
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, 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(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, autoDisableWebhooks: Boolean = true, 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, updatesReceiver: UpdateReceiver<Update> = {})
@@ -1546,32 +1546,32 @@
- +
- +
Link copied to clipboard
-
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.

+
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.

- +
- +
Link copied to clipboard
-
fun TelegramBot.longPollingFlow(timeoutSeconds: Seconds = 30, exceptionsHandler: ExceptionHandler<Unit>? = null, allowedUpdates: List<String>? = ALL_UPDATES_LIST, autoDisableWebhooks: Boolean = true): Flow<Update>
+
fun TelegramBot.longPollingFlow(timeoutSeconds: Seconds = 30, exceptionsHandler: ExceptionHandler<Unit>? = null, allowedUpdates: List<String>? = ALL_UPDATES_LIST): 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, 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
+
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
@@ -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, 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
+
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
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 e7b0c77b1d..9838b849b2 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, autoDisableWebhooks: Boolean = true): Flow<Update>
+
fun TelegramBot.createAccumulatedUpdatesRetrieverFlow(avoidInlineQueries: Boolean = false, avoidCallbackQueries: Boolean = false, exceptionsHandler: ExceptionHandler<Unit>? = null, allowedUpdates: List<String>? = ALL_UPDATES_LIST): 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(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
+
suspend fun TelegramBot.editMessageCaption(chatId: ChatIdentifier, messageId: MessageId, text: String, parseMode: ParseMode? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<MediaContent>
suspend fun TelegramBot.editMessageCaption(inlineMessageId: InlineMessageIdentifier, media: TelegramMedia, replyMarkup: InlineKeyboardMarkup? = null): Boolean
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
@@ -1099,13 +1099,13 @@
- +
Link copied to clipboard
-
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
+
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, 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(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, autoDisableWebhooks: Boolean = true, 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, updatesReceiver: UpdateReceiver<Update> = {})
@@ -1575,32 +1575,32 @@
- +
- +
Link copied to clipboard
-
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.

+
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.

- +
- +
Link copied to clipboard
-
fun TelegramBot.longPollingFlow(timeoutSeconds: Seconds = 30, exceptionsHandler: ExceptionHandler<Unit>? = null, allowedUpdates: List<String>? = ALL_UPDATES_LIST, autoDisableWebhooks: Boolean = true): Flow<Update>
+
fun TelegramBot.longPollingFlow(timeoutSeconds: Seconds = 30, exceptionsHandler: ExceptionHandler<Unit>? = null, allowedUpdates: List<String>? = ALL_UPDATES_LIST): 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, 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
+
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
@@ -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, 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
+
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
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 379ff38a8a..69d626bb06 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, autoDisableWebhooks: Boolean = true): Flow<Update>
+
fun TelegramBot.createAccumulatedUpdatesRetrieverFlow(avoidInlineQueries: Boolean = false, avoidCallbackQueries: Boolean = false, exceptionsHandler: ExceptionHandler<Unit>? = null, allowedUpdates: List<String>? = ALL_UPDATES_LIST): 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(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
+
suspend fun TelegramBot.editMessageCaption(chatId: ChatIdentifier, messageId: MessageId, text: String, parseMode: ParseMode? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<MediaContent>
suspend fun TelegramBot.editMessageCaption(inlineMessageId: InlineMessageIdentifier, media: TelegramMedia, replyMarkup: InlineKeyboardMarkup? = null): Boolean
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
@@ -1083,13 +1083,13 @@
- +
Link copied to clipboard
-
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
+
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, 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(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, autoDisableWebhooks: Boolean = true, 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, updatesReceiver: UpdateReceiver<Update> = {})
@@ -1559,32 +1559,32 @@
- +
- +
Link copied to clipboard
-
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.

+
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.

- +
- +
Link copied to clipboard
-
fun TelegramBot.longPollingFlow(timeoutSeconds: Seconds = 30, exceptionsHandler: ExceptionHandler<Unit>? = null, allowedUpdates: List<String>? = ALL_UPDATES_LIST, autoDisableWebhooks: Boolean = true): Flow<Update>
+
fun TelegramBot.longPollingFlow(timeoutSeconds: Seconds = 30, exceptionsHandler: ExceptionHandler<Unit>? = null, allowedUpdates: List<String>? = ALL_UPDATES_LIST): 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, 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
+
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
@@ -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, 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
+
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
diff --git a/docs/dev.inmo.tgbotapi.bot/-requests-executor/index.html b/docs/dev.inmo.tgbotapi.bot/-requests-executor/index.html index f28e860f1d..78ade82494 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, autoDisableWebhooks: Boolean = true): Flow<Update>
+
fun TelegramBot.createAccumulatedUpdatesRetrieverFlow(avoidInlineQueries: Boolean = false, avoidCallbackQueries: Boolean = false, exceptionsHandler: ExceptionHandler<Unit>? = null, allowedUpdates: List<String>? = ALL_UPDATES_LIST): 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(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
+
suspend fun TelegramBot.editMessageCaption(chatId: ChatIdentifier, messageId: MessageId, text: String, parseMode: ParseMode? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<MediaContent>
suspend fun TelegramBot.editMessageCaption(inlineMessageId: InlineMessageIdentifier, media: TelegramMedia, replyMarkup: InlineKeyboardMarkup? = null): Boolean
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
@@ -1103,13 +1103,13 @@
- +
Link copied to clipboard
-
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
+
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, 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(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, autoDisableWebhooks: Boolean = true, 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, updatesReceiver: UpdateReceiver<Update> = {})
@@ -1579,32 +1579,32 @@
- +
- +
Link copied to clipboard
-
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.

+
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.

- +
- +
Link copied to clipboard
-
fun TelegramBot.longPollingFlow(timeoutSeconds: Seconds = 30, exceptionsHandler: ExceptionHandler<Unit>? = null, allowedUpdates: List<String>? = ALL_UPDATES_LIST, autoDisableWebhooks: Boolean = true): Flow<Update>
+
fun TelegramBot.longPollingFlow(timeoutSeconds: Seconds = 30, exceptionsHandler: ExceptionHandler<Unit>? = null, allowedUpdates: List<String>? = ALL_UPDATES_LIST): 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, 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
+
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
@@ -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, 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
+
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
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 8902579e24..04696d183d 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, autoDisableWebhooks: Boolean = true): Flow<Update>
+
fun TelegramBot.createAccumulatedUpdatesRetrieverFlow(avoidInlineQueries: Boolean = false, avoidCallbackQueries: Boolean = false, exceptionsHandler: ExceptionHandler<Unit>? = null, allowedUpdates: List<String>? = ALL_UPDATES_LIST): 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(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
+
suspend fun TelegramBot.editMessageCaption(chatId: ChatIdentifier, messageId: MessageId, text: String, parseMode: ParseMode? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<MediaContent>
suspend fun TelegramBot.editMessageCaption(inlineMessageId: InlineMessageIdentifier, media: TelegramMedia, replyMarkup: InlineKeyboardMarkup? = null): Boolean
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
@@ -1779,13 +1779,13 @@
- +
Link copied to clipboard
-
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
+
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, 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(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, autoDisableWebhooks: Boolean = true, 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, updatesReceiver: UpdateReceiver<Update> = {})
@@ -2525,32 +2525,32 @@
- +
- +
Link copied to clipboard
-
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.

+
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.

- +
- +
Link copied to clipboard
-
fun TelegramBot.longPollingFlow(timeoutSeconds: Seconds = 30, exceptionsHandler: ExceptionHandler<Unit>? = null, allowedUpdates: List<String>? = ALL_UPDATES_LIST, autoDisableWebhooks: Boolean = true): Flow<Update>
+
fun TelegramBot.longPollingFlow(timeoutSeconds: Seconds = 30, exceptionsHandler: ExceptionHandler<Unit>? = null, allowedUpdates: List<String>? = ALL_UPDATES_LIST): 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, 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
+
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
@@ -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, 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
+
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
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 bc4d96acd7..a5c900afdf 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, autoDisableWebhooks: Boolean = true): Flow<Update>
+
fun TelegramBot.createAccumulatedUpdatesRetrieverFlow(avoidInlineQueries: Boolean = false, avoidCallbackQueries: Boolean = false, exceptionsHandler: ExceptionHandler<Unit>? = null, allowedUpdates: List<String>? = ALL_UPDATES_LIST): 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(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
+
suspend fun TelegramBot.editMessageCaption(chatId: ChatIdentifier, messageId: MessageId, text: String, parseMode: ParseMode? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<MediaContent>
suspend fun TelegramBot.editMessageCaption(inlineMessageId: InlineMessageIdentifier, media: TelegramMedia, replyMarkup: InlineKeyboardMarkup? = null): Boolean
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
@@ -1694,13 +1694,13 @@
- +
Link copied to clipboard
-
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
+
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, 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(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, autoDisableWebhooks: Boolean = true, 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, updatesReceiver: UpdateReceiver<Update> = {})
@@ -2440,32 +2440,32 @@
- +
- +
Link copied to clipboard
-
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.

+
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.

- +
- +
Link copied to clipboard
-
fun TelegramBot.longPollingFlow(timeoutSeconds: Seconds = 30, exceptionsHandler: ExceptionHandler<Unit>? = null, allowedUpdates: List<String>? = ALL_UPDATES_LIST, autoDisableWebhooks: Boolean = true): Flow<Update>
+
fun TelegramBot.longPollingFlow(timeoutSeconds: Seconds = 30, exceptionsHandler: ExceptionHandler<Unit>? = null, allowedUpdates: List<String>? = ALL_UPDATES_LIST): 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, 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
+
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
@@ -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, 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
+
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
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 bf3e255625..b1c13538d2 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, autoDisableWebhooks: Boolean = true): Flow<Update>
+
fun TelegramBot.createAccumulatedUpdatesRetrieverFlow(avoidInlineQueries: Boolean = false, avoidCallbackQueries: Boolean = false, exceptionsHandler: ExceptionHandler<Unit>? = null, allowedUpdates: List<String>? = ALL_UPDATES_LIST): 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(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
+
suspend fun TelegramBot.editMessageCaption(chatId: ChatIdentifier, messageId: MessageId, text: String, parseMode: ParseMode? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<MediaContent>
suspend fun TelegramBot.editMessageCaption(inlineMessageId: InlineMessageIdentifier, media: TelegramMedia, replyMarkup: InlineKeyboardMarkup? = null): Boolean
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
@@ -1796,13 +1796,13 @@
- +
Link copied to clipboard
-
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
+
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, 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(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, autoDisableWebhooks: Boolean = true, 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, updatesReceiver: UpdateReceiver<Update> = {})
@@ -2542,32 +2542,32 @@
- +
- +
Link copied to clipboard
-
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.

+
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.

- +
- +
Link copied to clipboard
-
fun TelegramBot.longPollingFlow(timeoutSeconds: Seconds = 30, exceptionsHandler: ExceptionHandler<Unit>? = null, allowedUpdates: List<String>? = ALL_UPDATES_LIST, autoDisableWebhooks: Boolean = true): Flow<Update>
+
fun TelegramBot.longPollingFlow(timeoutSeconds: Seconds = 30, exceptionsHandler: ExceptionHandler<Unit>? = null, allowedUpdates: List<String>? = ALL_UPDATES_LIST): 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, 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
+
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
@@ -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, 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
+
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
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 2b8e0bc5d3..9ace132aef 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, autoDisableWebhooks: Boolean = true): Flow<Update>
+
fun TelegramBot.createAccumulatedUpdatesRetrieverFlow(avoidInlineQueries: Boolean = false, avoidCallbackQueries: Boolean = false, exceptionsHandler: ExceptionHandler<Unit>? = null, allowedUpdates: List<String>? = ALL_UPDATES_LIST): 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(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
+
suspend fun TelegramBot.editMessageCaption(chatId: ChatIdentifier, messageId: MessageId, text: String, parseMode: ParseMode? = null, replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<MediaContent>
suspend fun TelegramBot.editMessageCaption(inlineMessageId: InlineMessageIdentifier, media: TelegramMedia, replyMarkup: InlineKeyboardMarkup? = null): Boolean
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
@@ -1672,13 +1672,13 @@
- +
Link copied to clipboard
-
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
+
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, 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(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, autoDisableWebhooks: Boolean = true, 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, updatesReceiver: UpdateReceiver<Update> = {})
@@ -2418,32 +2418,32 @@
- +
- +
Link copied to clipboard
-
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.

+
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.

- +
- +
Link copied to clipboard
-
fun TelegramBot.longPollingFlow(timeoutSeconds: Seconds = 30, exceptionsHandler: ExceptionHandler<Unit>? = null, allowedUpdates: List<String>? = ALL_UPDATES_LIST, autoDisableWebhooks: Boolean = true): Flow<Update>
+
fun TelegramBot.longPollingFlow(timeoutSeconds: Seconds = 30, exceptionsHandler: ExceptionHandler<Unit>? = null, allowedUpdates: List<String>? = ALL_UPDATES_LIST): 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, 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
+
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
@@ -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, 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
+
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
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 6d455aee1e..5c99cd227e 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, 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

+
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

-
+

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, autoDisableWebhooks: Boolean = true, 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, 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, autoDisableWebhooks: Boolean = true): Flow<Update>
+
fun TelegramBot.createAccumulatedUpdatesRetrieverFlow(avoidInlineQueries: Boolean = false, avoidCallbackQueries: Boolean = false, exceptionsHandler: ExceptionHandler<Unit>? = null, allowedUpdates: List<String>? = ALL_UPDATES_LIST): 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, autoDisableWebhooks: Boolean = true, 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, updatesReceiver: UpdateReceiver<Update> = {})
@@ -128,47 +128,47 @@
- +
- +
Link copied to clipboard
-
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.

+
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.

- +
- +
Link copied to clipboard
-
fun TelegramBot.longPollingFlow(timeoutSeconds: Seconds = 30, exceptionsHandler: ExceptionHandler<Unit>? = null, allowedUpdates: List<String>? = ALL_UPDATES_LIST, autoDisableWebhooks: Boolean = true): Flow<Update>
+
fun TelegramBot.longPollingFlow(timeoutSeconds: Seconds = 30, exceptionsHandler: ExceptionHandler<Unit>? = null, allowedUpdates: List<String>? = ALL_UPDATES_LIST): Flow<Update>
- +
- +
Link copied to clipboard
-
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
+
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
@@ -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), 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
+
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
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 7cfda4d683..b4ed583a2a 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, autoDisableWebhooks: Boolean = true): Flow<Update>
+
fun TelegramBot.longPollingFlow(timeoutSeconds: Seconds = 30, exceptionsHandler: ExceptionHandler<Unit>? = null, allowedUpdates: List<String>? = ALL_UPDATES_LIST): Flow<Update>
-
+

longPolling

-
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.

+
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.

-
+

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, 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
+
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
-
+

startGettingOfUpdatesByLongPolling

-
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
+
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