Skip to content

Releases: InsanusMokrassar/ktgbotapi

0.29.4

02 Nov 16:12
Compare
Choose a tag to compare
  • Core:
    • diceResultLimit now is deprecated, use commonDiceResultLimit instead
    • New extension slotMachineDiceResultLimit
  • Utils:
    • New enum SlotMachineReelImages
    • New extension Int#asSlotMachineReelImage
    • New data class SlotMachineResult
      • New extension Dice#calculateSlotMachineResult

0.29.3

02 Nov 08:34
Compare
Choose a tag to compare
  • 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

0.29.2

27 Oct 10:07
Compare
Choose a tag to compare
  • 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

0.29.1

13 Oct 10:21
37ad279
Compare
Choose a tag to compare
  • Common:
    • Version updates:
      • Serialization: 1.0.0-RC2 -> 1.0.0

0.29.0

04 Oct 14:47
Compare
Choose a tag to compare
  • 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

0.28.4

28 Sep 07:42
Compare
Choose a tag to compare
  • 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

0.28.3

22 Sep 21:12
Compare
Choose a tag to compare
  • 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