Update telegram_bot_api_version to v34#45
Open
renovate[bot] wants to merge 1 commit into
Open
Conversation
dd8f08c to
76c37d8
Compare
95f5501 to
91cf07e
Compare
4b7cd87 to
fdaa7bf
Compare
ef599fe to
4365da2
Compare
4365da2 to
36673b1
Compare
36673b1 to
30680c8
Compare
30680c8 to
3749d79
Compare
3749d79 to
63be428
Compare
9abc4a6 to
749572c
Compare
749572c to
960fb46
Compare
21c7de0 to
abc2df4
Compare
abc2df4 to
116d654
Compare
921c5fa to
df9c454
Compare
c9f1725 to
6963dcb
Compare
15099ba to
c4b271e
Compare
c4b271e to
30b4973
Compare
30b4973 to
dcdbe08
Compare
dcdbe08 to
0850093
Compare
0850093 to
e6e5e16
Compare
e6e5e16 to
97b109c
Compare
97b109c to
ea6ad16
Compare
ea6ad16 to
03bc226
Compare
624d63d to
684b2d6
Compare
72f0026 to
722a648
Compare
722a648 to
381efd4
Compare
381efd4 to
0880076
Compare
0880076 to
3346f1d
Compare
3346f1d to
f453e9e
Compare
45d6125 to
3624ad8
Compare
3624ad8 to
15c75a1
Compare
15c75a1 to
27d27fc
Compare
27d27fc to
d8c6f8a
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.38.12→34.0.0Release Notes
insanusmokrassar/TelegramBotAPI (dev.inmo:tgbotapi)
v34.0.0THIS UPDATE CONTAINS SUPPORT OF TELEGRAM BOTS API 10.0
THIS UPDATE CONTAINS BREAKING CHANGES
Breaking changes:
CommonMessage<T>super-type — replaced by the new sealedChatContentMessage<T>(CommonContentMessage,ChatMessage); code referencingCommonMessagein types,whenbranches or signatures must switch toChatContentMessagecommonMessageOrNull/commonMessageOrThrow/ifCommonMessagetochatContentMessageOrNull/chatContentMessageOrThrow/ifChatContentMessageContentMessage,Message,FromUserMessage,PossiblyEditedMessage,PossiblyForwardedMessage,PossiblyPaymentMessage,PossiblySentViaBotCommonMessage,PossiblyTopicMessage,SignedMessage,ChatEventMessage,PassportMessage) and related typealiases — dependent type signatures may need updatesChatContentMessage<*>(previouslyContentMessage<*>)ChatPermissionsinterface gained the abstractcanReactToMessagesmember — custom implementations must add itSendMessageDraftno longer throws when the text length is out of range: it now logs a warning and validates against the newdraftMessageTextLength(0..textLength.last) range, allowing empty textpollOptionsLimitchanged from2..12to1..12Migration advice: Replace
CommonMessageusages withChatContentMessage,commonMessageOrwithchatContentMessageOrCore:Guest Mode) AddedGuestQueryIdvalue class indev.inmo.tgbotapi.typesandWithOptionalGuestQueryIdinterface indev.inmo.tgbotapi.abstracts.typesGuest Mode) AddedRequestGuestMessageandRequestGuestContentMessage<T>message abstractions (CommonContentMessage,SpecialMessage,FromUserMessage,PossiblySentViaBot) exposingguestQueryId; addedPossiblyGuestAnswerMessageexposingguestBotCallerUserandguestBotCallerChatGuest Mode) AddedRequestGuestContentMessageImpldata class implementingRequestGuestContentMessageGuest Mode) AddedSentGuestMessagecarryingInlineMessageIdGuest Mode) AddedGuestMessageUpdate(BaseSentMessageUpdate) andguest_messageupdate type wiring inRawUpdate/UpdateTypes/FlowsUpdatesFilterGuest Mode) AddedAnswerGuestQueryrequest returningSentGuestMessageChatContentMessage<T>super-type extendingCommonContentMessageandChatMessage, used as the common return type of chat send/reply operationsContentMessage,Message,FromUserMessage,PossiblyEditedMessage,PossiblyForwardedMessage,PossiblyPaymentMessage,PossiblySentViaBotCommonMessage,PossiblyTopicMessage,SignedMessage,ChatEventMessage,PassportMessageand related typealiases to integrate guest messages and unify chat content messagesRawMessage,MessageUpdate,ChannelPostUpdate,BusinessMessageUpdate,EditMessageUpdate,EditChannelPostUpdate,BaseMessageUpdate,BaseEditMessageUpdate,BaseSentMessageUpdateto align with the new hierarchyLive Photos) AddedLivePhotoFileclass representing the incomingLivePhotoTelegram type (PollMedia,MediaContentVariant,UsefulAsPaidMediaFile)Live Photos) AddedLivePhotoContent(VisualMediaGroupPartContent) representing live photo messagesLive Photos) AddedTelegramMediaLivePhoto(TelegramFreeMedia,VisualMediaGroupMemberTelegramMedia,InputPollMedia,InputPollOptionMedia) — usable insendMediaGroup,editMessageMedia, and pollsLive Photos) AddedTelegramPaidMediaLivePhoto(VisualTelegramPaidMedia) for paid live photosLive Photos) AddedPaidMedia.LivePhotovariant andPaidMedia.LivePhoto.toTelegramPaidMediaLivePhoto()conversionLive Photos) AddedlivePhotoFieldconstant; addedlive_photoparsing toRawMessageandReplyInfo.ExternalsurrogateLive Photos) AddedSendLivePhotorequest andSendLivePhotoData/SendLivePhotoFilesLive Photos) AddedLivePhotoMessagetypealiasLive Photos) AddedLivePhotoFile.toTelegramMediaLivePhoto(...)andLivePhotoFile.toTelegramPaidMediaLivePhoto()extensionsChat Management) AddedcanReactToMessagesfield toChatPermissions(interface,GranularandCommon) andRestrictedMemberChatMemberChat Management) Added optionalretrieveOtherBotsparameter toGetChatAdministratorsrequestChat Management) AddedDeleteMessageReactionrequest with@Warningon primary constructor; addedDeleteUserMessageReactionandDeleteActorChatMessageReactionfactory functionsChat Management) AddedDeleteAllMessageReactionsrequest with@Warningon primary constructor; addedDeleteAllUserMessageReactionsandDeleteAllActorChatMessageReactionsfactory functionsPolls) AddedTelegramMediaSticker,TelegramMediaLocationandTelegramMediaVenueclassesPolls) AddedInputPollMediaandInputPollOptionMediasealed interfaces representing input media variants accepted bysendPollPolls) AddedPollMediaclass representing media attached to polls in incoming updatesPolls) Addedmediafield toPoll,PollOptionandInputPollOptionPolls) AddedexplanationMediafield toQuizPollPolls) AddedmembersOnlyfield toPollPolls) AddedcountryCodesfield toPollPolls) Addedmedia,membersOnly,countryCodesparameters toSendRegularPollandSendPollfactory functionsPolls) Addedmedia,explanationMedia,membersOnly,countryCodesparameters toSendQuizPollfactory functionsPolls) Decreased minimum allowed poll options count from 2 to 1 (pollOptionsLimitis now1..12)Managed Bots Access) AddedBotAccessSettingsdata class indev.inmo.tgbotapi.types.managed_botswithisAccessRestrictedandaddedUsersfieldsManaged Bots Access) AddedGetManagedBotAccessSettingsrequest returningBotAccessSettingsManaged Bots Access) AddedSetManagedBotAccessSettingsrequest withuserIdand optionaladdedUserIds(isAccessRestrictedis derived fromaddedUserIds)Managed Bots Access) AddedisAccessRestrictedField,addedUsersField,addedUserIdsFieldconstantsPersonal Chat) AddedGetUserPersonalChatMessagesrequest returningList<ChatContentMessage<*>>Drafts)SendMessageDraftnow allows empty text via the newdraftMessageTextLength(0..textLength.last) range and logs a warning instead of throwing when the text length is out of rangeAPI:Guest Mode) AddedanswerGuestQueryextensions indev.inmo.tgbotapi.extensions.api.answersGuest Mode) AddedRepliesWithGuestQueryId.ktreply extensions acceptingGuestQueryIdGuest Mode) Updated reply/send extensions (Replies,RepliesWithChatsAndMessages,Sends,ResendMessage,SendChecklist,SendContact,SendDice,SendLiveLocation,SendStaticLocation,SendVenue,SendMessage, mediaSend*,SendGame,SendInvoice,SendQuizPoll,SendRegularPoll) to returnChatContentMessage<*>and align with the new hierarchyLive Photos) AddedsendLivePhotoextensions (ChatIdentifier/Chat×InputFile/LivePhotoFile× text/textSources)Chat Management) Added optionalretrieveOtherBotsparameter togetChatAdministratorsextensionsChat Management) AddeddeleteUserMessageReactionanddeleteActorChatMessageReactionextensionsChat Management) AddeddeleteAllUserMessageReactionsanddeleteAllActorChatMessageReactionsextensionsChat Management) Added@Warning-marked catch-alldeleteMessageReactionanddeleteAllMessageReactionsextensionsPolls) Addedmedia,membersOnly,countryCodesparameters tosendRegularPollextensionPolls) Addedmedia,explanationMedia,membersOnly,countryCodesparameters tosendQuizPollextensionManaged Bots Access) AddedgetManagedBotAccessSettingsextension indev.inmo.tgbotapi.extensions.api.managed_botsManaged Bots Access) AddedsetManagedBotAccessSettingsextension withuserIdand optionaladdedUserIdsPersonal Chat) AddedgetUserPersonalChatMessagesextension returningList<ContentMessage<*>>Behaviour Builder:Guest Mode) AddedGuestMessageTriggerswithonGuestRequestMessagetriggerGuest Mode) UpdatedWaitContent,WaitContentMessage,WaitEditedContentMessage,WaitMediaGroup,WaitMediaGroupMessages,WaitCommandsMessages,WaitDeepLinks,WaitMention,WaitMentionMessage,ContentTriggers,EditedContentTriggers,MediaGroupMessagesTriggers,MediaGroupTriggers,MentionTriggers,DeepLinkHandling,MessageFilterExcludingMediaGroupsfor the unifiedChatContentMessagehierarchyLive Photos) AddedonLivePhoto,onEditedLivePhoto,onLivePhotoGalleryMessages,onLivePhotoGallerytriggersLive Photos) AddedonMentionWithLivePhotoContent/onTextMentionWithLivePhotoContenttriggersLive Photos) AddedwaitLivePhoto,waitLivePhotoMessage,waitEditedLivePhoto,waitEditedLivePhotoMessage,waitLivePhotoGallery,waitLivePhotoGalleryMessagesexpectationsLive Photos) AddedonlyLivePhotoContentMessagesutilityUtils:Guest Mode) AddedguestMessageUpdateOrNulland related casts inClassCastsNewGuest Mode) UpdatedMediaGroupContentMessageCreatorandFlowsUpdatesFilterto support guest messagesv33.2.0Core:ApiExceptionas variant ofBotExceptionv33.1.0Versions:Kotlin:2.3.10->2.3.20Serialization:1.10.0->1.11.0Ktor:3.4.1->3.4.2MicroUtils:0.29.1->0.29.2KSLog:1.6.0->1.6.1v33.0.0THIS UPDATE CONTAINS ADDING SUPPORT OF Telegram Bots API 9.6
THIS UPDATE CONTAINS BREAKING CHANGES
Core:MultipleAnswersPollremoved;RegularPollnow directly implementsPollallowMultipleAnswersrenamed toallowsMultipleAnswersacross poll types and requestsQuizPoll.correctOptionId: Int?changed tocorrectOptionIds: List<Int>?PollOptionis now a sealed interface withPollOption.SimpleandPollOption.LatelyAddedsubtypes;SimplePollOptionremovedPollAnswer.Anonymous.voterChattype changed fromChannelChattoPreviewPublicChatrequestChannelReplyButton(group variant) renamed torequestGroupReplyButtonBotTokenvalue classSavePreparedKeyboardButtonrequest withPreparedKeyboardButtonandPreparedKeyboardButtonIdtypesGetManagedBotTokenandReplaceManagedBotTokenrequestsKeyboardButtonRequestManagedBotandRequestManagedBotKeyboardButtonManagedBotCreatedchat event andManagedBotUpdatedtype withManagedBotUpdatePollOptionPersistentIdvalue classPollOptionAddedandPollOptionDeletedchat eventspollOptionIdsupport inReplyParameters(reply_to_poll_option_id)canManageBotstoExtendedBotallowsRevoting,shuffleOptions,allowAddingOptions,hideResultsUntilCloses,description/descriptionTextSourcesto poll types and send requestschosenPersistentIdstoPollAnswerUsernameAtLessSerializeropenPeriodPollSecondsLimitfrom5..600to5..2628000regularPollTypein quiz branch)explanation/explanationTextSources)SendQuizPollcorrect option index range validation (off-by-one)API:savePreparedKeyboardButtonextensionsgetManagedBotTokenandreplaceManagedBotTokenextensionspollOptionIdparameter toreply/replyWith*extensionssendQuizPollextensions withcorrectOptionIds,allowsMultipleAnswers,allowsRevoting,shuffleOptions,hideResultsUntilCloses,descriptionparameterssendRegularPollextensions withallowsRevoting,shuffleOptions,allowAddingOptions,hideResultsUntilCloses,descriptionparametersBehaviourBuilder:onManagedBotCreatedandonManagedBotUpdatedtriggersonPollOptionAddedandonPollOptionDeletedtriggerswaitManagedBotCreatedEventsandwaitManagedBotUpdatedexpectationswaitPollOptionAddedEventsandwaitPollOptionDeletedEventsexpectationsManagedBotUpdatedFilterByUserandByUserManagedBotUpdatedMarkerFactoryUtils:managedBotCreationLinkformatting extensionsrequestManagedBotButtontoReplyKeyboardBuilderManagedBotUpdate,ManagedBotCreated,PollOptionAdded,PollOptionDeletedMultipleAnswersPollclass castsallowsMultipleAnswers,correctOptionIds,explanation)WebApps:requestChatsupport forPreparedKeyboardButtonIdiconCustomEmojiIdpassing inBottomButtonv32.0.0THIS UPDATE CONTAINS BREAKING CHANGES
Version:Kotlin:2.2.21->2.3.10Kotlin Serialization:1.9.0->1.10.0Ktor:3.3.2->3.4.1KSP:2.3.2->2.3.6MicroUtils:0.26.9->0.29.1KSLog:1.5.2->1.6.0Core+API:Core:SetChatTitleinit do not throw error in case whentitle.lengthis outside ofchatTitleLengthSetStickerEmojiListinit do not throw error in case whenemojis.sizeis outside ofemojisInStickerLimitDeleteMessagesinit do not throw error in case when title ismessageIds.sizeofdeleteMessagesLimitForwardMessagesinit do not throw error in case whenmessageIds.sizeis outside offorwardMessagesLimitCopyMessagesinit do not throw error in case whenmessageIds.sizeis outside ofcopyMessagesLimitSwitchInlineQueryChosenChatinit do not throw error in case whenmessageIds.sizeis outside ofcopyMessagesLimitSetStickerKeywordsinit do not throw error in case when there are errors inkeywordsv31.2.0Core:Core+API:supportsStreamingin places it haven't been supported (fix of #1026)supportStreaminghas been renamed tosupportsStreamingv31.1.0THIS UPDATE CONTAINS ADDING SUPPORT OF Telegram Bots API 9.5
Core:UserTagvalue class andsenderTagfield to messagesSetChatMemberTagrequest andUserTagsupport inPromoteChatMemberandChatPermissionsDateTimeTextSourcefortg://timelinks supportDateTimeFormatPartandTgDateTimeFormatBuilderfor building date-time format stringsUnitFromBooleanSerializerAPI:setChatMemberTagextensionsUtils:dateTimeanddateTimelnextensions toEntitiesBuilderdateTimeMarkdown,dateTimeMarkdownV2, anddateTimeHTMLstring formatting extensionsWebApps:iconCustomEmojiIdsupport toBottomButtonandBottomButtonParamsv30.0.2Version:Kotlin:2.2.20->2.2.21Ktor:3.3.1->3.3.2KSP:2.2.20-2.0.4->2.3.2MicroUtils:0.26.6->0.26.8KSLog:1.5.1->1.5.2Core:SetWebhookwithmaxAllowedConnectionsup to100000(fix of #1019)KSP:withNoSuchElementWorkaroundksp.useKSP2=falseworkaround fromgradle.properties(KSP2 is now properly supported)Utils:GetUpdatesinlongPollingFlowv30.0.1Core:TelegramBotPipelinesHandler.onRequestExceptionInLimiterwhich will be triggered in ANY exception duringrequest execution
v30.0.0THIS UPDATE MAY CONTAINS BREAKING CHANGES
Version:Kotlin:2.2.10->2.2.20Ktor:3.2.3->3.3.1MicroUtils:0.26.3->0.26.6KSLog:1.5.0->1.5.1BehaviourBuilder:DefaultCustomBehaviourContextAndTypeReceivernow extendssuspend (BC, U) -> Rinstead ofCustomBehaviourContextAndTypeReceiver<BC, R, U>(no changes in api in fact)v29.0.1Core:OrderInfofields now have defaults nullsv29.0.0THIS UPDATE CONTAINS ADDING SUPPORT OF Telegram Bots API 9.2
THIS UPDATE CONTAINS BREAKING CHANGES
Core:firstOfOrNull(vararg suspend () -> T): T?firstOf- now it works based on merged flows and do not requireCoroutineScopeas receiverv28.0.3Core:HttpClientconstructorsv28.0.2Core:[Bug] Invalid detection of isCausedByCancellation()Unable to handle UnauthorizedException with buildBehaviourWithLongPollingv28.0.1Version:Kotlin:2.2.0->2.2.10MicroUtils:0.26.2->0.26.3Ktor:3.2.2->3.2.3Core:OptionallyMessageThreadRequestinheritors to use@EncodeDefaultannotation to fix default value passingv28.0.0THIS UPDATE CONTAINS BREAKING CHANGES
Core:firstOfextensionBehaviourBuilder:useDefaultSubcontextInitialActionBehaviourContextDatainDefaultBehaviourContextconstructor andcopymethodv27.1.2Core:Something web wrongwill not happen from this library 😭v27.1.1Version:MicroUtils:0.26.1->0.26.2Core:BusinessLocation#locationoptional (fix of #990)v27.1.0Core:v27.0.0THIS 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.0Serialization:1.8.1->1.9.0Ktor:3.1.3->3.2.2MicroUtils:0.25.7->0.26.1KSLog:1.4.1->1.5.0Common:dataclasses with non-public constructors has been addedConsistentCopyVisibilityannotation, preventingpublic nature in difference with constructor
v26.1.0THIS UPDATE CONTAINS ADDING SUPPORT OF Telegram Bots API 9.1
THIS UPDATE MAY CONTAINS BREAKING CHANGES
v26.0.0THIS UPDATE CONTAINS BREAKING CHANGES IN BEHAVIOUR BUILDER AND CORE. BE CAREFUL ON UPDATE
Version:Serialization:1.8.0->1.8.1Coroutines:1.10.1->1.10.2Ktor:3.1.1->3.1.3MicroUtils:0.25.3->0.25.7Core:RequestsExecutorgot propertyRequestsExecutor.Log: KSLogBehaviourContext:create subcontext and work in it
BehaviourContext.launchInNewSubContextwhich will launch some job in subcontext of receiverv25.0.1THIS UPDATE CONTAINS ADDING SUPPORT OF Telegram Bots API 9.0
Core:Giftnow presented byGift.RegularMultipartRequestCallFactoryfor correct handling of allMultipartRequest.CommoninheritorsUsernamenow can be safely created withUsername.prepareString.splitFor(Text|Caption|StoryCaption)for preparing several texts for severalmessages/captions/story captions
v25.0.0: 25.0.0THIS UPDATE CONTAINS ADDING SUPPORT OF Telegram Bots API 9.0
Core:Giftnow presented byGift.RegularMultipartRequestCallFactoryfor correct handling of allMultipartRequest.CommoninheritorsUsernamenow can be safely created withUsername.prepareString.splitFor(Text|Caption|StoryCaption)for preparing several texts for severalmessages/captions/story captions
v24.0.2Version:Kotlin:2.1.10->2.1.20Ktor:3.1.0->3.1.1MicroUtils:0.24.7->0.25.3DefaultKTgBotAPIKSLogwill dropCancellationExceptions by defaultDefaultKTgBotAPIKSLogin simple way withSetDefaultKTgBotAPIKSLogBehaviourBuilder:FSM:v24.0.1Core:EditChatMessageMediav24.0.0THIS UPDATE CONTAINS BREAKING CHANGES IN
subcontextUpdatesFilterWORK. TAKE CARE IN MIGRATIONVersion:MicroUtils:0.24.6->0.24.7Core:ForumContentMessagegot propertythreadCreatingInfowhich represents information about topic where message has been sentBehaviourBuilder:subcontextUpdatesFilterbehaviour. In fact, this update will fix its affection on scenariesv23.2.0THIS UPDATE CONTAINS ADDING SUPPORT OF Telegram Bots API 8.3
Version:MicroUtils:0.24.5->0.24.6Ktor:3.0.3->3.1.0v23.1.2Version:Kotlin:2.1.0->2.1.10Serialization:1.7.3->1.8.0MicroUtils:0.24.4->0.24.5KSLog:1.4.0->1.4.1v23.1.1Version:MicroUtils:0.24.0->0.24.4Core:removeFirstwithremoveAt(0)increateTextSourcesv23.1.0THIS UPDATE CONTAINS ADDING SUPPORT OF Telegram Bots API 8.2
v23.0.0Version:Coroutines:1.9.0->1.10.1MicroUtils:0.23.2->0.24.0KSLog:1.3.6->1.4.0Ktor:3.0.2->3.0.3Core:TextSources took suffixTextSource. For example:regular->regularTextSource.That has been for excluding names resolution ambiguity with extensions for
EntitiesBuilderv22.0.0THIS 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.2Ktor:3.0.1->3.0.2v21.0.1Core:Update.sourceUserextensionPrivateChat.toUserTextSources (likeprewhich returnsPreTextSource) lost suppression ofredundant inlinedue to its redundancy
mentionbuilders forEntitiesBuilderwithUserIdas variant instead ofUserBehaviourBuilder:CombinedSubcontextInitialAction. Now it will try hard to execute all itsSubActionwhile all actions will not be completed successfully OR all left actions will not complete with errorsv21.0.0Version:Kotlin:2.0.21->2.1.0MicroUtils:0.23.0->0.23.1BehaviourBuilder:val data: BehaviourContextDatainto all realizations ofBehaviourContextCombinedSubcontextInitialActionand functionsbuildSubcontextInitialAction/buildSubcontextInitialActionWithSubActionssubcontextInitialActionfor all the functions-builders ofBehaviourContextandadditionalSubcontextInitialActionto all triggersv20.0.1Core:OrderInfobecame nullable (fix of #917)toStringtoChatType(fix of #919)CreateInvoiceLink(merging of #920, made by byteduck-exploit)v20.0.0THIS UPDATE CONTAINS SUPPORT OF BOTS API 7.11
All:allowPaidBroadcastWHICH POTENTIALLY MAY SPEND MONEYS FROM BOT BALANCEv19.0.0THIS UPDATE CONTAINS BREAKING CHANGES
THIS UPDATE CONTAINS UPGRADE UP TO KTOR 3.0 (thanks to @d1snin)
Version:Ktor:2.3.12->3.0.1MicroUtils:0.22.7->0.23.0v18.2.3Core:ExceptionsThrottlerTelegramBotMiddlewareTelegramBotMiddlewaresPipelinesHandlerto be defaultTelegramBotPipelinesHandlerDefaultKtorRequestsExecutornow usesrunCatchinginstead ofrunCatchingSafelyonRequestResultPresentedlambda now accepts non-nullableresultv18.2.2Version:Kotlin:2.0.20->2.0.21MicroUtils:0.22.4->0.22.7Core:RawMessageEntityis public. It is still underWarningannotation and is subject of changesBehaviourBuilder:CommonMessageFilterExcludeCommandto filter commands in messagesminusoperation forSimpleFiltersv18.2.1Version:Serialization:1.7.2->1.7.3Coroutines:1.8.1->1.9.0MicroUtils:0.22.2->0.22.4v18.2.0THIS UPDATE CONTAINS SUPPORT OF BOTS API 7.10
Core:GiveawayCreatedto use stars in some casesGiveawayInfolost parameterpremiumMonthsbecause of it is no included by defaultGiveawayPublicResultslost parameterpublicWinnersbecause of its abcence in Telegram Bot APIGiveawayPublicResultsto be correctly deserializableGiveawayPrivateResultsto be correctly deserializableBehaviourBuilder:buildBehaviourWithLongPollingwill not report absence of/privacyhandlingWebApp:MainButtonhas been deprecated in favor toBottomButton. Their functionality is equalv18.1.0BehaviourBuilder:createSubContextAndDoSynchronouslyWithUpdatesFilteras old logic ofcreateSubContextAndDoWithUpdatesFiltercreateSubContextAndDoWithUpdatesFilterhas been renamed tocreateSubContextAndDoAsynchronouslyWithUpdatesFilterv18.0.0THIS 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->RestrictedMemberChatMemberBannedChatMember->RestrictedChatMemberChanges:
Version:Kotlin:2.0.10->2.0.20Serialization:1.7.1->1.7.2MicroUtils:0.22.0->0.22.2KSLog:1.3.5->1.3.6Ktor:2.3.11->2.3.12Core:RestrictedChatMemberhas been renamed toRestrictedMemberChatMemberBannedChatMemberhas been renamed toRestrictedChatMemberKickedChatMembernow implementsRestrictedChatMember(due to rename)ChatMembers now usePreviewUsers instead ofUsersUtils:ChatMember.isMemberChatMemberUpdated.joinedChatv17.0.0THIS UPDATE CONTAINS SUPPORT OF BOTS API 7.9
senderChatinstead offromfield due toUsertype of the last one. You also may use extensionsMessage.sender_chatorAny.withSenderChatMessageOrNullto access sender chat
Reaction.PaidAdditional changes:
Core:OptionallyWithUserandOptionallyFromUser. OldWithUserandFromUserinterfacesextending them with following overrides of
userandfromfieldsAPI:(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
v16.0.0THIS UPDATE CONTAINS KOTLIN UPDATE UP TO 2.0
Version:Kotlin:1.9.23->2.0.10Serialization:1.6.3->1.7.1MicroUtils:0.21.2->0.22.0KSLog:1.3.4->1.3.5v15.3.0THIS UPDATE CONTAINS ADDING OF SUPPORT FOR BOTS API 7.8
Core:OptionallyBusinessConnectionRequestnow extendsWithOptionalBusinessConnectionIdhasMainWebAppinExtendedBotAPI:BusinessConnectionIdto pin/unpin methodsWebApp:shareToStoryinWebAppv15.2.0API:explicit modeforAPImodule (PR #876)WebApps:onClickandoffClickofMainButtonbecome public (PR #875)MainButton.onClickextension has been removed to avoid collisions of typesv15.1.0THIS 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)
Version:MicroUtils:0.21.1->0.21.2Core:TelegramMediahas been separated onto two interfaces:TelegramFreeMediaandTelegramPaidMediaTelegramFreeMediahas replacedTelegramMediaon all old places where it have been usedPhotohas been renamed toPhotoFileBehaviourBuilder:/privacycommand is absence/privacyreactionv15.0.0THIS UPDATE CONTAINS BREAKING CHANGES
THIS UPDATE CONTAINS ADDING OF SUPPORT FOR BOTS API 7.5
Version:MicroUtils:0.21.0->0.21.1editmethods and classes has been changed to support business connection idv14.1.0Version:Coroutines:1.8.0->1.8.1Ktor:2.3.10->2.3.11MicroUtils:0.20.45->0.21.0KSLog:1.3.3->1.3.4BehaviourBuilder:BehaviourContextupdates listening job will be weakly subscribed. It means thatBehaviourContextscope willnot be prevented from cancelling by this job anymore
BehaviourContext.doInContextwill not stop automatically currentBehaviourContextjob anymoreBehaviourContext.createSubContextAndDoWithUpdatesFilterwill usesupervisorScopeinstead ofLinkedSupervisorScope. That will prevent scope leaking in runtimev14.0.1coreandapimodules related to invoices changed their APIs to suite current APIv14.0.0Add support of Telegram Bots API 7.4
THIS UPDATE CONTAINS BREAKING CHANGES
Core:TelegramPaymentChargeIdhas been added as value class and replaced raw strings inSuccessfulPaymenttype oftelegramPaymentChargeIdeffectIdparametershowCaptionAboveMediaparameterv13.0.0Add support of Telegram Bots API 7.3
THIS UPDATE CONTAINS BREAKING CHANGES
Core:textSourcesnow meansquestiontext sources. ForQuizPollthere areexplanationandexplanationTextSourcesfor hinting
API:Polls has been changed to include opportunity to passParseModeandTextSources listv12.0.1Version:Ktor:2.3.9->2.3.10MicroUtils:0.20.39->0.20.45UUID:0.8.2->0.8.4v12.0.0Add support of Telegram Bots API 7.2
THIS UPDATE CONTAINS A LOT OF BREAKING CHANGES
v11.0.0THIS UPDATE CONTAINS REMOVES OF DEPRECATED THINGS
THIS UPDATE CONTAINS A LOT OF BREAKING CHANGES
Core:MessageIdnow isvalue class.MessageIdentifierbecome deprecatedMessageThreadIdnow isvalue classInlineQueryIdentifiernow isvalue classMediaGroupIdentifierhas been renamed toMediaGroupIdand now isvalue classCallbackQueryIdentifierhas been renamed toCallbackQueryIdand now isvalue classWebAppQueryIdnow isvalue classPreCheckoutQueryIdnow isvalue classFileUniqueIdhas been renamed toTgFileUniqueIdand now isvalue classUpdateIdentifierhas been renamed toUpdateIdand now isvalue classInlineMessageIdentifierhas been renamed toInlineMessageIdand now isvalue classShippingQueryIdentifierhas been renamed toShippingQueryIdand now isvalue classIdentifierhas been renamed toRawChatIdand now isvalue classShippingOptionIdentifierhas been renamed toShippingOptionIdand now isvalue classPollIdentifierhas been renamed toPollIdand now isvalue classStickerSetNamenow isvalue classv10.1.1Version:Serialization:1.6.2->1.6.3MicroUtils:0.20.34->0.20.37Korlibs:5.3.1->5.3.2v10.1.0Add support of Telegram Bots API 7.1
Version:Coroutines:1.7.3->1.8.0MicroUtils:0.20.32->0.20.34v10.0.1Version:Ktor:2.3.7->2.3.8MicroUtils:0.20.26->0.20.32Korlibs:5.3.0->5.3.1KSLog:1.3.1->1.3.2v10.0.0Add support of Telegram Bots API 7.0
IN THIS UPDATE KLOCK DEPENDENCY CHANGED TO
com.soywiz.korge:korlibs-timeUP TO 5.3.0 VERSIONIN THIS UPDATE KRYPTO DEPENDENCY CHANGED TO
com.soywiz.korge:korlibs-cryptoUP TO 5.3.0 VERSIONVersion:MicroUtils:0.20.23->0.20.26Korlibs:4.0.10->5.3.0Core:Messagenow inherited by two variants:AccessibleMessageandInaccessibleMessageCommon:disableWebPagePreviewhas been replaced by newLinkPreviewOptionsreplyToMessageIdandallowSendingWithoutReplyhas been replaced withReplyParametersreplyextension two parameters have been added:replyInChatIdandreplyInThreadIdv9.4.3IetfLanguageCode has been renamed to IetfLang in MicroUtils
Version:Kotlin:1.9.21->1.9.22MicroUtils:0.20.19->0.20.23v9.4.2Version:Serialization:1.6.1->1.6.2Ktor:2.3.6->2.3.7MicroUtils:0.20.15->0.20.19UUID:0.8.1->0.8.2v9.4.1LongPollingtoDefaultKtorRequestsExecutorv9.4.0Version:Kotlin:1.9.20->1.9.21Serialization:1.6.0->1.6.1Ktor:2.3.5->2.3.6MicroUtils:0.20.12->0.20.15v9.3.0This 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.20Serialization:1.5.1->1.6.0KorLibs:4.0.3->4.0.10UUID:0.7.1->0.8.1Ktor:2.3.4->2.3.5MicroUtils:0.19.9->0.20.12v9.2.4Utils:*.parseCommandsWithNamedArgsBehaviourBuilder:commandsadd*WithNamedArgsvariantscommandsadd opportunity to use custom separatorv9.2.3Core:VoiceContent#createResendv9.2.2Core:PreviewChatv9.2.1Version:Ktor:2.3.3->2.3.4Core:ChatMemberinheritors have fixesstatusfieldv9.2.0Add support of Telegram Bots API 6.9
ChatAdministratorRightsImpl->ChatCommonAdministratorRightsChatAdministratorRightstoChatCommonAdministratorRightsv9.1.2Core:MessageContentserializationv9.1.1Core:RawMessageEntityv9.1.0This update contains adding of Telegram Bot API 6.8 support
Version:Coroutines:1.7.2->1.7.3Ktor:2.3.2->2.3.3MicroUtils:0.19.7->0.19.9v9.0.0THIS UPDATE CONTAINS ADDING SUPPORT OF Telegram Bots API 9.2
THIS UPDATE CONTAINS BREAKING CHANGES
Core:firstOfOrNull(vararg suspend () -> T): T?firstOf- now it works based on merged flows and do not requireCoroutineScopeas receiverv8.1.0BehaviourBuilder:createSubContextAndDoSynchronouslyWithUpdatesFilteras old logic ofcreateSubContextAndDoWithUpdatesFiltercreateSubContextAndDoWithUpdatesFilterhas been renamed tocreateSubContextAndDoAsynchronouslyWithUpdatesFilterv8.0.1Version:Kotlin:2.2.0->2.2.10MicroUtils:0.26.2->0.26.3Ktor:3.2.2->3.2.3Core:OptionallyMessageThreadRequestinheritors to use@EncodeDefaultannotation to fix default value passingv8.0.0THIS UPDATE CONTAINS BREAKING CHANGES
Core:firstOfextensionBehaviourBuilder:useDefaultSubcontextInitialActionBehaviourContextDatainDefaultBehaviourContextconstructor andcopymethodv7.1.3Versions:Serialization:1.5.0->1.5.1MicroUtils:0.18.1->0.18.4Core:InputFileBehaviourBuilder:waitMediaContent/waitMediaContentMessage/onMediaContentonMention/waitMentionfunctionalityFlowv7.1.2Core:Something web wrongwill not happen from this library 😭v7.1.1Version:MicroUtils:0.26.1->0.26.2Core:BusinessLocation#locationoptional (fix of #990)v7.1.0Core:v7.0.2This update brings experimental support of
linuxX64andmingwX64platformsVersions:Kotlin:1.8.10->1.8.20MicroUtils:0.17.5->0.17.8Ktor:2.2.4->2.3.0Core:RequestsExecutor-MultipleClientKtorRequestsExecutorKtorRequestsExecutorhas been renamed toDefaultKtorRequestsExecutorKtorRequestsExecutornow isexpect classJS,JVMandMinGWX64platforms it isDefaultKtorRequestsExecutorLinuxX64platform it isMultipleClientKtorRequestsExecutorv7.0.1Core:WithChatwhich containschatfieldMessagenow inheritsWithChatChatMemberUpdatednow inheritsWithChatUtils:same-notationsv7.0.0THIS 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.0Serialization:1.8.1->1.9.0Ktor:3.1.3->3.2.2MicroUtils:0.25.7->0.26.1KSLog:1.4.1->1.5.0Common:dataclasses with non-public constructors has been addedConsistentCopyVisibilityannotation, preventingpublic nature in difference with constructor
v6.1.0THIS UPDATE CONTAINS ADDING SUPPORT OF Telegram Bots API 9.1
THIS UPDATE MAY CONTAINS BREAKING CHANGES
v6.0.3Versions:MicroUtils:0.17.1->0.17.2Core:UserinCallbackQuerynow isCommonUseras well as infromUserinInlineQuerynow isCommonUseras well as infromBehaviourBuilder:DeepLinktriggers and waitersv6.0.2Core:v6.0.1Versions:Ktor:2.2.3->2.2.4MicroUtils:0.17.0->0.17.1v6.0.0THIS UPDATE CONTAINS BREAKING CHANGES IN BEHAVIOUR BUILDER AND CORE. BE CAREFUL ON UPDATE
Version:Serialization:1.8.0->1.8.1Coroutines:1.10.1->1.10.2Ktor:3.1.1->3.1.3MicroUtils:0.25.3->0.25.7Core:RequestsExecutorgot propertyRequestsExecutor.Log: KSLogBehaviourContext:create subcontext and work in it
BehaviourContext.launchInNewSubContextwhich will launch some job in subcontext of receiverv5.2.1Core:CallbackQueryes now will receiveCommonUserinstead ofUserdue inability of bots to trigger anyinline interaction with others bots
API:sentMessageFlowwill take each sent message inhandleLiveLocationv5.2.0API:explicit modeforAPImodule (PR #876)WebApps:onClickandoffClickofMainButtonbecome public (PR #875)MainButton.onClickextension has been removed to avoid collisions of typesv5.1.1Core:makeUserLinkBehaviourBuilder:v5.1.0THIS 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
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.