Recent Releases of https://github.com/InsanusMokrassar/ktgbotapi

https://github.com/InsanusMokrassar/ktgbotapi - 28.0.1

  • Version:
    • Kotlin: 2.2.0 -> 2.2.10
    • MicroUtils: 0.26.2 -> 0.26.3
    • Ktor: 3.2.2 -> 3.2.3
  • Core:
    • Let all OptionallyMessageThreadRequest inheritors to use @EncodeDefault annotation to fix default value passing

- Kotlin
Published by InsanusMokrassar 9 months ago

https://github.com/InsanusMokrassar/ktgbotapi - 28.0.0

THIS UPDATE CONTAINS BREAKING CHANGES

  • Core:
    • Add firstOf extension
  • BehaviourBuilder:
    • All builders for behaviours got boolean useDefaultSubcontextInitialAction
    • Add opportunity to pass BehaviourContextData in DefaultBehaviourContext constructor and copy method
    • By default, commands to other bots will be ignored in triggers and waiters

- Kotlin
Published by InsanusMokrassar 10 months ago

https://github.com/InsanusMokrassar/ktgbotapi - 27.1.2

  • Core:
    • Try to fix cancelling on timeout for long polling
    • Since this update phrase Something web wrong will not happen from this library ����

- Kotlin
Published by InsanusMokrassar 10 months ago

https://github.com/InsanusMokrassar/ktgbotapi - 27.1.1

  • Version:
    • MicroUtils: 0.26.1 -> 0.26.2
  • Core:
    • Make BusinessLocation#location optional (fix of #990)

- Kotlin
Published by InsanusMokrassar 10 months ago

https://github.com/InsanusMokrassar/ktgbotapi - 27.1.0

- Kotlin
Published by InsanusMokrassar 10 months ago

https://github.com/InsanusMokrassar/ktgbotapi - 27.0.0

THIS UPDATE MAY CONTAIN BREAKING CHANGES. IN CASE OF ANY MIGRATION PROBLEMS FEEL FREE TO ASK IN OUR CHAT

  • Version:
    • Kotlin: 2.1.20 -> 2.2.0
    • Serialization: 1.8.1 -> 1.9.0
    • Ktor: 3.1.3 -> 3.2.2
    • MicroUtils: 0.25.7 -> 0.26.1
    • KSLog: 1.4.1 -> 1.5.0
  • Common:
    • In most data classes with non-public constructors has been added ConsistentCopyVisibility annotation, preventing public nature in difference with constructor
    • Absence of several API methods for requests has been fixed

- Kotlin
Published by InsanusMokrassar 11 months ago

https://github.com/InsanusMokrassar/ktgbotapi - 26.1.0

THIS UPDATE CONTAINS ADDING SUPPORT OF Telegram Bots API 9.1

THIS UPDATE MAY CONTAINS BREAKING CHANGES

- Kotlin
Published by InsanusMokrassar 11 months ago

https://github.com/InsanusMokrassar/ktgbotapi - 26.0.0

THIS UPDATE CONTAINS BREAKING CHANGES IN BEHAVIOUR BUILDER AND CORE. BE CAREFUL ON UPDATE

  • Version:
    • Serialization: 1.8.0 -> 1.8.1
    • Coroutines: 1.10.1 -> 1.10.2
    • Ktor: 3.1.1 -> 3.1.3
    • MicroUtils: 0.25.3 -> 0.25.7
  • Core:
    • POTENTIALLY BREAKING CHANGE Long polling has been reworked a bit
    • BREAKING CHANGE RequestsExecutor got property RequestsExecutor.Log: KSLog
  • BehaviourContext:
    • BREAKING CHANGE All triggers and waiters become non-suspend functions
    • BREAKING CHANGE Behaviour of counted extensions (commands, data callback queries, etc.) has been changed a bit: now each one will create subcontext and work in it
    • New extension BehaviourContext.launchInNewSubContext which will launch some job in subcontext of receiver

- Kotlin
Published by InsanusMokrassar 12 months ago

https://github.com/InsanusMokrassar/ktgbotapi - 25.0.1

THIS UPDATE CONTAINS ADDING SUPPORT OF Telegram Bots API 9.0

  • Core:
    • Previously named Gift now presented by Gift.Regular
    • Fixes in MultipartRequestCallFactory for correct handling of all MultipartRequest.Common inheritors
    • Username now can be safely created with Username.prepare
    • Add extensions String.splitFor(Text|Caption|StoryCaption) for preparing several texts for several messages/captions/story captions

- Kotlin
Published by InsanusMokrassar 12 months ago

https://github.com/InsanusMokrassar/ktgbotapi - 25.0.0

THIS UPDATE CONTAINS ADDING SUPPORT OF Telegram Bots API 9.0

  • Core:
    • Previously named Gift now presented by Gift.Regular
    • Fixes in MultipartRequestCallFactory for correct handling of all MultipartRequest.Common inheritors
    • Username now can be safely created with Username.prepare
    • Add extensions String.splitFor(Text|Caption|StoryCaption) for preparing several texts for several messages/captions/story captions

- Kotlin
Published by InsanusMokrassar 12 months ago

