37.0.0 - #371
Open
InsanusMokrassar wants to merge 1 commit into
Open
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 UPDATE CONTAINS SUPPORT OF TELEGRAM BOTS API 10.3
Bot API 10.3
Rich Messages
is_compactto the classes RichBlockTable and InputRichBlockTable.tg://document?id=for general file uploads in rich messages.Ephemeral messages
receiver_user_idandcallback_query_idin the methods sendMessage, sendAnimation, sendAudio, sendDocument, sendLivePhoto, sendPhoto, sendSticker, sendVideo, sendVideoNote, sendVoice, sendContact, sendLocation and sendVenue with the parameterephemeral_message_parameters.ephemeral_message_parametersto the method sendRichMessage.replace_callback_query_messageto the class EphemeralMessageParameters, allowing bots to show an ephemeral message in place of the original message.show_caption_above_mediato the method editEphemeralMessageCaption.rich_messageto the method editEphemeralMessageText.can_send_welcome_messagesto the classes ChatAdministratorRights and ChatMemberAdministrator.can_send_welcome_messagesto the method promoteChatMember.Reply markup
disabledto the class InlineKeyboardButton.force_replyto the classes InlineKeyboardMarkup and ReplyKeyboardMarkup.General
can_stopandkeep_on_stopto the methods sendMessageDraft and sendRichMessageDraft.stopped_message_generationin the class Update.community_chat_joinedto the class Message for service messages about join of a chat from a community.text,entitiesandis_privateto the class UniqueGiftInfo.Notes
Breaking changes (documented in CHANGELOG.md):
OptionallyEphemeralSendRequestand the 13 ephemeral-capable send/reply families replacereceiverUserId/callbackQueryIdwithephemeralMessageParameters.ChatAdministratorRightsgainscanSendWelcomeMessages; direct same-module implementations must supply the property.FlowsUpdatesFiltergainsmessageGenerationStoppedUpdatesFlow; direct implementations must supply the flow.RichTextgainsisValidRichMessageButtonText; exhaustivewhenexpressions over the extended rich-type sealed hierarchies must cover the Bot API 10.3 variants.Coverage audit corrections:
<blockquote collapsed>with Markdown-formatted children to<blockquote expandable>with HTML-formatted nested text and credit.photomultipart attachments to ephemeral and regular media edits, media groups, and paid media.InputRichMessage/RichMessageContentaliases across both ephemeral reply families.componentNprefix forUniqueGiftInfo; the new fields are trailing.Deferred (follow-up):
RichBlockFooter.markdown,RichBlockPullQuotation.markdown,RichBlockMap.markdownandRichBlockThinking.markdown: each formatter places Markdown-formatted nested content inside block-level HTML. The defects predate Bot API 10.3 and remain outside the current PR correction scope.🤖 Generated with OpenAI Codex