Update telegram_bot_api_version to v34 - autoclosed#363
Closed
renovate[bot] wants to merge 1 commit into
Closed
Conversation
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:
33.0.0→34.0.033.0.0→34.0.033.0.0→34.0.0Release Notes
insanusmokrassar/TelegramBotAPI (dev.inmo:tgbotapi.webapps)
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.1Configuration
📅 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 these updates again.
This PR was generated by Mend Renovate. View the repository job log.