https://github.com/InsanusMokrassar/ktgbotapi - 24.0.2

  • Version:
    • Kotlin: 2.1.10 -> 2.1.20
    • Ktor: 3.1.0 -> 3.1.1
    • MicroUtils: 0.24.7 -> 0.25.3
  • DefaultKTgBotAPIKSLog will drop CancellationExceptions by default
  • You may configure DefaultKTgBotAPIKSLog in simple way with SetDefaultKTgBotAPIKSLog
  • BehaviourBuilder:
    • FSM:
    • Fix chains cancelling on their ends

- Kotlin
Published by InsanusMokrassar about 1 year ago

https://github.com/InsanusMokrassar/ktgbotapi - 24.0.1

  • Core:
    • Now you may upload photos with EditChatMessageMedia

- Kotlin
Published by InsanusMokrassar over 1 year ago

https://github.com/InsanusMokrassar/ktgbotapi - 24.0.0

THIS UPDATE CONTAINS BREAKING CHANGES IN subcontextUpdatesFilter WORK. TAKE CARE IN MIGRATION

  • Version:
    • MicroUtils: 0.24.6 -> 0.24.7
  • Core:
    • ForumContentMessage got property threadCreatingInfo which represents information about topic where message has been sent
  • BehaviourBuilder:
    • Fix of overall subcontextUpdatesFilter behaviour. In fact, this update will fix its affection on scenaries

- Kotlin
Published by InsanusMokrassar over 1 year ago

https://github.com/InsanusMokrassar/ktgbotapi - 23.2.1

  • Core:
    • Fix of year field in Birthdate

- Kotlin
Published by InsanusMokrassar over 1 year ago

https://github.com/InsanusMokrassar/ktgbotapi - 23.2.0

THIS UPDATE CONTAINS ADDING SUPPORT OF Telegram Bots API 8.3

  • Version:
    • MicroUtils: 0.24.5 -> 0.24.6
    • Ktor: 3.0.3 -> 3.1.0

- Kotlin
Published by InsanusMokrassar over 1 year ago

https://github.com/InsanusMokrassar/ktgbotapi - 23.1.2

  • Version:
    • Kotlin: 2.1.0 -> 2.1.10
    • Serialization: 1.7.3 -> 1.8.0
    • MicroUtils: 0.24.4 -> 0.24.5
    • KSLog: 1.4.0 -> 1.4.1

- Kotlin
Published by InsanusMokrassar over 1 year ago

https://github.com/InsanusMokrassar/ktgbotapi - 23.1.1

  • Version:
    • MicroUtils: 0.24.0 -> 0.24.4
  • Core:
    • Replace removeFirst with removeAt(0) in createTextSources

- Kotlin
Published by InsanusMokrassar over 1 year ago

https://github.com/InsanusMokrassar/ktgbotapi - 23.1.0

THIS UPDATE CONTAINS ADDING SUPPORT OF Telegram Bots API 8.2

- Kotlin
Published by InsanusMokrassar over 1 year ago

https://github.com/InsanusMokrassar/ktgbotapi - 23.0.0

  • Version:
    • Coroutines: 1.9.0 -> 1.10.1
    • MicroUtils: 0.23.2 -> 0.24.0
    • KSLog: 1.3.6 -> 1.4.0
    • Ktor: 3.0.2 -> 3.0.3
  • Core:
    • All old factory methods for TextSources took suffix TextSource. For example: regular -> regularTextSource. That has been for excluding names resolution ambiguity with extensions for EntitiesBuilder

- Kotlin
Published by InsanusMokrassar over 1 year ago

https://github.com/InsanusMokrassar/ktgbotapi - 22.0.0

THIS UPDATE CONTAINS BREAKING CHANGES

IN THIS UPDATE HAS BEEN REWORKED EVENTS API IN WEBAPPS

THIS UPDATE ADDING SUPPORT OF BOT API 8.0 AND BOT API 8.1

  • Version:
    • MicroUtils: 0.23.1 -> 0.23.2
    • Ktor: 3.0.1 -> 3.0.2

- Kotlin
Published by InsanusMokrassar over 1 year ago

https://github.com/InsanusMokrassar/ktgbotapi - 21.0.1

  • Core:
    • Improvements in Update.sourceUser extension
    • Add extension PrivateChat.toUser
    • Builder methods of TextSources (like pre which returns PreTextSource) lost suppression of redundant inline due to its redundancy
    • Add mention builders for EntitiesBuilder with UserId as variant instead of User
  • BehaviourBuilder:
    • Add support of several rounds for CombinedSubcontextInitialAction. Now it will try hard to execute all its SubAction while all actions will not be completed successfully OR all left actions will not complete with errors

- Kotlin
Published by InsanusMokrassar over 1 year ago

https://github.com/InsanusMokrassar/ktgbotapi - 21.0.0

  • Version:
    • Kotlin: 2.0.21 -> 2.1.0
    • MicroUtils: 0.23.0 -> 0.23.1
  • BehaviourBuilder:
    • Add special val data: BehaviourContextData into all realizations of BehaviourContext
    • Add CombinedSubcontextInitialAction and functions buildSubcontextInitialAction/buildSubcontextInitialActionWithSubActions
    • Add subcontextInitialAction for all the functions-builders of BehaviourContext and additionalSubcontextInitialAction to all triggers

- Kotlin
Published by InsanusMokrassar over 1 year ago

