Releases: InsanusMokrassar/ktgbotapi
Releases · 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
18.2.0
THIS UPDATE CONTAINS SUPPORT OF BOTS API 7.10
Core
:- Customize
GiveawayCreated
to use stars in some cases GiveawayInfo
lost parameterpremiumMonths
because of it is no included by defaultGiveawayPublicResults
lost parameterpublicWinners
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
- Customize
BehaviourBuilder
:- Extension
buildBehaviourWithLongPolling
will not report absence of/privacy
handling
- Extension
WebApp
:MainButton
has been deprecated in favor toBottomButton
. Their functionality is equal
18.1.0
BehaviourBuilder
:- Add
createSubContextAndDoSynchronouslyWithUpdatesFilter
as old logic ofcreateSubContextAndDoWithUpdatesFilter
createSubContextAndDoWithUpdatesFilter
has been renamed tocreateSubContextAndDoAsynchronouslyWithUpdatesFilter
- Add
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:
RestrictedChatMember
->RestrictedMemberChatMember
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 toRestrictedMemberChatMember
BannedChatMember
has been renamed toRestrictedChatMember
KickedChatMember
now implementsRestrictedChatMember
(due to rename)- All
ChatMember
s now usePreviewUser
s instead ofUser
s
Utils
:- Add a lot of extensions like
ChatMember.isMember
- Add a lot of extensions like
ChatMemberUpdated.joinedChat
- Add a lot of extensions like
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 toUser
type of the last one. You also may use extensionsMessage.sender_chat
orAny.withSenderChatMessageOrNull
to access sender chat - Add
Reaction.Paid
Additional changes:
Core
:- Add top level interfaces
OptionallyWithUser
andOptionallyFromUser
. OldWithUser
andFromUser
interfaces
extending them with following overrides ofuser
andfrom
fields
- Add top level interfaces
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
- Change order of delay and sending action in SendActionDSL
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
15.3.0
THIS UPDATE CONTAINS ADDING OF SUPPORT FOR BOTS API 7.8
Core
:OptionallyBusinessConnectionRequest
now extendsWithOptionalBusinessConnectionId
- Add
hasMainWebApp
inExtendedBot
API
:- Add
BusinessConnectionId
to pin/unpin methods
- Add
WebApp
:- Add
shareToStory
inWebApp
- Add
15.2.0
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
andTelegramPaidMedia
TelegramFreeMedia
has replacedTelegramMedia
on all old places where it have been used
Photo
has been renamed toPhotoFile
BehaviourBuilder
:- Add notification when handling of
/privacy
command is absence - Add several extensions to simplify setting up
/privacy
reaction
- Add notification when handling of
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