Bot API 10.2 - #275
Open
mario-amazing wants to merge 1 commit into
Open
Bot API 10.2#275mario-amazing wants to merge 1 commit into
mario-amazing wants to merge 1 commit into
Conversation
- Regenerate api_methods.txt and payload_types.txt via bin/fetch-telegram-methods (adds Rich Messages, Ephemeral Messages, Guest/Community/subscription updates, live photos, reaction-deletion methods, and more) - Extract File uploads nested inside rich message blocks for sendRichMessage by making the file extractor recurse through nested hashes and arrays Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.
Updates the client to Bot API 10.2 (July 14, 2026).
What's included
Regenerated method and payload-type lists via
bin/fetch-telegram-methods.New helper methods now include
sendRichMessage/sendRichMessageDraft,the ephemeral-message editing/deletion methods
(
editEphemeralMessageText/Media/Caption/ReplyMarkup,deleteEphemeralMessage),sendLivePhoto,answerGuestQuery,deleteMessageReaction,deleteAllMessageReactions, managed-bot access settings, and more.payload_types.txtgainsguest_message(10.0) andsubscription(10.2).Nested file uploads for
sendRichMessage. Rich messages carry media(photos/videos/etc.) deep inside
rich_message.blocks[]andrich_message.media[], so the existing one-level file extractor could not reachthem.
extract_files_from_hashnow recurses through nested hashes and arrays,and
sendRichMessageis wired throughextract_files_from_field!(:rich_message).The behaviour of
sendMediaGroup/editMessageMedia/postStoryisunchanged (their structures are one level deep).
guest_messageandsubscriptionare added to thetyped_update_specexclusion list, mirroring how
managed_botwas handled in the 9.6 bump, sincetelegram-bot-typesdoes not define those classes yet.Tests
RequestBodyFormatterspecs cover deep extraction from rich message blocks(with and without files).
352 examples, 0 failures; RuboCop clean.🤖 Generated with Claude Code