All Versions
186
Latest Version
Avg Release Cycle
5 days
Latest Release
-

Changelog History
Page 12

  • v0.29.3 Changes

    November 02, 2020
    • Common:
      • Version updates:
        • Serialization: 1.0.0 -> 1.0.1
    • Core:
      • New annotation RiskFeature. This annotation will be applied to the things which contains unsafe types usage
        • SendMediaGroup factory now marked with RiskFeature
      • Media groups updates:
        • New functions SendPlaylist
        • New functions SendDocumentsGroup
        • New functions SendVisualMediaGroup
      • New type VisualMediaGroupMemberInputMedia : MediaGroupMemberInputMedia
        • InputMediaPhoto now implements VisualMediaGroupMemberInputMedia instead of MediaGroupMemberInputMedia
        • InputMediaVideo now implements VisualMediaGroupMemberInputMedia instead of MediaGroupMemberInputMedia
      • New type VisualMediaGroupContent : MediaGroupContent
        • PhotoContent now implements VisualMediaGroupContent instead of MediaGroupContent
        • VideoContent now implements VisualMediaGroupContent instead of MediaGroupContent
      • New type AudioMediaGroupContent : MediaGroupContent
        • AudioContent now implements AudioMediaGroupContent instead of MediaContent and CaptionedInput
      • New type DocumentMediaGroupContent : MediaGroupContent
        • DocumentContent now implements DocumentMediaGroupContent instead of MediaContent and CaptionedInput
      • New type AudioMediaGroupMemberInputMedia : MediaGroupMemberInputMedia
        • InputMediaAudio now implements AudioMediaGroupMemberInputMedia
      • New type DocumentMediaGroupMemberInputMedia : MediaGroupMemberInputMedia
        • InputMediaDocument now implements DocumentMediaGroupMemberInputMedia
      • New extension AudioFile#toInputMediaAudio
      • AudioContent now implements MediaGroupContent
      • New extension DocumentFile#toInputMediaDocument
      • DocumentContent now implements MediaGroupContent
      • New dice type SlotMachineDiceAnimationType
      • New extension TelegramMediaFile#asDocumentFile
      • New extension VideoFile#toInputMediaVideo
      • New exception WrongFileIdentifierException
      • Extension String#toInputMediaFileAttachmentName now is deprecated
      • Property ThumbedInputMedia#thumbMedia now is deprecated
    • API:
      • New extensions for media groups:
        • TelegramBot#sendPlaylist
        • TelegramBot#replyWithPlaylist
        • TelegramBot#sendDocumentsGroup
        • TelegramBot#replyWithDocumentsGroup
        • TelegramBot#sendVisualMediaGroup
        • TelegramBot#replyWithVisualMediaGroup
    • Utils:
      • New extensions for Flows:
        • Flow<SentMediaGroupUpdate>#mediaGroupVisualMessages
        • Flow<SentMediaGroupUpdate>#mediaGroupAudioMessages
        • Flow<SentMediaGroupUpdate>#mediaGroupDocumentMessages
      • New extensions for FlowsUpdatesFilter:
        • FlowsUpdatesFilter#audioMessagesWithMediaGroups
        • FlowsUpdatesFilter#mediaGroupAudioMessages
        • FlowsUpdatesFilter#documentMessagesWithMediaGroups
        • FlowsUpdatesFilter#mediaGroupDocumentMessages
        • FlowsUpdatesFilter#mediaGroupVisualMessages
  • v0.29.2 Changes

    October 27, 2020
    • Common:
      • Version updates:
        • Coroutines: 1.3.9 -> 1.4.0
      • Internal broadcast channels were replaced with SharedFlow
    • TelegramBotAPI-extensions-utils:
      • Extension ReceiveChannel#debounceByValue has been deprecated
  • v0.29.1 Changes

    October 13, 2020
    • Common:
      • Version updates:
        • Serialization: 1.0.0-RC2 -> 1.0.0
  • v0.29.0 Changes

    October 04, 2020
    • THIS VERSION CONTAINS BREAKING CHANGES
    • 📦 PROJECT PACKAGES WERE CHANGED

      • Packages in the whole project were changed com.github.insanusmokrassar.TelegramBotAPI -> dev.inmo.tgbotapi
      • Project group in repositories were changed: com.github.insanusmokrassar -> dev.inmo
      • Migration (Examples migration):
        1. Change implementation in your gradle files:
          • implementation "com.github.insanusmokrassar:TelegramBotAPI-core:*" -> implementation "dev.inmo:tgbotapi.core:*"
          • implementation "com.github.insanusmokrassar:TelegramBotAPI-extensions-utils:*" -> implementation "dev.inmo:tgbotapi.extensions.utils:*"
          • implementation "com.github.insanusmokrassar:TelegramBotAPI-extensions-api:*" -> implementation "dev.inmo:tgbotapi.extensions.api:*"
          • implementation "com.github.insanusmokrassar:TelegramBotAPI:*" -> implementation "dev.inmo:tgbotapi:*"
        2. Replace packages com.github.insanusmokrassar.TelegramBotAPI in the whole project by dev.inmo.tgbotapi
    • TelegramBotAPI-core:

      • Now in forward info you can get ForwardFromSupergroupInfo
      • BREAKING CHANGE SendVoice factory function has changed its signature: now it have now thumb (according to the documentation)
      • AudioFile now can be converted to VoiceFile
      • VoiceFile now can be converted to AudioFile
    • TelegramBotAPI-extensions-api:

      • ALL REQUESTS EXECUTOR USAGES WERE REPLACED WITH TelegramBot TYPEALIAS. It should not bring any break changes
      • Internal changes of sendRegularPoll and sendQuizPoll extensions
      • Variable defaultLivePeriodDelayMillis now is public
      • All send extensions for TelegramBot got their reply variations (issue #144)
      • A lot of send extensions for TelegramBot got their variation with Chat instead of ChatIdentifier
  • v0.28.4 Changes

    September 28, 2020
    • Common:
      • Version updates:
        • Ktor: 1.4.0 -> 1.4.1
    • TelegramBotAPI-core
      • Interface GroupEventMessage has been added (#140)
        • Old GroupEventMessage was renamed to CommonGroupEventMessage (#140)
      • Interface SupergroupEventMessage has been added (#140)
        • Old SupergroupEventMessage was renamed to CommonSupergroupEventMessage (#140)
      • Any GroupEventMessage now have from field (#140)
    • TelegramBotAPI-extensions-utils
      • Extensions Flow<ChatEventMessage>#onlyGroupEvents and Flow<ChatEventMessage>#onlySupergroupEvents now returns CommonGroupEventMessage and CommonSupergroupEventMessage
  • v0.28.3 Changes

    September 22, 2020
    • Common:
      • Version updates:
        • Klock: 0.12.0 -> 0.12.1
        • Kotlin serialization: 1.0.0-RC -> 1.0.0-RC2 (dependency kotlinx-serialization-core was replaced with kotlinx-serialization-json due to kotlinx.serialization library update)
    • TelegramBotAPI-core:
      • All InlineQueryResult has changed their type of id for more obvious relation between InlineQueryResult#id and ChosenInlineResult#resultId: String -> InlineQueryIdentifier
    • TelegramBotAPI-extensions-utils:
      • Several extensions for updates flows based on InlineQueryUpdate has been added:
        • Flow<InlineQueryUpdate>#onlyBaseInlineQueriesWithUpdates
        • Flow<InlineQueryUpdate>#onlyBaseInlineQueries
        • Flow<InlineQueryUpdate>#onlyLocationInlineQueriesWithUpdates
        • Flow<InlineQueryUpdate>#onlyLocationInlineQueries
      • Several extensions for updates flows based on ChosenInlineResultUpdate has been added:
        • Flow<ChosenInlineResultUpdate>.onlyBaseChosenInlineResultsWithUpdates
        • Flow<ChosenInlineResultUpdate>.onlyBaseChosenInlineResults
        • Flow<ChosenInlineResultUpdate>.onlyLocationChosenInlineResultsWithUpdates
        • Flow<ChosenInlineResultUpdate>.onlyLocationChosenInlineResults
  • v0.28.2 Changes

    • TelegramBotAPI-extensions-utils:
      • Several commands shortcuts for Flow<ContentMessage<TextContent>> has been added:
        • filterExactCommands
        • filterCommandsInsideTextMessages
        • filterCommandsWithArgs
      • Extension Flow<BaseSentMessageUpdate>.filterCommandsWithArgs has changed its signature: now it will also have original message paired with list of text sources
      • Shortcut method commonMessages for onlyCommonMessages
      • Shortcuts onlySentViaBot and withoutSentViaBot now are extensions for any Flow with types which implementing ContentMessage
  • v0.28.1 Changes

    • Common:
      • Versions updates:
        • Kotlin: 1.4.0 -> 1.4.10
        • UUID: 0.2.1 -> 0.2.2
    • TelegramBotAPI-core:
      • ExceptionHandler has changed its incoming type: Exception -> Throwable
        • handleSafely has changed its signature
        • executeUnsafe has changed its signature
  • v0.28.0 Changes

    • THIS VERSION CONTAINS BREAKING CHANGES
    • 📦 PROJECT PACKAGES WERE CHANGED

      • Project TelegramBotAPI -> TelegramBotAPI-core
      • Project TelegramBotAPI-all -> TelegramBotAPI
    • Common:

      • Version updates:
        • Kotlin: 1.3.72 -> 1.4.0
        • Coroutines: 1.3.8 -> 1.3.9
        • Serialization: 0.20.0 -> 1.0.0-RC
        • Klock: 1.11.14 -> 1.12.0
        • UUID: 0.1.1 -> 0.2.1
        • Ktor: 1.3.2 -> 1.4.0
      • buildMimeType function now is cache-oriented getter which will save already got mime types into internal map
      • All deprecations from previous versions were removed
    • TelegramBotAPI-core:

      • Typealias TelegramBot was added
      • Fully rebuilt KtorCallFactory interface to be able to handle custom answers from telegram bot api system
      • New implementation of KtorCallFactory was added: DownloadFileRequestCallFactory
        • DownloadFile request was added
      • All included KtorCallFactory realizations (except of abstract) now are objects:
        • MultipartRequestCallFactory
        • SimpleRequestCallFactory
      • MediaGroupMemberInputMedia members now will not have arguments property due to redundancy and buggy of that
      • Field media now is common for all InputMedia objects
    • TelegramBotAPI-extensions-api:

      • Extensions TelegramBot#downloadFile were added
    • TelegramBotAPI-extensions-utils:

      • All extensions for media groups (except of mediaGroupId) have changed their context: List<MediaGroupMessage> -> List<CommonMessage<MediaGroupContent>>
        • forwardInfo
        • replyTo
        • chat
        • createResend (several extensions)
      • Several extensions for downloading of files:
        • HttpClient#loadFile
        • PathedFile#download
  • v0.27.11 Changes

    • TelegramBotAPI:
      • Extension String#filenameFromUrl was created
        • Extension PathedFile#filename was created
    • TelegramBotAPI-extensions-utils:
      • Flow<Iterable<T>>.flatMap extension was added
      • Extensions for FlowUpdatesFilter were added:
        • FlowsUpdatesFilter#allSentMessagesFlow (combination of messageFlow and channelPostFlow)
        • FlowsUpdatesFilter#allSentMediaGroupsFlow (combination of messageMediaGroupFlow and channelPostMediaGroupFlow)
        • FlowsUpdatesFilter#sentMessages
        • FlowsUpdatesFilter#sentMessagesWithMediaGroups
        • FlowsUpdatesFilter#photoMessagesWithMediaGroups
        • FlowsUpdatesFilter#imageMessagesWithMediaGroups
        • FlowsUpdatesFilter#videoMessagesWithMediaGroups
        • FlowsUpdatesFilter#mediaGroupMessages
        • FlowsUpdatesFilter#mediaGroupPhotosMessages
        • FlowsUpdatesFilter#mediaGroupVideosMessages
      • A lot of extensions like Flow<BaseSentMessageUpdate>#textMessages were added:
        • Flow<BaseSentMessageUpdate>#animationMessages
        • Flow<BaseSentMessageUpdate>#audioMessages
        • Flow<BaseSentMessageUpdate>#contactMessages
        • Flow<BaseSentMessageUpdate>#diceMessages
        • Flow<BaseSentMessageUpdate>#documentMessages
        • Flow<BaseSentMessageUpdate>#gameMessages
        • Flow<BaseSentMessageUpdate>#invoiceMessages
        • Flow<BaseSentMessageUpdate>#locationMessages
        • Flow<BaseSentMessageUpdate>#photoMessages
          • Flow<BaseSentMessageUpdate>#imageMessages
        • Flow<BaseSentMessageUpdate>#pollMessages
        • Flow<BaseSentMessageUpdate>#stickerMessages
        • Flow<BaseSentMessageUpdate>#textMessages
        • Flow<BaseSentMessageUpdate>#venueMessages
        • Flow<BaseSentMessageUpdate>#videoMessages
        • Flow<BaseSentMessageUpdate>#videoNoteMessages
        • Flow<BaseSentMessageUpdate>#voiceMessages
        • Flow<BaseSentMessageUpdate>#mediaGroupMessages
        • Flow<BaseSentMessageUpdate>#mediaGroupPhotosMessages
        • Flow<BaseSentMessageUpdate>#mediaGroupVideosMessages