All Versions
60
Latest Version
Avg Release Cycle
59 days
Latest Release
-

Changelog History
Page 1

  • v0.27.4

    • TelegramBotAPI-extensions-utils:
      • Several extensions for updates was added:
        • onlyBaseMessageUpdates
        • onlySentMessageUpdates
        • onlyEditMessageUpdates
        • onlyMediaGroupsUpdates
        • onlySentMediaGroupUpdates
        • onlyEditMediaGroupUpdates
      • Renames in chat filters extensions:
        • filterBaseMessageUpdates -> filterBaseMessageUpdatesByChatId and filterBaseMessageUpdatesByChat
        • filterSentMediaGroupUpdates -> filterSentMediaGroupUpdatesByChatId and filterSentMediaGroupUpdatesByChat
  • v0.27.3

    • TelegramBotAPI:
      • UpdateDeserializationStrategy is publicly available now
      • All setWebhook extensions was marked as deprecated, renamed and replaced into TelegramBotAPI-extensions-utils
      • Typealias ExceptionHandler was added - it will be used for handleSafely
      • SetWebhook factories signatures was changed (backward compatibility was not broken)
      • executeUnsafe now working differently
        • Now it is possible to pass exceptions handler into executeUnsafe
      • BasketballDiceAnimationType was added
      • UnknownDiceAnimationType now is deprecated due to renaming - currently it is typealias for CustomDiceAnimationType
        • CustomDiceAnimationType now is data class instead of common class
      • FlowsUpdatesFilter will use size 64 by default for internal broadcast channels
    • TelegramBotAPI-extensions-api:
      • Long Polling extensions now are deprecated in this project. It was replaced into TelegramBotAPI-extensions-utils
      • Several telegramBot functions was renamed into telegramBotWithCustomClientConfig
      • Add one more setWebhookInfo realisation
    • TelegramBotAPI-extensions-utils:
      • Extension toTelegramUpdate was added
      • Long Polling extensions were added
      • Updates utils were added
      • New extensions startListenWebhooks, setWebhookInfoAndStartListenWebhooks and includeWebhookHandlingInRoute was added
      • New extension CoroutineScope#updateHandlerWithMediaGroupsAdaptation was added
      • New extension flowsUpdatesFilter was added
    • TelegramBotAPI-all:
      • Project was created
  • v0.27.2

    • Common:
      • Versions:
        • Coroutines: 1.3.5 -> 1.3.6
        • Klock: 1.10.5 -> 1.11.1
    • TelegramBotAPI:
      • Expected class MimeType was added
        • Field MimeTyped#mimeType now typed by MimeType instead of String
      • MediaGroupMemberInputMedia children now can be deserialized (but only those ones who are declared inside library)
    • TelegramBotAPI-extensions-utils:
      • Chat events splitters added:
        • Extension Flow<ChatEventMessage>#onlyChannelEvents was added
        • Extension Flow<ChatEventMessage>#onlyGroupEvents was added
        • Extension Flow<ChatEventMessage>#onlySupergroupEvents was added
  • v0.27.1

    • TelegramBotAPI:
      • Interface Explained and subsinterfaces ExplainedInput and ExplainedOutput was added
        • Class QuizPoll now implement ExplainedInput
        • In QuizPoll#caption and QuizPoll#captionEntities are deprecated now
        • Class SendQuizPoll now implement ExplainedOutput
        • In SendQuizPoll#caption is deprecated now
      • explanationLimit range was added as future replacement of quizPollExplanationLimit
        • quizPollExplanationLimit now is deprecated
      • Extensions toMarkdownExplanations, toMarkdownV2Explanations and toHtmlExplanations was added
      • Typealias FullTextSourcesList was added
        • All extensions fullEntitiesList now return FullTextSourcesList
        • All extensions of List<TextSource> now are extensions for FullTextSourcesList
    • TelegramBotAPI-extensions-api:
      • sendQuizPoll now is using explanation parameter instead of caption
  • v0.27.0

    • Common:
      • Versions updates:
        • Kotlin: 1.3.71 -> 1.3.72
        • Klock: 1.10.3 -> 1.10.5
    • TelegramBotAPI:
      • Typealias LongSeconds was added for correct explanation of seconds in Long primitive type
      • Several new fields was added:
        • explanationField
        • explanationEntitiesField
        • openPeriodField
        • closeDateField
      • Extension List<TextPart>#justTextSources was added for mapping of List<TextPart> to List<TextSource>
      • Field SendPoll#closeInfo was added
        • Range openPeriodPollSecondsLimit was added and used in all SendPoll requests for checking income data
      • SendQuizPoll now able to use fields caption and parseMode for explanation functionality
        • quizPollExplanationLimit was added for checking QuizPoll explanation size
      • Field TextLinkTextSource#url was added
      • Field TextMentionTextSource#user was added
      • Sealed class ScheduledCloseInfo was added
        • Class ExactScheduledCloseInfo was added for cases with close_date
        • Class ApproximateScheduledCloseInfo was added for cases with open_period
      • Field Poll#scheduledCloseInfo was added
      • Sealed class MultipleAnswersPoll was added
        • Class RegularPoll now extends MultipleAnswersPoll
      • Dice class was replaced into new package
      • Sealed class DiceAnimationType was added
        • Field Dice#animationType was added as emoji API representation
        • SendDice now receive animationType as second parameter
      • For List<TextSource> was added several extensions:
        • toMarkdownCaptions
        • toMarkdownTexts
        • toMarkdownV2Captions
        • toMarkdownV2Texts
        • toHtmlCaptions
        • toHtmlTexts
    • TelegramBotAPI-extensions-api:
      • All RequestsExecutor#sendDice extensions now accept DiceAnimationType? as second parameter
      • All RequestsExecutor#sendRegularPoll extensions now accept ScheduledCloseInfo fourth parameter
      • All RequestsExecutor#sendQuizPoll extensions now accept additional parameters caption: String and parseMode: ParseMode for explanation functionality and closeInfo: ScheduledCloseInfo? for autoclose poll functionality
    • TelegramBotAPI-extensions-utils:
      • Several shortcuts for ScheduledCloseInfo was added:
        • closePollExactAt
        • closePollExactAfter
        • closePollAfter
  • v0.26.4

    • TelegramBotAPI:
      • Now any getting of updates will return UnknownUpdateType when inside of deserialization will be SerializationException or NotImplemented error
      • CallbackGame currently is an object
        • It is possible to use CallbackGame for now
          • CallbackGameInlineKeyboardButton now will not accept callbackGame as income object
      • Now it is possible to pass exception handler in webhook
  • v0.26.3

    • TelegramBotAPI:
      • CallbackGameInlineKeyboardButton was added (Issue-79, PR-80)
      • UnknownInlineKeyboardButton was added. It is unavailable for creating, but you can receive it, for example, in InlineQueryResult
      • Update now will be created even if was SerializationException inside of creating the update instance - in this case will be created UnknownUpdateType
      • UnknownUpdateType$rawJson value now is included (JsonElement)
      • EXPERIMENTALLY BaseEditMessageUpdate#data now is CommonMessage<*>
      • Suspend inline function handleSafely was added
        • KtorRequestsExecutor now use handleSafely instead of try with supervisorScope
        • UpdatesPolling now use handleSafely instead of try with supervisorScope
  • v0.26.2

    • TelegramBotAPI:
      • Now EditMediaGroupUpdate also extends BaseEditMessageUpdate
      • EXPERIMENTALLY Now all TextSource realisations will contain source field as a property inside of them
    • TelegramBotAPI-extensions-api:
      • startGettingFlowsUpdates extension which do not require filter (but return a new one) was added
    • TelegramBotAPI-extensions-utils:
      • Subproject was added
      • filterBaseMessageUpdates, filterSentMediaGroupUpdates and filterEditMediaGroupUpdates extensions was added
      • filterCommandsWithArgs, filterExactCommands and filterCommandsInsideTextMessages extensions was added
      • asContentMessagesFlow, asChatEventsFlow and asUnknownMessagesFlow extensions was added
      • withContentType extension was added
        • onlyAnimationContentMessages extension was added
        • onlyAudioContentMessages extension was added
        • onlyContactContentMessages extension was added
        • onlyDiceContentMessages extension was added
        • onlyDocumentContentMessages extension was added
        • onlyGameContentMessages extension was added
        • onlyInvoiceContentMessages extension was added
        • onlyLocationContentMessages extension was added
        • onlyPhotoContentMessages extension was added
        • onlyPollContentMessages extension was added
        • onlyStickerContentMessages extension was added
        • onlyTextContentMessages extension was added
        • onlyVenueContentMessages extension was added
        • onlyVideoContentMessages extension was added
        • onlyVideoNoteContentMessages extension was added
        • onlyVoiceContentMessages extension was added
  • v0.26.1

    • TelegramBotAPI:
      • BotCommand now will check and throw error in case when command or description lengths is/are incorrect
      • StorageFile now is common for all platforms
        • JavaScript realization was removed due to its redundancy
        • JVM realization was replaced with fun factory
        • StorageFile now able to accept any factory of Input
        • StorageFileInfo was added to avoid strange collisions with throws in StorageFile
      • Fixes issue with hashTag for markdown
      • InvalidPhotoDimensionsException was added for cases when PHOTO_INVALID_DIMENSION answer received
      • Other fixes
  • v0.26.0

    • Common:
      • Versions updates:
        • Klock: 1.10.0 -> 1.10.3
    • TelegramBotAPI:
      • Request SendDice was added (calling sendDice)
      • Class Dice was added (type dice)
      • Class DiceContent was added (for including it in message object)
      • BotCommand was added
      • GetMyCommands request was added
      • SetMyCommands request was added
      • GetMe now is object instead of class
      • GetMe was replaced into package com.github.insanusmokrassar.TelegramBotAPI.requests.bot.GetMe
      • CreateNewStickerSet renamed to CreateStaticNewStickerSet
      • CreateNewAnimatedStickerSet request was added (it handle work with tgs_sticker)
      • StickerSet#thumb was added
      • AddStickerToSet renamed to AddStaticStickerToSet
      • AddAnimatedStickerToSet request was added
      • SetStickerSetThumb request was added
      • Most of sticker actions now implements StandardStickerSetAction instead of StickerSetAction
      • getUpdatesLimit was added to be ensure in get updates limit
      • GetUpdates now will check count of requesting updates and throw exception if it is not in range 1 .. 100
      • GetUpdates#limit now is not nullable and by default set up to 100
    • TelegramBotAPI-extensions-api:
      • Extensions sendDice was added
      • Extension getMyCommands request was added
      • Extension setMyCommands request was added
      • Extension getMe was replaced into package com.github.insanusmokrassar.TelegramBotAPI.extensions.api.bot.GetMeKt.getMe
      • All extensions createNewStickerSet was renamed to createNewStaticStickerSet
      • Extensions createNewAnimatedStickerSet was added
      • All extensions addStickerToSet was renamed to addStaticStickerToSet
      • Extensions addAnimatedStickerToSet was added
      • Extensions setStickerSetThumb was added
      • Extension startGettingUpdates now will drop SentMediaGroupUpdate in case if it is the last in updates group and size of retrieved updates is equal to 100 (max count of retrieved updates)
      • Extensions getUpdates now will receive only not nullable limit parameter