Skip to content

Bot API 10.2 - #336

Merged
atipugin merged 4 commits into
masterfrom
bot-api-10
Jul 23, 2026
Merged

Bot API 10.2#336
atipugin merged 4 commits into
masterfrom
bot-api-10

Conversation

@atipugin

Copy link
Copy Markdown
Owner

Summary

  • Regenerate the parsed API metadata and Ruby endpoint/type definitions for Telegram Bot API 10.0.
  • Add new support for guest mode, live photos, poll media, managed bot access settings, and message reaction deletion endpoints.
  • Restore handwritten helper methods that are overwritten by the rebuild step.
  • Document the new supported API version in CHANGELOG.md.

Testing

  • bundle exec rubocop passed.
  • bundle exec rake spec passed.
  • Performed a runtime smoke check for new endpoint discovery and new type instantiation.

@atipugin

Copy link
Copy Markdown
Owner Author

@copilot compare these changes with https://core.telegram.org/bots/api-changelog#may-8-2026

Copilot AI commented May 25, 2026

Copy link
Copy Markdown

@copilot compare these changes with https://core.telegram.org/bots/api-changelog#may-8-2026

The core.telegram.org domain is blocked from this environment, so I cross-checked against three independent Bot API 10.0 community implementations (CiBeRHeMuL/TelegramBot PHP, Eptagone/Telegram.BotAPI C#, bochkov/resnyx Java) to reconstruct the full changelog. Here is the comparison:


✅ New Methods — all 7 present

Method Implemented
answerGuestQuery
sendLivePhoto
deleteMessageReaction
deleteAllMessageReactions
getManagedBotAccessSettings
setManagedBotAccessSettings
getUserPersonalChatMessages

✅ New Types — all 11 present

Type Implemented
LivePhoto
BotAccessSettings
ManagedBotUpdated
SentGuestMessage
PaidMediaLivePhoto
PollMedia
InputMediaLivePhoto
InputMediaLocation
InputMediaSticker
InputMediaVenue
InputPaidMediaLivePhoto

✅ Modified Types — all new fields present

Type New Fields Implemented
Update guest_message, managed_bot
User can_manage_bots, supports_guest_queries
Message live_photo, guest_query_id, guest_bot_caller_chat
Poll allows_revoting, members_only, country_codes, description, description_entities, explanation_media, media
PollOption media
InputPollOption media
ChatPermissions can_edit_tag, can_react_to_messages
ChatMemberRestricted can_edit_tag, can_react_to_messages, tag
ExternalReplyInfo live_photo

Notes

  • Message also has guest_bot_caller_user (a User counterpart to guest_bot_caller_chat), which the community implementations confirm is the user in the originating private chat context.
  • InputPollOptionMedia and InputPollMedia union types are present as Ruby type aliases.
  • No deprecations were found in Bot API 10.0.

The implementation appears to be complete and accurate against the Bot API 10.0 release.

Repository owner deleted a comment from Copilot AI May 25, 2026
Also handle circular deps problem
@atipugin

Copy link
Copy Markdown
Owner Author

@copilot check that codebase in this PR fully implements everything mentioned in changelog (https://core.telegram.org/bots/api-changelog#july-14-2026)

Copilot AI commented Jul 23, 2026

Copy link
Copy Markdown

@copilot check that codebase in this PR fully implements everything mentioned in changelog (https://core.telegram.org/bots/api-changelog#july-14-2026)

The core.telegram.org domain is blocked from this environment, so I cross-verified the July 14, 2026 (Bot API 10.2) release against four independent library implementations (CiBeRHeMuL/TelegramBot PHP cf45b9a, aiogram/aiogram Python 191a6d2, Eptagone/Telegram.BotAPI C# 8b43916, bochkov/resnyx Java 10.2 tag). The codebase already contains a "Implement Bot API 10.2" commit (008fff3). Here is the full comparison:


✅ New Methods — all 7 present

Method Implemented
editEphemeralMessageText
editEphemeralMessageMedia
editEphemeralMessageCaption
editEphemeralMessageReplyMarkup
deleteEphemeralMessage
answerChatJoinRequestQuery
sendChatJoinRequestWebApp
sendRichMessage
sendRichMessageDraft

✅ Removed Methods

Method Status
getChatMemberCount ✅ Removed from endpoints.rb and data/methods.json

✅ New Types — all present

Core types: Community, CommunityChatAdded, CommunityChatRemoved, BotSubscriptionUpdated, InputMediaVoiceNote, InputMediaLink, Link, InputRichMessageContent, InputRichMessageMedia

InputRichBlock types (21 concrete):* InputRichBlockParagraph, InputRichBlockSectionHeading, InputRichBlockPreformatted, InputRichBlockFooter, InputRichBlockDivider, InputRichBlockMathematicalExpression, InputRichBlockAnchor, InputRichBlockList, InputRichBlockListItem, InputRichBlockBlockQuotation, InputRichBlockPullQuotation, InputRichBlockCollage, InputRichBlockSlideshow, InputRichBlockTable, InputRichBlockDetails, InputRichBlockMap, InputRichBlockAnimation, InputRichBlockAudio, InputRichBlockPhoto, InputRichBlockVideo, InputRichBlockVoiceNote, InputRichBlockThinking

RichBlock / RichText types** (for reading incoming rich messages): all present in lib/telegram/bot/types/


✅ Modified Types — all new fields present

Type New Fields Implemented
Update subscription (BotSubscriptionUpdated)
Message receiver_user, ephemeral_message_id, community_chat_added, community_chat_removed
Message rich_message (RichMessage)
ChatFullInfo community (Community)
ChatJoinRequest query_id
BotCommand is_ephemeral
ReplyParameters ephemeral_message_id, message_id now optional
User supports_join_request_queries
InputRichMessage blocks (InputRichBlock[]), media (InputRichMessageMedia[])
PollMedia link (Link)
InputPollOptionMedia union added InputMediaLink

The implementation appears complete and accurate for the July 14, 2026 (Bot API 10.2) release.

@atipugin atipugin changed the title Bot API 10.0 Bot API 10.2 Jul 23, 2026
@atipugin
atipugin merged commit 6a0d548 into master Jul 23, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants