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

Changelog History
Page 7

  • v0.37.4 Changes

    • Common:
      • Version:
        • MicroUtils: 0.8.7 -> 0.8.9
    • Core:
      • New SupergroupEvent subtype: MigratedToSupergroup. This event is sent when a group is converted to a supergroup while bot is in the group.
      • Helper extenstion functions on ChatEvent to cast it to MigratedToSupergroup.
  • v0.37.3 Changes

    • Core:
      • Fixes in hierarchy (and creating) of messages from channels

    0.37.2 changelog:

    โšก๏ธ This update contains Telegram Bot API 5.5 implementation

    • Common:
      • Version:
        • MicroUtils: 0.8.2 -> 0.8.7
    • Core:
      • New request type: ChatSenderRequest
        • New request BanChatSenderChat
        • New request UnbanChatSenderChat
      • ExtendedPrivateChat got new properties: hasPrivateForwards and allowCreateUserIdLink (same as hasPrivateForwards)
      • All ContentMessage got field forwardable (old constructors marked as Deprecated)
      • FromChannelGroupContentMessage has been divided for two interfaces (and corresponding classes):
        • ConnectedFromChannelGroupContentMessage (and ConnectedFromChannelGroupContentMessageImpl) for connected to the group channels messages
        • UnconnectedFromChannelGroupContentMessage (and UnconnectedFromChannelGroupContentMessageImpl) for unconnected channels
    • API:
      • New extensions TelegramBot#banChatSenderChat
      • New extensions TelegramBot#unbanChatSenderChat
    • Utils:
      • Fix of EntitiesBuilder#linkln
  • v0.37.2 Changes

    • Common:
      • Version:
        • MicroUtils: 0.8.2 -> 0.8.7
    • Core:
      • New request type: ChatSenderRequest
        • New request BanChatSenderChat
        • New request UnbanChatSenderChat
      • ExtendedPrivateChat got new properties: hasPrivateForwards and allowCreateUserIdLink (same as hasPrivateForwards)
      • All ContentMessage got field forwardable (old constructors marked as Deprecated)
      • ChannelContentMessage has been divided for two interfaces (and corresponding classes):
        • ConnectedChannelContentMessage (and ConnectedChannelContentMessageImpl) for connected to the group channels messages
        • UnconnectedChannelContentMessage (and UnconnectedChannelContentMessageImpl) for unconnected channels
    • API:
      • New extensions TelegramBot#banChatSenderChat
      • New extensions TelegramBot#unbanChatSenderChat
    • Utils:
      • Fix of EntitiesBuilder#linkln
  • v0.37.1 Changes

    • Common:
      • Version:
        • Serialization: 1.3.0 -> 1.3.1
        • Klock: 2.4.7 -> 2.4.8
        • MicroUtils: 0.8.1 -> 0.8.2
  • v0.37.0 Changes

    ๐Ÿšš ALL DEPRECATIONS WERE REMOVED

    • Common:
      • Version:
        • Klock: 2.4.6 -> 2.4.7
        • Ktor: 1.6.4 -> 1.6.5
        • MicroUtils: 0.7.3 -> 0.8.1
    • Core:
      • Replacement of simple CreateChatInviteLink and EditChatInviteLink with several new:
        • CreateChatInviteLinkSimple
        • CreateChatInviteLinkWithLimitedMembers
        • CreateChatInviteLinkWithJoinRequest
        • EditChatInviteLinkSimple
        • EditChatInviteLinkWithLimitedMembers
        • EditChatInviteLinkWithJoinRequest
      • New BotAction: ChooseStickerAction
      • Now requester will throw exceptions related to responses decoding directly instead of wrapping in RequestException
    • BehaviourBuilder FSM:
      • Incompatible changes (now generics are used in state machines)
      • strictlyOn and onStateOrSubstate now are part of BehaviourContextWithFSMBuilder
  • v0.36.1 Changes

    • Common:
      • Version:
        • MicroUtils: 0.7.2 -> 0.7.3
    • API:
      • Fix getMyCommands overloads conflict when no arguments provided
    • Utils:
      • buildEntities DSL now have parameter separator to specify TextSource that will be inserted between other sources
  • v0.36.0 Changes

    ๐Ÿšš ALL PREVIOUS DEPRECATIONS HAVE BEEN REMOVED ๐Ÿ“ฆ ALL EXTENSION PACKAGES HAS BEEN RENAMES. Old packages are still available, but will be removed in next major update:

    • tgbotapi.extensions.api -> tgbotape.api
    • tgbotapi.extensions.utils -> tgbotape.utils
    • ๐Ÿ— tgbotapi.extensions.behaviour_builder -> tgbotape.behaviour_builder

    • Common:

      • Version:
        • Serialization: 1.2.2 -> 1.3.0
        • MicroUtils: 0.5.28 -> 0.7.2
        • Klock: 2.4.3 -> 2.4.6
        • Ktor: 1.6.3 -> 1.6.4
    • Core:

      • PrivateContentMessageImpl#paymentInfo now is deprecated and will always be null
      • PayInlineKeyboardButton#pay now is deprecated
      • RowBuilder and MatrixBuilder now are open and available for extending
      • MatrixBuilder#matrix will return read-only new list instead of original internal mutMatrix
      • Introduced new type of events SuccessfulPaymentEvent instead of putting of payment inside of message
      • New type of events union: PublicChatEvent. CommonEvent is still union of any ChatEvent
      • New AbstractFlowsUpdatesFilter with default lazy realization for all typed flows
      • FlowsUpdatesFilter fun now have onBufferOverflow and upstreamUpdatesFlow as incoming params
        • DefaultFlowsUpdatesFilter now use additional upstreamUpdatesFlow as source of updates
    • Utils:

      • Two new dsl:
        • inlineKeyboard for creating InlineKeyboardMarkup
        • replyKeyboard for creating ReplyKeyboardMarkup
      • Cast helpers for Message (thanks to madhead):
        • asPossiblyReplyMessage: tries to cast a Message to PossiblyReplyMessage, returns null if the message is not of that type
        • requirePossiblyReplyMessage: casts a Message to PossiblyReplyMessage, fails if the message is not of that type
        • whenPossiblyReplyMessage: tries to cast a Message to PossiblyReplyMessage and runs the given block of code with it, if the cast is successful
      • New type WithUser for unioning of all types with user
        • FromUser now extends WithUser
        • Cast helpers for type WithUser: asWithUser, whenWithUser, requireWithUser
    • ๐Ÿ— Behaviour Builder:

      • New expecters and waiters:
        • waitShippingQueries/onShippingQuery
        • waitPreCheckoutQueries/onPreCheckoutQuery
        • waitChosenInlineResult/onChosenInlineResult
        • waitPollUpdates/onPollUpdates
    • ๐Ÿ— Behaviour Builder FSM extension:

  • 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