Skip to content

Releases: InsanusMokrassar/ktgbotapi

18.2.1

25 Sep 20:27
a053c08
Compare
Choose a tag to compare
  • Version:
    • Serialization: 1.7.2 -> 1.7.3
    • Coroutines: 1.8.1 -> 1.9.0
    • MicroUtils: 0.22.2 -> 0.22.4

18.2.0

08 Sep 18:34
Compare
Choose a tag to compare

THIS UPDATE CONTAINS SUPPORT OF BOTS API 7.10

  • Core:
    • Customize GiveawayCreated to use stars in some cases
    • GiveawayInfo lost parameter premiumMonths because of it is no included by default
    • GiveawayPublicResults lost parameter publicWinners because of its abcence in Telegram Bot API
    • Fix GiveawayPublicResults to be correctly deserializable
    • Fix GiveawayPrivateResults to be correctly deserializable
    • Fixes in deserialization of updates with giveaways
  • BehaviourBuilder:
    • Extension buildBehaviourWithLongPolling will not report absence of /privacy handling
  • WebApp:
    • MainButton has been deprecated in favor to BottomButton. Their functionality is equal

18.1.0

04 Sep 19:34
Compare
Choose a tag to compare
  • BehaviourBuilder:
    • Add createSubContextAndDoSynchronouslyWithUpdatesFilter as old logic of createSubContextAndDoWithUpdatesFilter
    • createSubContextAndDoWithUpdatesFilter has been renamed to createSubContextAndDoAsynchronouslyWithUpdatesFilter

18.0.0

01 Sep 21:41
Compare
Choose a tag to compare

THIS UPDATE CONTAINS BREAKING CHANGES

This update contains solution for issue #888, made by
@Nik-mmzd


Migration (step-by-step)

Replace in a whole project:

  1. RestrictedChatMember -> RestrictedMemberChatMember
  2. BannedChatMember -> RestrictedChatMember

Changes:

  • Version:
    • Kotlin: 2.0.10 -> 2.0.20
    • Serialization: 1.7.1 -> 1.7.2
    • MicroUtils: 0.22.0 -> 0.22.2
    • KSLog: 1.3.5 -> 1.3.6
    • Ktor: 2.3.11 -> 2.3.12
  • Core:
    • RestrictedChatMember has been renamed to RestrictedMemberChatMember
    • BannedChatMember has been renamed to RestrictedChatMember
    • KickedChatMember now implements RestrictedChatMember (due to rename)
    • All ChatMembers now use PreviewUsers instead of Users
  • Utils:
    • Add a lot of extensions like ChatMember.isMember
    • Add a lot of extensions like ChatMemberUpdated.joinedChat

17.0.0

14 Aug 21:10
Compare
Choose a tag to compare

THIS UPDATE CONTAINS SUPPORT OF BOTS API 7.9

  • Add support of subscriptions links handling
  • Add support of info about sender chat. It is important, that for channels will be actual senderChat instead of
    from field due to User type of the last one
    . You also may use extensions Message.sender_chat or Any.withSenderChatMessageOrNull
    to access sender chat
  • Add Reaction.Paid

Additional changes:

  • Core:
    • Add top level interfaces OptionallyWithUser and OptionallyFromUser. Old WithUser and FromUser interfaces
      extending them with following overrides of user and from fields
  • API:
    • Change order of delay and sending action in SendActionDSL
      (thanks to DRSchlaubi, PR #833).
      Besides, there has been changed way to create parallel sending of action and it must not lead to memory leaks anymore

16.0.0

11 Aug 16:54
Compare
Choose a tag to compare

THIS UPDATE CONTAINS KOTLIN UPDATE UP TO 2.0

  • Version:
    • Kotlin: 1.9.23 -> 2.0.10
    • Serialization: 1.6.3 -> 1.7.1
    • MicroUtils: 0.21.2 -> 0.22.0
    • KSLog: 1.3.4 -> 1.3.5

15.3.0

02 Aug 11:18
Compare
Choose a tag to compare

THIS UPDATE CONTAINS ADDING OF SUPPORT FOR BOTS API 7.8

  • Core:
    • OptionallyBusinessConnectionRequest now extends WithOptionalBusinessConnectionId
    • Add hasMainWebApp in ExtendedBot
  • API:
    • Add BusinessConnectionId to pin/unpin methods
  • WebApp:
    • Add shareToStory in WebApp

15.2.0

15 Jul 12:59
Compare
Choose a tag to compare
  • API:
    • Enabled an explicit mode for API module (PR #876)
  • WebApps:
    • Built-in onClick and offClick of MainButton become public (PR #875)
    • Old MainButton.onClick extension has been removed to avoid collisions of types

15.1.0

11 Jul 16:42
343c8a4
Compare
Choose a tag to compare

THIS UPDATE CONTAINS BREAKING CHANGES

THIS UPDATE CONTAINS ADDING OF SUPPORT FOR BOTS API 7.7 (thanks to bpavuk)

THIS UPDATE CONTAINS ADDING OF SUPPORT FOR BOTS API 7.6 (with participation and help of bpavuk)

  • Add support of paid media
  • Update web apps
  • Version:
    • MicroUtils: 0.21.1 -> 0.21.2
  • Core:
    • TelegramMedia has been separated onto two interfaces: TelegramFreeMedia and TelegramPaidMedia
      • TelegramFreeMedia has replaced TelegramMedia on all old places where it have been used
    • Photo has been renamed to PhotoFile
  • BehaviourBuilder:
    • Add notification when handling of /privacy command is absence
    • Add several extensions to simplify setting up /privacy reaction

15.0.0

25 Jun 19:39
Compare
Choose a tag to compare

THIS UPDATE CONTAINS BREAKING CHANGES

THIS UPDATE CONTAINS ADDING OF SUPPORT FOR BOTS API 7.5

  • Version:
    • MicroUtils: 0.21.0 -> 0.21.1
  • A lot of edit methods and classes has been changed to support business connection id