36.0.0 - #368
Open
InsanusMokrassar wants to merge 5 commits into
Open
Conversation
Extend RichMessagesBot with the 36.0.0 rich-message input additions:
- rich_blocks: build a rich message from the typed InputRichBlocks DSL
(InputRichMessageBlocks { }) instead of an HTML/Markdown string
- rich_blocks_draft: stream a draft-only thinking() blocks sequence via
sendRichMessageDraft, then finalize with sendRichMessage
- onPhoto: embed a received photo into a rich message both via
InputRichMessageMedia (tg://photo?id=) referenced from HTML and as a
first-class photo() media block inside the blocks tree
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
New EphemeralMessagesBot demonstrating the 36.0.0 ephemeral-message API: - sendTextMessage with receiverUserId + callbackQueryId to send a message visible only to one user in a group, in response to a callback query - PossiblyEphemeralMessage detection of ephemeral messages - editEphemeralMessageText / deleteEphemeralMessage addressed by chatId + receiverUserId + ephemeralMessageId - reply() smart-branch replying ephemerally to an ephemeral message, and the explicit replyToEphemeral form - BotCommand.isEphemeral flag Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
New CommunitiesBot demonstrating the 36.0.0 communities API: - onCommunityChatAdded / onCommunityChatRemoved triggers for the community_chat_added / community_chat_removed service events - reading the Community (id/name) from CommunityChatAdded - ExtendedChat.community (ChatFullInfo.community) via getChat - waitCommunityChatAdded expectation Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
New BotSubscriptionsBot demonstrating the 36.0.0 subscription-updates API: - onBotSubscriptionUpdated trigger reading user / invoicePayload / state - exhaustive handling of the typed BotSubscriptionUpdated.State sealed type (Active / Canceled / Failed data objects + Unknown value-class fallback) - botSubscriptionUpdatedUpdatesFlow raw update flow - waitBotSubscriptionUpdated expectation 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.
No description provided.