https://github.com/InsanusMokrassar/ktgbotapi - 20.0.1

  • Core:
    • Fix of logger propagation (fix of #860)
    • Add opportunity to modify keyboards (fix of #761)
    • Fields of OrderInfo became nullable (fix of #917)
    • Add default toString to ChatType (fix of #919)
    • Fix of method in CreateInvoiceLink (merging of #920, made by byteduck-exploit)

- Kotlin
Published by InsanusMokrassar over 1 year ago

https://github.com/InsanusMokrassar/ktgbotapi - 20.0.0

THIS UPDATE CONTAINS SUPPORT OF BOTS API 7.11

  • All:
    • ALL SEND METHODS GOT PARAMETER allowPaidBroadcast WHICH POTENTIALLY MAY SPEND MONEYS FROM BOT BALANCE

- Kotlin
Published by InsanusMokrassar over 1 year ago

https://github.com/InsanusMokrassar/ktgbotapi - 19.0.0

THIS UPDATE CONTAINS BREAKING CHANGES

THIS UPDATE CONTAINS UPGRADE UP TO KTOR 3.0 (thanks to @d1snin)

  • Version:
    • Ktor: 2.3.12 -> 3.0.1
    • MicroUtils: 0.22.7 -> 0.23.0

- Kotlin
Published by InsanusMokrassar over 1 year ago

https://github.com/InsanusMokrassar/ktgbotapi - 18.2.3

  • Core:
    • Add default middleware ExceptionsThrottlerTelegramBotMiddleware
    • Make TelegramBotMiddlewaresPipelinesHandler to be default TelegramBotPipelinesHandler
    • Make DefaultKtorRequestsExecutor now uses runCatching instead of runCatchingSafely
    • onRequestResultPresented lambda now accepts non-nullable result

- Kotlin
Published by InsanusMokrassar over 1 year ago

https://github.com/InsanusMokrassar/ktgbotapi - 18.2.2

  • Version:
    • Kotlin: 2.0.20 -> 2.0.21
    • MicroUtils: 0.22.4 -> 0.22.7
  • Core:
    • Fixes in blockquotes serializations
    • Now RawMessageEntity is public. It is still under Warning annotation and is subject of changes
  • BehaviourBuilder:
    • Add CommonMessageFilterExcludeCommand to filter commands in messages
    • Add minus operation for SimpleFilters

- Kotlin
Published by InsanusMokrassar over 1 year ago

https://github.com/InsanusMokrassar/ktgbotapi - 18.2.1

  • Version:
    • Serialization: 1.7.2 -> 1.7.3
    • Coroutines: 1.8.1 -> 1.9.0
    • MicroUtils: 0.22.2 -> 0.22.4

- Kotlin
Published by InsanusMokrassar over 1 year ago

https://github.com/InsanusMokrassar/ktgbotapi - 18.2.0

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

- Kotlin
Published by InsanusMokrassar over 1 year ago

https://github.com/InsanusMokrassar/ktgbotapi - 18.1.0

  • BehaviourBuilder:
    • Add createSubContextAndDoSynchronouslyWithUpdatesFilter as old logic of createSubContextAndDoWithUpdatesFilter
    • createSubContextAndDoWithUpdatesFilter has been renamed to createSubContextAndDoAsynchronouslyWithUpdatesFilter

- Kotlin
Published by InsanusMokrassar over 1 year ago

https://github.com/InsanusMokrassar/ktgbotapi - 18.0.0

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

- Kotlin
Published by InsanusMokrassar almost 2 years ago

https://github.com/InsanusMokrassar/ktgbotapi - 17.0.0

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

- Kotlin
Published by InsanusMokrassar almost 2 years ago

https://github.com/InsanusMokrassar/ktgbotapi - 16.0.0

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

- Kotlin
Published by InsanusMokrassar almost 2 years ago

https://github.com/InsanusMokrassar/ktgbotapi - 15.3.0

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

- Kotlin
Published by InsanusMokrassar almost 2 years ago

https://github.com/InsanusMokrassar/ktgbotapi - 15.2.0

  • 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

- Kotlin
Published by InsanusMokrassar almost 2 years ago

https://github.com/InsanusMokrassar/ktgbotapi - 15.1.0

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

- Kotlin
Published by InsanusMokrassar almost 2 years ago

https://github.com/InsanusMokrassar/ktgbotapi - 15.0.0

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

- Kotlin
Published by InsanusMokrassar almost 2 years ago

https://github.com/InsanusMokrassar/ktgbotapi - 14.1.0

  • Version:
    • Coroutines: 1.8.0 -> 1.8.1
    • Ktor: 2.3.10 -> 2.3.11
    • MicroUtils: 0.20.45 -> 0.21.0
    • KSLog: 1.3.3 -> 1.3.4
  • BehaviourBuilder:
    • BehaviourContext updates listening job will be weakly subscribed. It means that BehaviourContext scope will not be prevented from cancelling by this job anymore
    • BehaviourContext.doInContext will not stop automatically current BehaviourContext job anymore
    • BehaviourContext.createSubContextAndDoWithUpdatesFilter will use supervisorScope instead of LinkedSupervisorScope. That will prevent scope leaking in runtime

- Kotlin
Published by InsanusMokrassar almost 2 years ago

https://github.com/InsanusMokrassar/ktgbotapi - 14.0.1

  • In core and api modules related to invoices changed their APIs to suite current API

- Kotlin
Published by InsanusMokrassar almost 2 years ago

https://github.com/InsanusMokrassar/ktgbotapi - 14.0.0

Add support of Telegram Bots API 7.4

THIS UPDATE CONTAINS BREAKING CHANGES

  • Core:
    • TelegramPaymentChargeId has been added as value class and replaced raw strings in SuccessfulPayment type of telegramPaymentChargeId
  • All the methods/classes related to sending of messages got effectId parameter
  • All the methods/classes related to sending of photos/animations/videos got showCaptionAboveMedia parameter

- Kotlin
Published by InsanusMokrassar about 2 years ago

https://github.com/InsanusMokrassar/ktgbotapi - 13.0.0

Add support of Telegram Bots API 7.3

THIS UPDATE CONTAINS BREAKING CHANGES

  • Core:
    • For polls, textSources now means question text sources. For QuizPoll there are explanation and explanationTextSources for hinting
  • API:
    • A lot of API related to Polls has been changed to include opportunity to pass ParseMode and TextSources list

- Kotlin
Published by InsanusMokrassar about 2 years ago

https://github.com/InsanusMokrassar/ktgbotapi - 12.0.1

  • Version:
    • Ktor: 2.3.9 -> 2.3.10
    • MicroUtils: 0.20.39 -> 0.20.45
    • UUID: 0.8.2 -> 0.8.4

- Kotlin
Published by InsanusMokrassar about 2 years ago

https://github.com/InsanusMokrassar/ktgbotapi - 12.0.0

Add support of Telegram Bots API 7.2

THIS UPDATE CONTAINS A LOT OF BREAKING CHANGES

- Kotlin
Published by InsanusMokrassar about 2 years ago

https://github.com/InsanusMokrassar/ktgbotapi - 11.0.0

THIS UPDATE CONTAINS REMOVES OF DEPRECATED THINGS

THIS UPDATE CONTAINS A LOT OF BREAKING CHANGES

  • Core:
    • MessageId now is value class. MessageIdentifier become deprecated
    • MessageThreadId now is value class
    • InlineQueryIdentifier now is value class
    • MediaGroupIdentifier has been renamed to MediaGroupId and now is value class
    • CallbackQueryIdentifier has been renamed to CallbackQueryId and now is value class
    • WebAppQueryId now is value class
    • PreCheckoutQueryId now is value class
    • FileUniqueId has been renamed to TgFileUniqueId and now is value class
    • UpdateIdentifier has been renamed to UpdateId and now is value class
    • InlineMessageIdentifier has been renamed to InlineMessageId and now is value class
    • ShippingQueryIdentifier has been renamed to ShippingQueryId and now is value class
    • Identifier has been renamed to RawChatId and now is value class
    • ShippingOptionIdentifier has been renamed to ShippingOptionId and now is value class
    • PollIdentifier has been renamed to PollId and now is value class
    • StickerSetName now is value class

- Kotlin
Published by InsanusMokrassar about 2 years ago

https://github.com/InsanusMokrassar/ktgbotapi - 10.1.1

  • Version:
    • Serialization: 1.6.2 -> 1.6.3
    • MicroUtils: 0.20.34 -> 0.20.37
    • Korlibs: 5.3.1 -> 5.3.2

- Kotlin
Published by InsanusMokrassar over 2 years ago

https://github.com/InsanusMokrassar/ktgbotapi - 10.1.0

Add support of Telegram Bots API 7.1

  • Version:
    • Coroutines: 1.7.3 -> 1.8.0
    • MicroUtils: 0.20.32 -> 0.20.34

- Kotlin
Published by InsanusMokrassar over 2 years ago

https://github.com/InsanusMokrassar/ktgbotapi - 10.0.1

  • Version:
    • Ktor: 2.3.7 -> 2.3.8
    • MicroUtils: 0.20.26 -> 0.20.32
    • Korlibs: 5.3.0 -> 5.3.1
    • KSLog: 1.3.1 -> 1.3.2

- Kotlin
Published by InsanusMokrassar over 2 years ago

https://github.com/InsanusMokrassar/ktgbotapi - 10.0.0

Add support of Telegram Bots API 7.0

IN THIS UPDATE KLOCK DEPENDENCY CHANGED TO com.soywiz.korge:korlibs-time UP TO 5.3.0 VERSION

IN THIS UPDATE KRYPTO DEPENDENCY CHANGED TO com.soywiz.korge:korlibs-crypto UP TO 5.3.0 VERSION

  • Version:
    • MicroUtils: 0.20.23 -> 0.20.26
    • Korlibs: 4.0.10 -> 5.3.0
  • Core:
    • Message now inherited by two variants: AccessibleMessage and InaccessibleMessage
  • Common:
    • In most places disableWebPagePreview has been replaced by new LinkPreviewOptions
    • In most places arguments replyToMessageId and allowSendingWithoutReply has been replaced with ReplyParameters
    • In reply extension two parameters have been added: replyInChatId and replyInThreadId

- Kotlin
Published by InsanusMokrassar over 2 years ago

https://github.com/InsanusMokrassar/ktgbotapi - 9.4.3

IetfLanguageCode has been renamed to IetfLang in MicroUtils

  • Version:
    • Kotlin: 1.9.21 -> 1.9.22
    • MicroUtils: 0.20.19 -> 0.20.23

- Kotlin
Published by InsanusMokrassar over 2 years ago

https://github.com/InsanusMokrassar/ktgbotapi - 9.4.2

  • Version:
    • Serialization: 1.6.1 -> 1.6.2
    • Ktor: 2.3.6 -> 2.3.7
    • MicroUtils: 0.20.15 -> 0.20.19
    • UUID: 0.8.1 -> 0.8.2

- Kotlin
Published by InsanusMokrassar over 2 years ago

https://github.com/InsanusMokrassar/ktgbotapi - 9.4.1

  • Replace warning about two bots from LongPolling to DefaultKtorRequestsExecutor

- Kotlin
Published by InsanusMokrassar over 2 years ago

https://github.com/InsanusMokrassar/ktgbotapi - 9.4.0

  • Version:
    • Kotlin: 1.9.20 -> 1.9.21
    • Serialization: 1.6.0 -> 1.6.1
    • Ktor: 2.3.5 -> 2.3.6
    • MicroUtils: 0.20.12 -> 0.20.15

- Kotlin
Published by InsanusMokrassar over 2 years ago

https://github.com/InsanusMokrassar/ktgbotapi - 9.3.0

This release become possible thanks to Anton Lakotka

THIS RELEASE CONTAINS UPDATES UP TO RELEASE CANDIDATES VERSIONS

UPDATE MAY HAVE BREAKING CHANGES

SINCE THIS UPDATE IT WILL BE REQUIRED TO USE JDK 17+ FOR DEVELOPMENT

  • Version:
    • Kotlin: 1.8.22 -> 1.9.20
    • Serialization: 1.5.1 -> 1.6.0
    • KorLibs: 4.0.3 -> 4.0.10
    • UUID: 0.7.1 -> 0.8.1
    • Ktor: 2.3.4 -> 2.3.5
    • MicroUtils: 0.19.9 -> 0.20.12

- Kotlin
Published by InsanusMokrassar over 2 years ago

https://github.com/InsanusMokrassar/ktgbotapi - 9.2.4

  • Utils:
    • New extensions *.parseCommandsWithNamedArgs
  • BehaviourBuilder:
    • In expectaters and triggers of commands add *WithNamedArgs variants
    • In expectaters and triggers of commands add opportunity to use custom separator

- Kotlin
Published by InsanusMokrassar over 2 years ago

https://github.com/InsanusMokrassar/ktgbotapi - 9.2.3

  • Core:
    • Fix in VoiceContent#createResend

- Kotlin
Published by InsanusMokrassar over 2 years ago

https://github.com/InsanusMokrassar/ktgbotapi - 9.2.2

  • Core:
    • Fix of #793: Add PreviewChat

- Kotlin
Published by InsanusMokrassar over 2 years ago

https://github.com/InsanusMokrassar/ktgbotapi - 9.2.1

  • Version:
    • Ktor: 2.3.3 -> 2.3.4
  • Core:
    • All ChatMember inheritors have fixes status field

- Kotlin
Published by InsanusMokrassar over 2 years ago

https://github.com/InsanusMokrassar/ktgbotapi - 9.2.0

Add support of Telegram Bots API 6.9

  • Rename ChatAdministratorRightsImpl -> ChatCommonAdministratorRights
  • All the request chat keyboards has changed their parameters ChatAdministratorRights to ChatCommonAdministratorRights

- Kotlin
Published by InsanusMokrassar over 2 years ago

https://github.com/InsanusMokrassar/ktgbotapi - 9.1.2

  • Core:
    • Fix of MessageContent serialization

- Kotlin
Published by InsanusMokrassar almost 3 years ago

https://github.com/InsanusMokrassar/ktgbotapi - 9.1.1

  • Core:
    • Potential fix of incorrect parsing in RawMessageEntity

- Kotlin
Published by InsanusMokrassar almost 3 years ago

https://github.com/InsanusMokrassar/ktgbotapi - 9.1.0

This update contains adding of Telegram Bot API 6.8 support

  • Version:
    • Coroutines: 1.7.2 -> 1.7.3
    • Ktor: 2.3.2 -> 2.3.3
    • MicroUtils: 0.19.7 -> 0.19.9

- Kotlin
Published by InsanusMokrassar almost 3 years ago

https://github.com/InsanusMokrassar/ktgbotapi - 9.0.0

THIS UPDATE CONTAINS BREAKING CHANGES: USERNAMES OF BOTS NOW BECAME NULLABLE

  • Version:
    • Coroutines: 1.6.4 -> 1.7.1
    • Ktor: 2.3.1 -> 2.3.2
    • MicroUtils: 0.19.4 -> 0.19.7
  • Core:
    • All bots now have nullable usernames just like common users (#772)
    • Decrease possible errors in updates handling by additional handling of update deserialization wrapping (#773)
    • New interface GetUpdatesRequest. You may implement it to show default telegram bot ktor executor that this request is an updates request and should be handled in a different way
      • Now it is possible to get raw updates with GetUpdatesRaw request
  • Utils:
    • Improve extension Update.sourceChat to add opportunity to select some chats by logic different with the default

- Kotlin
Published by InsanusMokrassar almost 3 years ago

https://github.com/InsanusMokrassar/ktgbotapi - 8.1.0

PARTIALLY BREAKING CHANGES: Exclude .*Impl classcasts from ClassCastsNew

  • Version:
    • MicroUtils: 0.19.2 -> 0.19.4
  • Utils:
    • Add deep links formatting for internal tg:// prefix (thanks to @klimatov)
    • Exclude .*Impl classcasts from ClassCastsNew

- Kotlin
Published by InsanusMokrassar almost 3 years ago

https://github.com/InsanusMokrassar/ktgbotapi - 8.0.1

  • Version:
    • UUID: 0.7.0 -> 0.7.1
    • Ktor: 2.3.0 -> 2.3.1
    • MicroUtils: 0.19.1 -> 0.19.2

- Kotlin
Published by InsanusMokrassar almost 3 years ago

https://github.com/InsanusMokrassar/ktgbotapi - 8.0.0

THIS UPDATE CONTAINS BREAKING CHANGES

ALL PROJECT DEPRECATIONS HAVE BEEN REMOVED

IN THIS UPDATE KORLIBS HAVE BEEN UPDATED TO VERSION 4.0.2. SINCE THAT VERSION A LOT OF PACKAGES HAVE BEEN RENAMED. MIGRATIONS USED IN THIS LIB:

  • com.soywiz.klock -> korlibs.time
  • com.soywiz.krypto -> korlibs.crypto

  • Versions:

    • Korlibs: 3.4.0 -> 4.0.3
    • MicroUtils: 0.18.4 -> 0.19.1

- Kotlin
Published by InsanusMokrassar about 3 years ago

https://github.com/InsanusMokrassar/ktgbotapi - 7.1.3

  • Versions:
    • Serialization: 1.5.0 -> 1.5.1
    • MicroUtils: 0.18.1 -> 0.18.4
  • Core:
    • Actualize kdocs in InputFile
  • BehaviourBuilder:
    • Now it is possible to use waitMediaContent/waitMediaContentMessage/onMediaContent
    • Add onMention/waitMention functionality
    • Add opportunity to map content with extensions to Flow

- Kotlin
Published by InsanusMokrassar about 3 years ago

https://github.com/InsanusMokrassar/ktgbotapi - 7.1.2

  • Versions:
    • MicroUtils: 0.18.0 -> 0.18.1
  • Core:
    • Now it is possible to serialize Stickers

- Kotlin
Published by InsanusMokrassar about 3 years ago

https://github.com/InsanusMokrassar/ktgbotapi - 7.1.1

  • Versions:
    • Kotlin: 1.8.20 -> 1.8.21
    • MicroUtils: 0.17.8 -> 0.18.0
  • Utils:
    • Fixes in makeLinkToMessage

- Kotlin
Published by InsanusMokrassar about 3 years ago

https://github.com/InsanusMokrassar/ktgbotapi - 7.1.0

This update contains changes according to the Telegram Bot API 6.7

  • API:
    • Rename editMessageCaption to editMessageMedia due to wrong old naming
    • Add edit extensions for InlineMessageIdentifiers
  • BehaviourBuilder:
    • BehaviourContext extensions onDeepLink and waitDeepLinks now can be used with Regex or String as first parameters

- Kotlin
Published by InsanusMokrassar about 3 years ago

https://github.com/InsanusMokrassar/ktgbotapi - 7.0.2

This update brings experimental support of linuxX64 and mingwX64 platforms

  • Versions:
    • Kotlin: 1.8.10 -> 1.8.20
    • MicroUtils: 0.17.5 -> 0.17.8
    • Ktor: 2.2.4 -> 2.3.0
  • Core:
    • New RequestsExecutor - MultipleClientKtorRequestsExecutor
    • Old KtorRequestsExecutor has been renamed to DefaultKtorRequestsExecutor
    • KtorRequestsExecutor now is expect class
      • On JS, JVM and MinGWX64 platforms it is DefaultKtorRequestsExecutor
      • On LinuxX64 platform it is MultipleClientKtorRequestsExecutor

- Kotlin
Published by InsanusMokrassar about 3 years ago

https://github.com/InsanusMokrassar/ktgbotapi - 7.0.1

  • Core:
    • New interface WithChat which contains chat field
      • Message now inherits WithChat
      • ChatMemberUpdated now inherits WithChat
  • Utils:
    • Improvements in same-notations

- Kotlin
Published by InsanusMokrassar about 3 years ago

https://github.com/InsanusMokrassar/ktgbotapi - 7.0.0

This update contains support of Telegram Bot API 6.6

THIS VERSION CONTAINS BREAKING CHANGES:

  • All previous deprecations have been removed
  • Fully reworked mechanism of stickers creating and adding
    • All separations of stickers types like Animeted have been replaces with type StickerFormat
    • New InputSticker type (and all subtypes) as replacements for old raw fields in methods
  • Reworked mechanism of files uploading

Other changes

  • Versions:
    • MicroUtils: 0.17.3 -> 0.17.5

- Kotlin
Published by InsanusMokrassar about 3 years ago

https://github.com/InsanusMokrassar/ktgbotapi - 6.1.0

  • Versions:
    • MicroUtils: 0.17.2 -> 0.17.3
  • API:

- Kotlin
Published by InsanusMokrassar about 3 years ago

https://github.com/InsanusMokrassar/ktgbotapi - 6.0.3

  • Versions:
    • MicroUtils: 0.17.1 -> 0.17.2
  • Core:
    • User in CallbackQuery now is CommonUser as well as in from
    • User in InlineQuery now is CommonUser as well as in from
  • BehaviourBuilder:
    • Fixes in DeepLink triggers and waiters

- Kotlin
Published by InsanusMokrassar over 3 years ago

https://github.com/InsanusMokrassar/ktgbotapi - 6.0.2

  • Core:
    • Long polling now uses media groups debounce as in webhooks

- Kotlin
Published by InsanusMokrassar over 3 years ago

https://github.com/InsanusMokrassar/ktgbotapi - 6.0.1

  • Versions:
    • Ktor: 2.2.3 -> 2.2.4
    • MicroUtils: 0.17.0 -> 0.17.1

- Kotlin
Published by InsanusMokrassar over 3 years ago

https://github.com/InsanusMokrassar/ktgbotapi - 6.0.0

  • Versions:
    • Kotlin: 1.7.22 -> 1.8.10
    • MicroUtils: 0.16.10 -> 0.17.0
    • Serialization: 1.4.1 -> 1.5.0
    • uuid: 0.6.0 -> 0.7.0
  • Core:
    • *.link extensions have been deprecated with renaming to avoid collisions with link methods
  • API:
    • Add TelegramBot.resend methods
  • BehaviourBuilder:
    • Add triggers and waiters for VisualMediaGroupPartContent
  • Utils:
    • *.link extensions have been deprecated with renaming to avoid collisions with link methods

- Kotlin
Published by InsanusMokrassar over 3 years ago

https://github.com/InsanusMokrassar/ktgbotapi - 5.2.1

  • Core:
    • All the CallbackQueryes now will receive CommonUser instead of User due inability of bots to trigger any inline interaction with others bots
  • API:
    • Now sentMessageFlow will take each sent message in handleLiveLocation

- Kotlin
Published by InsanusMokrassar over 3 years ago

https://github.com/InsanusMokrassar/ktgbotapi - 5.2.0

  • Versions:
    • MicroUtils: 0.16.8 -> 0.16.10

- Kotlin
Published by InsanusMokrassar over 3 years ago

https://github.com/InsanusMokrassar/ktgbotapi - 5.1.1

  • Core:
    • Add opportunity to get user link with makeUserLink
  • BehaviourBuilder:
    • Fixes in content waiting expectators

- Kotlin
Published by InsanusMokrassar over 3 years ago

https://github.com/InsanusMokrassar/ktgbotapi - 5.1.0

Bot API 6.5 support

  • Core:
    • ChatPermissions now is interface and have two main realizations: ChatPermissions.Granular and ChatPermissions.Common
    • RestrictedChatMember now implements ChatPermissions too
  • API:
    • Now it is possible to pass all long polling parameters in all places used it
  • Issues:

- Kotlin
Published by InsanusMokrassar over 3 years ago

https://github.com/InsanusMokrassar/ktgbotapi - 5.0.2

  • Versions:
    • MicroUtils: 0.16.6 -> 0.16.8
    • Ktor: 2.2.2 -> 2.2.3
  • BehaviourBuilder:
    • Fixes in BehaviourContext.onEditedContentMessage - now it will trigger callback on channel post edits too

- Kotlin
Published by InsanusMokrassar over 3 years ago

https://github.com/InsanusMokrassar/ktgbotapi - 5.0.1

  • Versions:
    • MicroUtils: 0.16.4 -> 0.16.6
    • Ktor: 2.2.1 -> 2.2.2
  • Core:
    • Fixes in SendMediaGroup request
    • Fixes in SetChatAdministratorCustomTitle request (thanks to @madhead)

- Kotlin
Published by InsanusMokrassar over 3 years ago

https://github.com/InsanusMokrassar/ktgbotapi - 5.0.0

Bot API 6.4 support!

  • Long-polling improvements

- Kotlin
Published by InsanusMokrassar over 3 years ago

https://github.com/InsanusMokrassar/ktgbotapi - 4.2.4

  • Core:
    • Fixes in webhook parts adapter
  • BehaviourBuilderWithFSM:
    • Fixes in DefaultBehaviourContextWithFSM

- Kotlin
Published by InsanusMokrassar over 3 years ago

https://github.com/InsanusMokrassar/ktgbotapi - 4.2.3

  • Versions:
    • MicroUtils: 0.16.2 -> 0.16.4
  • Core:
    • Simplify default RequestsLimiter (ExceptionsOnlyLimiter) (thanks to @y9san9 for help)

- Kotlin
Published by InsanusMokrassar over 3 years ago

https://github.com/InsanusMokrassar/ktgbotapi - 4.2.2

  • Versions:
    • MicroUtils: 0.16.0 -> 0.16.2
  • Core:
    • Fix of #694: add opportunity to create ChatId and ChatIdWithThreadId from IdChatIdentifier

- Kotlin
Published by InsanusMokrassar over 3 years ago

https://github.com/InsanusMokrassar/ktgbotapi - 4.2.1

  • Versions:
    • MicroUtils: 0.15.0 -> 0.16.0
    • Ktor: 2.1.3 -> 2.2.1
  • Utils:
    • Improve support of makeLinkToMessage extensions

- Kotlin
Published by InsanusMokrassar over 3 years ago

https://github.com/InsanusMokrassar/ktgbotapi - 4.2.0

  • Versions:
    • Kotlin: 1.7.21 -> 1.7.22
    • MicroUtils: 0.14.4 -> 0.15.0

- Kotlin
Published by InsanusMokrassar over 3 years ago

https://github.com/InsanusMokrassar/ktgbotapi - 4.1.3

  • Versions:
    • MicroUtils: 0.14.2 -> 0.14.4
  • Core:
    • ContentMessage, CommonMessage, PossiblyMediaGroupMessage and PossiblySentViaBotCommonMessage got out variance
    • UserId now is ChatId instead of IdChatIdentififer

- Kotlin
Published by InsanusMokrassar over 3 years ago

https://github.com/InsanusMokrassar/ktgbotapi - 4.1.2

  • Versions:
    • MicroUtils: 0.14.1 -> 0.14.2
  • BehaviourBuilder:
    • Fixes in CallbackQuery waiters

- Kotlin
Published by InsanusMokrassar over 3 years ago

https://github.com/InsanusMokrassar/ktgbotapi - 4.1.1

  • Core:
    • Add opportunity to create IdChatIdentifier with optional threadId
    • New serializer FullChatIdentifierSerializer with serialization of ChatIdWithThreadId

- Kotlin
Published by InsanusMokrassar over 3 years ago

https://github.com/InsanusMokrassar/ktgbotapi - 4.1.0

  • Versions:
    • Kotlin: 1.7.20 -> 1.7.21
    • MicroUtils: 0.14.0 -> 0.14.1
    • Korlibs: 3.3.1 -> 3.4.0
    • UUID: 0.5.0 -> 0.6.0
  • Core:
    • All the chats identifiers has been rewritten as value classes
    • New chat identifier: ChatIdWithThreadId
    • RawMessage will create ChatIdWithThreadId chat id under the hood by default
    • All the methods which potentially using threadId will try to take it from chatId
  • API:
    • All default threadId null values has been replaced with auto-calculated threadId from chats/chat ids

- Kotlin
Published by InsanusMokrassar over 3 years ago

https://github.com/InsanusMokrassar/ktgbotapi - 4.0.0

!!! THIS UPDATE CONTAINS FULL REWORK OF MEDIA GROUPS FUNCTIONALITY !!!

THIS UPDATE CONTAINS BREAKING CHANGES

  • Common:
    • All the media groups have been rewritten. Since this update, there are no separated messages types for media groups, but new type of content (MediaGroupContent) has been introduced
    • Bot API 6.3 support
  • Versions:
    • MicroUtils: 0.13.2 -> 0.14.0
  • Core:
    • New requests

- Kotlin
Published by InsanusMokrassar over 3 years ago

https://github.com/InsanusMokrassar/ktgbotapi - 3.3.1

  • Versions:
    • Ktor: 2.1.2 -> 2.1.3
    • Klock: 3.2.0 -> 3.3.1
    • MicroUtils: 0.13.1 -> 0.13.2
  • Utils:
    • New extensions on CommonMessage: hasCommands and hasNoCommands. Useful for the initialFilter parameter in behaviour builder triggers.

- Kotlin
Published by InsanusMokrassar over 3 years ago

https://github.com/InsanusMokrassar/ktgbotapi - 3.3.0

THIS VERSION CONTAINS UPGRADE KOTLIN (AND ALL RELATED LIBRARIES) UP TO 1.7.20

  • Versions:
    • Kotlin: 1.7.10 -> 1.7.20
    • Kotlin Serialization: 1.4.0 -> 1.4.1
    • Korlibs: 3.1.0 -> 3.2.0
    • MicroUtils: 0.12.17 -> 0.13.1
  • Core:
    • Add opportunity to create command text source and add command in entities builder via BotCommamd (thanks to d1shin)
  • API:
    • New extensions TelegramBot#getStickerSetOrNull and TelegramBot#getStickerSetOrThrow
      • Old TelegramBot#getStickerSet has been deprecated
  • Behaviour Builder:
    • Add opportunity to use triggers and waiters with BotCommand (thanks to d1shin)

- Kotlin
Published by InsanusMokrassar over 3 years ago

https://github.com/InsanusMokrassar/ktgbotapi - 3.2.7

  • Versions:
    • MicroUtils: 0.12.13 -> 0.12.17
    • Ktor: 2.1.1 -> 2.1.2
  • Utils:
    • Next classes become typealiases instead of classes:
    • ReplyKeyboardBuilder
    • ReplyKeyboardRowBuilder
    • InlineKeyboardBuilder
    • InlineKeyboardRowBuilder

- Kotlin
Published by InsanusMokrassar over 3 years ago

https://github.com/InsanusMokrassar/ktgbotapi - 3.2.6

  • Core:
    • Fixes in ChatMemberSerializer#serialize method
    • Migration of EntitiesBuilder from Utils to Core
  • API:
    • All the extensions related to text messages (replies, sending, editing) got their duplicates with buildEntities lambda and separator
  • Utils:
    • Migration of EntitiesBuilder from Utils to Core

- Kotlin
Published by InsanusMokrassar over 3 years ago

https://github.com/InsanusMokrassar/ktgbotapi - 3.2.5

  • Common:
    • Improve support of new exceptions recovering mechanism

- Kotlin
Published by InsanusMokrassar over 3 years ago

https://github.com/InsanusMokrassar/ktgbotapi - 3.2.4

  • API:
    • New edit's with chats and message ids

- Kotlin
Published by InsanusMokrassar over 3 years ago