Skip to content

BOT API v10.2 + v10.3 - #440

Open
mircoianese wants to merge 38 commits into
pengrad:masterfrom
mircoianese:api_10.2_10.3
Open

BOT API v10.2 + v10.3#440
mircoianese wants to merge 38 commits into
pengrad:masterfrom
mircoianese:api_10.2_10.3

Conversation

@mircoianese

Copy link
Copy Markdown
Collaborator

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

…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.
…, editEphemeralMessageCaption, and editEphemeralMessageReplyMarkup allowing bots to edit ephemeral messages
…ed by the class BotSubscriptionUpdated and the field subscription in the class Update
…kExpandableBlockQuotation representing a block quotation, which can be expanded or collapsed back
@mircoianese
mircoianese requested a balanced review from Copilot August 25, 2026 19:38

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@mircoianese
mircoianese requested review from pengrad and a balanced review from Copilot August 26, 2026 06:14

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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)
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