From 47aa1a07953213202865839ca900647c86a9f609 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Thu, 14 May 2020 13:26:56 +0600 Subject: [PATCH] fixes in CHANGELOG and docs --- CHANGELOG.md | 1 + .../TelegramBotAPI/requests/GetUpdates.kt | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 52760afc6a..9629b3172a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -54,6 +54,7 @@ * `TelegramBotAPI`: * Currently `UpdateDeserializationStrategy` is publicly available * All `setWebhook` extensions was marked as deprecated and replaced into `TelegramBotAPI-extensions-utils` + * Typealias `ExceptionHandler` was added - it will be used for `handleSafely` * `TelegramBotAPI-extensions-api`: * Long Polling extensions now are deprecated in this project. It was replaced into `TelegramBotAPI-extensions-utils` * `TelegramBotAPI-extensions-utils`: diff --git a/TelegramBotAPI/src/commonMain/kotlin/com/github/insanusmokrassar/TelegramBotAPI/requests/GetUpdates.kt b/TelegramBotAPI/src/commonMain/kotlin/com/github/insanusmokrassar/TelegramBotAPI/requests/GetUpdates.kt index bb682b4063..792664a3e4 100644 --- a/TelegramBotAPI/src/commonMain/kotlin/com/github/insanusmokrassar/TelegramBotAPI/requests/GetUpdates.kt +++ b/TelegramBotAPI/src/commonMain/kotlin/com/github/insanusmokrassar/TelegramBotAPI/requests/GetUpdates.kt @@ -11,6 +11,15 @@ private val updatesListSerializer = ListSerializer( UpdateSerializerWithoutSerialization ) +/** + * Request updates from Telegram Bot API system. It is important, that the result updates WILL NOT include + * [com.github.insanusmokrassar.TelegramBotAPI.types.update.MediaGroupUpdates.MediaGroupUpdate] objects due to the fact, + * that it is internal abstraction and in fact any [com.github.insanusmokrassar.TelegramBotAPI.types.message.abstracts.MediaGroupMessage] + * is just a common [com.github.insanusmokrassar.TelegramBotAPI.types.message.abstracts.Message] + * + * @see com.github.insanusmokrassar.TelegramBotAPI.extensions.utils.updates.retrieving.updateHandlerWithMediaGroupsAdaptation + * @see com.github.insanusmokrassar.TelegramBotAPI.utils.convertWithMediaGroupUpdates + */ @Serializable data class GetUpdates( val offset: UpdateIdentifier? = null,// set `last update id + 1` to receive next part of updates