BOT API v10.2 + v10.3 - #440
Open
mircoianese wants to merge 38 commits into
Open
Conversation
…s InputRichMessage, allowing bots to explicitly specify media used in markdown or html formatting when sending a rich message.
…putRichBlockSectionHeading, InputRichBlockPreformatted, InputRichBlockFooter, InputRichBlockDivider, InputRichBlockMathematicalExpression, InputRichBlockAnchor, InputRichBlockList, InputRichBlockBlockQuotation, InputRichBlockPullQuotation, InputRichBlockCollage, InputRichBlockSlideshow, InputRichBlockTable, InputRichBlockDetails, InputRichBlockMap, InputRichBlockAnimation, InputRichBlockAudio, InputRichBlockPhoto, InputRichBlockVideo, InputRichBlockVoiceNote and InputRichBlockThinking, which represent different types of blocks available to format an outgoing rich message.
…o specify rich message formatting via block entities.
…lowing bots to reply to ephemeral messages
…, editEphemeralMessageCaption, and editEphemeralMessageReplyMarkup allowing bots to edit ephemeral messages
… to the class Message
…oved to the class Message
…ed by the class BotSubscriptionUpdated and the field subscription in the class Update
…lineKeyboardButton
…kExpandableBlockQuotation representing a block quotation, which can be expanded or collapsed back
…nd ChatAdministratorRights
…eplyKeyboardMarkup
…sageDraft and sendRichMessageDraft
…the class MessageGenerationStopped and the field stopped_message_generation in the class Update
…ed to the class Message for service messages about join of a chat from a community
There was a problem hiding this comment.
🟡 Changes recommended
Public constructor compatibility regressions and untested rich-text wire serialization should be addressed before release.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Review details
- Files reviewed: 117/117 changed files
- Comments generated: 4
- Review effort level: Balanced
Comment on lines
+16
to
+18
| @get:JvmName("text") val text: String? = null, | ||
| @get:JvmName("entities") val entities: Array<MessageEntity>? = null, | ||
| @get:JvmName("isPrivate") val isPrivate: Boolean? = null, |
Comment on lines
+20
to
+21
| private Location() { | ||
| } |
Comment on lines
+9
to
10
| @get:JvmName("isCompact") val isCompact: Boolean? = null, | ||
| @get:JvmName("caption") val caption: RichText? = null |
Comment on lines
+66
to
+72
| override fun serialize(src: RichText, type: Type, context: JsonSerializationContext): JsonElement { | ||
| return when (src) { | ||
| is RichTextPlain -> JsonPrimitive(src.text) | ||
| is RichTextArray -> JsonArray().apply { | ||
| src.elements.forEach { add(context.serialize(it, RichText::class.java)) } | ||
| } | ||
| else -> context.serialize(src, src.javaClass) |
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.
Hello.
This PR implements BOT API v10.2 and v10.3.
There are many new classes and methods, let me know if any changes are needed.
Thanks