Skip to content

Update dependency dev.inmo:tgbotapi to v35#181

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/major-tgbotapi
Open

Update dependency dev.inmo:tgbotapi to v35#181
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/major-tgbotapi

Conversation

@renovate

@renovate renovate Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
dev.inmo:tgbotapi (source) 34.0.035.1.0 age confidence

Release Notes

insanusmokrassar/TelegramBotAPI (dev.inmo:tgbotapi)

v35.1.0

  • Dependencies:
    • Kotlin: 2.3.20 -> 2.3.21
    • Coroutines: 1.10.2 -> 1.11.0
    • Ktor: 3.4.2 -> 3.5.1
    • KSP: 2.3.6 -> 2.3.9
    • MicroUtils: 0.29.2 -> 0.30.0
    • Dokka: 2.0.0 -> 2.2.0
    • Versions: 0.53.0 -> 0.54.0
    • NMCP: 1.4.4 -> 1.6.0
  • Build:
    • Updated Gradle wrapper 8.13 -> 9.6.1 and migrated build scripts to be Gradle 9 compatible (Project.exec -> providers.exec, tasks.whenTaskAdded -> tasks.configureEach)
    • Migrated Dokka documentation to the Dokka Gradle Plugin v2: the docs module is now included in the build as the KDocs aggregator (./gradlew :docs:dokkaGenerate) and the Publish KDocs workflow was updated accordingly

v35.0.0

THIS UPDATE CONTAINS SUPPORT OF TELEGRAM BOTS API 10.1

Breaking changes:

  • EditTextChatMessage.text changed from String to String? (rich edits carry no text) — implementations overriding it must widen the type and readers must handle null
  • EditChatMessageText.text changed from String to String?; its textSources is now null when there is no text — code reading text as non-null must handle null
  • ExtendedBot gained the supportsJoinRequestQueries field inserted between supportsGuestQueries and canConnectToBusiness — positional constructor calls and componentN destructuring shift and must be updated

Migration advice: Handle nullable text on EditTextChatMessage/EditChatMessageText; construct ExtendedBot with named arguments

  • Core:
    • (Rich Messages) Added RichText (RichTextPlain, RichTextGroup, RichTextEntity) hierarchy with all 25 RichText* entity types and a recursive serializer supporting plain strings, arrays and typed objects; every RichText exposes rawText, markdown and html renderings
    • (Rich Messages) Added RichBlock hierarchy with all 21 RichBlock* types plus RichBlockCaption, RichBlockTableCell and RichBlockListItem; every RichBlock exposes markdown/html source, the RichBlockMedia marker interface and subBlocks/search navigation helpers
    • (Rich Messages) Added RichTextInfo type (with markdown/html source built from its blocks) and RichMessageContent message content; RichMessageContent.createResend re-sends the content (forwarded when it contains media blocks, otherwise re-built through SendRichMessage); parsed rich_message in RawMessage; added RichMessageContentMessage typealias
    • (Rich Messages) Added InputRichMessage (internal constructor with InputRichMessageHTML/InputRichMessageMarkdown factories) and InputRichMessageContent usable as InputMessageContent
    • (Rich Messages) Added Rich Messages DSL builders buildRichText/RichTextBuilder, buildRichBlocks/RichBlocksBuilder, buildRichTextInfo and RichBlockListBuilder (marked with the @RichTextDsl DSL marker)
    • (Rich Messages) Added Rich Markdown/HTML source helpers String.escapeRichMarkdown() and List<RichBlock>.toRichMarkdown()/toRichHtml()
    • (Rich Messages) Added SendRichMessage and SendRichMessageDraft requests
    • (Rich Messages) Added richMessage parameter to EditChatMessageText; its text is now nullable (per API) and the EditChatMessageRichText factory builds a rich edit; widened EditTextChatMessage.text to nullable
    • (Polls) Added Link type (dev.inmo.tgbotapi.types.Link) implementing PollMedia, carrying the url of a link attached to a poll option
    • (Polls) Added link field parsing to PollMedia deserialization/serialization
    • (Polls) Added TelegramMediaLink (InputMediaLink) implementing InputPollOptionMedia, usable as a poll option media
    • (Join Request Queries) Added ChatJoinRequestQueryId value class and queryId field to ChatJoinRequest
    • (Join Request Queries) Added supportsJoinRequestQueries flag to ExtendedBot (User.supports_join_request_queries)
    • (Join Request Queries) Added guardBot field to ExtendedChat (ChatFullInfo.guard_bot), parsed for public chats
    • (Join Request Queries) Added AnswerChatJoinRequestQuery request and ChatJoinRequestQueryResult sealed interface (Approve/Decline/Queue/Unknown) serialized as a plain string
    • (Join Request Queries) Added SendChatJoinRequestWebApp request
  • API:
    • (Rich Messages) Added sendRichMessage and sendRichMessageDraft TelegramBot extensions
    • (Join Request Queries) Added answerChatJoinRequestQuery and sendChatJoinRequestWebApp TelegramBot extensions
  • BehaviourBuilder:
    • (Rich Messages) Added onRichMessage trigger and waitRichMessage/waitRichMessageMessage expectations
  • Utils:
    • (Rich Messages) Added Flow<ContentMessage<*>>.onlyRichMessageContentMessages()
    • (Join Request Queries) Added ChatJoinRequest.query_id raw accessor

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

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.

0 participants