Skip to content

Releases: InsanusMokrassar/ktgbotapi

0.35.2

17 Jul 07:59
0ad2d9a
Compare
Choose a tag to compare
  • 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

0.35.1

30 Jun 09:05
Compare
Choose a tag to compare
  • 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

0.35.0

06 Jun 03:18
Compare
Choose a tag to compare

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

0.34.1

05 May 15:13
Compare
Choose a tag to compare
  • Common:
    • Version:
      • ktor: 1.5.3 -> 1.5.4
      • MicroUtils: 0.4.35 -> 0.4.36
  • Core
    • Fix in creating of text sources list

0.34.0

29 Apr 13:21
Compare
Choose a tag to compare

It is recommended to use 0.34.1 version due to the bug in 0.34.0 related to rewriting of TextSources creating mechanism.

UPDATE UP TO Telegram Bot API 5.2
ALL OLD DEPRECATIONS WERE REMOVED

  • Core:
    • Type ChatType has been added
    • New ExtendedChat for unknown messages UnknownExtendedChat has been added
    • SendInvoice#startParameter becomes optional and replaced in SendInvoice constructor
    • New interface CommonSendInvoiceData has been added
      • Fields CommonSendInvoiceData#maxTipAmount and CommonSendInvoiceData#suggestedTipAmounts have been added
    • New type InputInvoiceMessageContent has been added
    • New interface TextedWithTextSources on top of Texted interface
      • Interface TextedInput now extends TextedWithTextSources with overriding of textSources field as not
        nullable
      • textSources become main field in TextedInput
        • MIGRATION Remove all import dev.inmo.tgbotapi.CommonAbstracts.textSources in your project
        • textEntities become are calculable property in TextedInput
    • Interface Captioned and CaptionedInput now is deprecated
      • Most of captions usages were replaced with texts
    • Interface Explained and ExplainedInput now is deprecated
      • Most of captions usages were replaced with texts
      • Interface VoiceChatEvent now is CommonEvent
    • Mechanism of RawMessageEntity converting were fully rewritten

0.33.4

17 Apr 10:20
Compare
Choose a tag to compare
  • Common:
    • Version:
      • uuid: 0.2.3 -> 0.2.4
      • MicroUtils: 0.4.33 -> 0.4.35
  • Core:
    • All TextSource implementators have become Serializable
      • New serializer TextSourceSerializer
    • InterfaceFromUserMessage now extends Message
    • New interface FromUser
      • Interface FromUserMessage now extends FromUser
  • Extensions Utils
    • Fixes in parseCommandsWithParams

0.33.3

05 Apr 13:59
Compare
Choose a tag to compare
  • Common:
    • Version:
      • MicroUtils: 0.4.32 -> 0.4.33
      • Ktor: 1.5.2 -> 1.5.3
  • API:
    • Bot actions DSL (fix for #358)
  • Behaviour Builder:
    • Rewrite logic of doInSubContextWithUpdatesFilter and doInSubContextWithFlowsUpdatesFilterSetup extensions
    • All triggers now work with stopOnCompletion set up to false

0.33.2 (Not recommended)

03 Apr 10:00
Compare
Choose a tag to compare
  • Common:
    • Version:
      • MicroUtils: 0.4.30 -> 0.4.32
  • Behaviour Builder:
    • New typealias MediaGroupFilter has been added for MediaGroup expectators
    • Several typealiases became suspend:
      • CallbackQueryMapper
      • ChatMemberUpdatedMapper
      • InlineQueryMapper
    • Commands got an additional parameter - additionalFilter. It will be called when all command filters were passed

0.33.1

26 Mar 07:59
Compare
Choose a tag to compare
  • Common:
    • Version:
      • Kotlin: 1.4.31 -> 1.4.32
      • MicroUtils: 0.4.29 -> 0.4.30
      • Klocks: 2.0.6 -> 2.0.7
  • Utils Extensions:
    • Add extensions parseCommandsWithParams

0.33.0

12 Mar 11:07
Compare
Choose a tag to compare

UPDATE UP TO Telegram Bot API 5.1
ALL DEPRECATIONS WERE REMOVED

  • Common:
    • Version:
      • MicroUtils: 0.4.28 -> 0.4.29
  • Core:
    • AdministratorChatMemberSerializer and ChatMemberSerializer has changed their visibility: they are public for now
    • Add ChatInviteLinkRequest with subrequests like KnownChatInviteLinkRequest
    • Add CreateChatInviteLink/EditChatInviteLink/RevokeChatInviteLink requests
    • Update KickChatMember to include revokeMessages flag
    • Update PromoteChatMember to include canManageVoiceChats and canManageChat flags
    • Add ChatInviteLink object
      • Add PrimaryInviteLink for ChatInviteLink with isPrimary == true
      • Add CommonInviteLink for ChatInviteLink with isPrimary == false
    • AdministratorChatMemberSerializer has been set as public for several versions
    • ChatMemberSerializer has been set as public for several versions
    • Add ChatMemberUpdated
    • Add MessageAutoDeleteTimerChanged
    • Add VoiceChatEvent
      • Add VoiceChatEnded
      • Add VoiceChatParticipantsInvited
    • Add VoiceChatStarted
    • Add ChatMemberUpdatedUpdate
      • Add CommonChatMemberUpdatedUpdate
      • Add MyChatMemberUpdatedUpdate
  • API:
    • All API extensions has been updated
  • Behaviour Builder:
    • Now content triggers and expectators will wait for channel posts too
    • New waiters and triggers for ChatMemberUpdated and its variations