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

Changelog History
Page 1

  • v0.35.9 Changes

    • Common:
      • Version:
        • Kotlin: 1.5.30 -> 1.5.31
        • Klock: 2.4.1 -> 2.4.2
        • MicroUtils: 0.5.25 -> 0.5.28
    • Core:
      • New BotAction implementation - CustomBotAction
      • LocationContent has been divided to two different types: LiveLocationContent and StaticLocationContent
    • API:
      • Two new extensions: TelegramBot#answer with CallbackQuery and InlineQuery
    • ๐Ÿ— Behaviour Builder:
      • All triggers have been changed to use two filters: filter for in subcontext data and filter for incoming data
      • New waiters for edited content
      • New extension BehaviourContext#followLocation
      • New factory-functions:
        • BehaviourContextReceiver
        • BehaviourContextAndTypeReceiver
        • BehaviourContextAndTwoTypesReceiver
      • Old API for triggers with the flags like includeFilterByChatInBehaviourSubContext have been deprecated
  • v0.35.8 Changes

    • Common:
      • Version:
        • MicroUtils: 0.5.24 -> 0.5.25
        • UUID: 0.3.0 -> 0.3.1
    • Core:
      • MultipartRequestCallFactory now will use file name as multipart filename parameter instead of generated file id
      • New extension MPPFile#asMultipartFile
    • API
      • Fixes in TelegramBot#withAction
    • ๐Ÿ— Behaviour Builder:
      • New extensions BehaviourContext#commandWithArgs and BehaviourContext#onCommandWithArgs
  • v0.35.7 Changes

    • Common:
      • Version:
        • Kotlin: 1.5.21 -> 1.5.30
        • Klock: 2.3.3 -> 2.4.1
        • Ktor: 1.6.2 -> 1.6.3
        • Coroutines: 1.5.1 -> 1.5.2
        • MicroUtils: 0.5.21 -> 0.5.24
  • v0.35.6 Changes

    • Common:
      • Version:
        • Klock: 2.3.1 -> 2.3.3
        • MicroUtils: 0.5.19 -> 0.5.21
    • Core:
      • All FlowsUpdatesFilter flows have been renamed and updated
    • Utils:
      • Extensions allSentMessagesFlow and allSentMediaGroupsFlow have been deprecated
  • v0.35.5 Changes

    ๐Ÿ—„ MIME TYPES FOR REQUESTS HAVE BEEN DEPRECATED DUE TO REDUNDANCY OF MIME TYPES IN FILES SENDING

    • Core:
      • Several new extensions ByteReadChannel#asStorageFile and ByteReadChannelAllocator#asStorageFile
      • Several new extensions ByteArray#asMultipartFile, ByteReadChannel#asMultipartFile and ByteReadChannelAllocator#asMultipartFile
      • New extension StorageFile#asMultipartFile
    • API:
      • New extensions TelegramBot#downloadFile for writing of incoming bytes to the file
      • New extensions TelegramBot#downloadFileStream and TelegramBot#downloadFileStreamAllocator for getting of input streams instead of whole bytes arrays
      • Old extensions TelegramBot#downloadFile has been replaced to the new package. Migration: replace in your project import dev.inmo.tgbotapi.extensions.api.downloadFile with import dev.inmo.tgbotapi.extensions.api.files.downloadFile
      • PathedFile#filename extension has been deprecated, and new property PathedFile#fileName has been included directly in PathedFile
    • Utils:
      • Add several functions convertToStorageFile and extensions TelegramBot#convertToStorageFile
  • v0.35.4 Changes

    • Common:
      • Version:
        • MicroUtils: 0.5.18 -> 0.5.19
  • v0.35.3 Changes

    • Common:
      • Version:
        • Klock: 2.2.0 -> 2.3.1
        • Ktor: 1.6.1 -> 1.6.2
        • MicroUtils: 0.5.16 -> 0.5.18
    • Core:
      • SimpleRequestCallFactory and MultipartRequestCallFactory became a classes instead of objects to avoid collisions in different bots
      • Support of strongly-typed ietf language codes has been added
    • API:
      • New extension TelegramBot#downloadFile for any MediaContent
    • ๐Ÿ— Behaviour Builder:
      • New provider defaultCoroutineScopeProvider
        • Now it is not necessary to provide CoroutineScope to TelegramBot#buildBehaviour extension
      • New TelegramBot#buildBehaviour extension with FlowUpdatesFilter and CoroutineScope with default CoroutineScope
      • New typealias SimpleFilter for unifying triggers filter signatures
        • All waiters got real filters (SimpleFilter) and rename old filters as mappers
      • New extensions for Any: as/when/require for WithOptionalLanguageCode and WithLanguageCode
  • v0.35.2 Changes

    • Common:
      • Version:
        • Kotlin: 1.5.20 -> 1.5.21
        • Coroutines: 1.5.0 -> 1.5.1
        • Serialization: 1.2.1 -> 1.2.2
        • Klock: 2.1.2 -> 2.2.0
        • Ktor: 1.6.0 -> 1.6.1
        • MicroUtils: 0.5.15 -> 0.5.16
  • v0.35.1 Changes

    • Common:
      • Version:
        • Kotlin: 1.5.10 -> 1.5.20
        • MicroUtils: 0.5.6 -> 0.5.15
    • Core:
      • New interface MyCommandsRequest (also see Bot API 5.3 below)
      • New extensions TextSourcesList#make*String for all parse modes
      • All MessageContent subclasses now serializable
      • ChosenInlineResult was replaced and modified to be sealed
      • ChosenInlineResult now extends FromUser
      • Added Update#sourceUser method
      • More types assumed as sent by user types now implements FromUser interface
      • Added Any#whenFromUser, Any#asFromUser andAny#requireFromUser extensions
      • MedaGroupUpdate and its direct extenders SentMediaGroupUpdate and EditMediaGroupUpdate became sealed interfaces
      • New built-in RequestException implementator GetUpdatesConflict has been added
    • ๐Ÿ— Behaviour Builder:
      • โ—๏ธ All triggers (on* extensions) have been modified to work in parallel by some marker by default (new parameter markerFactory, in most cases will work async for different chats)
      • New extensions telegramBotWithBehaviour
      • All behaviour builder extensions got new parameter defaultExceptionsHandler
      • Class BehaviourContext was rewritten as an interface with default realization DefaultBehaviourContext and factory BehaviourContext(TelegramBot, CoroutineScope, FlowsUpdatesFilter)
      • Extension buildBehaviour (and all related extensions/functions) for opportunity to pass defaultExceptionsHandler
      • Trigger onContentMessage and waiter waitContentMessage now may include media groups
    • API:
      • All reply and subsequent extensions have been replaced in send package
    • Utils:
      • With class casts like as* and require* now you may use when* with parameter callback
      • Methods of EntitiesBuilder now will return builder itself, so you may create sequences like buildEntities { bold("Hello,") + italic(" world") } directly in buildEntities body
      • New extension TelegramBot#longPollingFlow has been added with returning value Flow with updates
    • Bot API 5.3:
      • Add type BotCommandScope, its serializer BotCommandScopeSerializer and all its children
      • New request DeleteMyCommands and updates in GetMyCommands and SetMyCommands
      • Renames according to And more of June 25, 2021 update
  • v0.35.0 Changes

    ๐Ÿšš ALL PREVIOUS DEPRECATIONS HAVE BEEN REMOVED JS PART NOW USE IR COMPILER ONLY

    • Common:
      • Version:
        • Kotlin: 1.4.72 -> 1.5.10
        • MicroUtils: 0.4.36 -> 0.5.6
        • Coroutines: 1.4.3 -> 1.5.0
        • Serialization: 1.1.0 -> 1.2.1
        • Klock: 2.0.7 -> 2.1.2
        • UUID: 0.2.3 -> 0.3.0
        • Ktor: 1.5.4 -> 1.6.0
    • Core:
      • ForceReply has been renamed to ReplyForce
      • Captioned and Explained interfaces have been removed
      • RecordAudioAction and UploadAudioAction (and all related to these actions functionality) have been removed
      • TextSource interface and all related things have been replaced
      • CallbackQuery interface and all its extenders/implementers become sealed
      • InputMedia interface and all its extenders/implementers become sealed
      • ParseMode interface and all its extenders/implementers become sealed
      • ChatMember becomes sealed
      • KeyboardMarkup becomes sealed
      • LeftChatMember and MemberChatMember become interfaces. All their code were replaced to the *Impl classes
      • Most of sealed classes have been modified to be interfaces
      • Most serializers becomes public, but they are still RistFeature
      • For EntitiesBuilder multilevel text sources builders with callback have been added