Skip to content

Update telegram_bot_api_version to v37 - autoclosed - #372

Closed
renovate[bot] wants to merge 1 commit into
masterfrom
renovate/major-telegram_bot_api_version
Closed

renovate[bot] wants to merge 1 commit into
masterfrom
renovate/major-telegram_bot_api_version

Conversation

@renovate

@renovate renovate Bot commented Sep 7, 2026 •

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
dev.inmo:tgbotapi.webapps (source) 36.0.0 → 37.0.0 age confidence
dev.inmo:tgbotapi.core (source) 36.0.0 → 37.0.0 age confidence
dev.inmo:tgbotapi (source) 36.0.0 → 37.0.0 age confidence

Release Notes

insanusmokrassar/TelegramBotAPI (dev.inmo:tgbotapi.webapps)

v37.0.0

THIS UPDATE CONTAINS SUPPORT OF TELEGRAM BOTS API 10.3

Breaking changes:

  • OptionallyEphemeralSendRequest replaced the receiverUserId/callbackQueryId properties with ephemeralMessageParameters: EphemeralMessageParameters?; the 13 ephemeral-capable send-request constructors and the corresponding reply API overloads replaced the two flat parameters with the parameter object, while direct and generic send API extensions retain non-deprecated flat-parameter overloads as an alternative API form
  • ChatAdministratorRights gained the abstract canSendWelcomeMessages property; implementations maintained in the same compilation module must supply the property, while ChatCommonAdministratorRights construction can use the new trailing default
  • FlowsUpdatesFilter gained the abstract messageGenerationStoppedUpdatesFlow property; direct implementations must supply the flow, while subclasses of AbstractFlowsUpdatesFilter inherit the filtered implementation
  • RichText gained the public isValidRichMessageButtonText contract and the RichText/RichBlock/InputRichBlock sealed hierarchies gained Bot API 10.3 variants; permitted same-module implementations and exhaustive when expressions must cover the new contracts and variants
  • SendRichMessageDraft, sendRichMessageDraft, and the corresponding generic send overload widened chatId from ChatId to IdChatIdentifier; source calls passing ChatId remain valid, while the JVM signatures changed
  • RichTextDateTime.dateTimeFormat, DateTimeTextSource.dateTimeFormat, RawMessageEntity.date_time_format, and the related factories and DSL functions now use DateTimeEntityFormatting instead of String; raw format strings must be wrapped explicitly
  • TgDateTimeFormatBuilder.build() and buildDateTimeFormat now return DateTimeEntityFormatting instead of String; code requiring the serialized string must read DateTimeEntityFormatting.value

Migration advice: Direct and generic send extensions accept either receiverUserId = userId, callbackQueryId = callbackId, replaceCallbackQueryMessage = ... or ephemeralMessageParameters = EphemeralMessageParameters(receiverUserId = userId, callbackQueryId = callbackId, replaceCallbackQueryMessage = ...); send-request constructors and reply API overloads require the parameter-object form; add canSendWelcomeMessages and messageGenerationStoppedUpdatesFlow to direct interface implementations; add Bot API 10.3 branches to exhaustive rich-type when expressions; replace relative date-time format strings with DateTimeEntityFormatting.local, build component formats with DateTimeEntityFormatting(useWeek = ..., useDateLong = ..., useTimeLong = ...), and reserve the warning-marked DateTimeEntityFormatting(customValue) constructor for custom or forward-compatible formats

Compatibility note: The new text/entities/isPrivate fields of GiftSentOrReceivedEvent.UniqueGift.Common and GiftSentOrReceivedEvent.UniqueGift.ReceivedInBusinessAccount are trailing constructor parameters; existing positional argument and componentN order is preserved

  • Core:
    • (Ephemeral messages) Added EphemeralMessageParameters; replaced the flat send-request recipient/callback parameters with ephemeralMessageParameters, including callback-message replacement support
    • (Rich Messages) Widened SendRichMessageDraft.chatId from ChatId to IdChatIdentifier, allowing contextual numeric identifiers to supply the default message thread
    • (General) Added message-thread defaults for SendMessageDraft and SendRichMessageDraft, including conversion from direct-message-thread chat identifiers
    • (Ephemeral messages) Added new-file uploads for editEphemeralMessageMedia; collected secondary live-photo photo attachments for ephemeral and regular media edits, media groups, and paid media; added showCaptionAboveMedia for caption edits and rich-message text edits
    • (Ephemeral messages) Added canSendWelcomeMessages administrator right and promoteChatMember parameter
    • (Rich Messages) Added rich-message button actions, rich-text/button-row entities, typed button styles/alignment, expandable block quotations, compact tables, document blocks, document media links and direct document uploads
    • (Rich Messages) Added the RichText.isValidRichMessageButtonText subtype contract, moved rich-button markup generation onto RichMessageButton implementations, and corrected expandable-quotation Rich Markdown block HTML to use <blockquote expandable> with HTML-formatted nested text and credit
    • (Rich Messages) Added DateTimeEntityFormatting, a typed date_time_format value with control-key constants, useLocal/useWeek/useDateLong/useTimeLong introspection, the local value, a safe canonical-order factory, and typed TgDateTimeFormatBuilder output
    • (Reply markup) Added DisabledButton/DisabledInlineKeyboardButton support for disabled inline buttons
    • (Reply markup) Added forceReply support to InlineKeyboardMarkup and ReplyKeyboardMarkup
    • (General) Added canStop/keepOnStop draft controls, MessageGenerationStopped updates, and CommunityChatJoined service messages
    • (General) UniqueGiftInfo now exposes text/textSources/isPrivate; the new fields follow every preexisting public constructor field to preserve positional and componentN compatibility
  • Utils:
    • (Reply markup) Added disabled inline-button shortcuts and forceReply parameters to inline/reply keyboard builders
    • (General) Added legacy and generated class casts for MessageGenerationStoppedUpdate
  • API:
    • (Ephemeral messages) Migrated send/reply extension surfaces to ephemeralMessageParameters; added rich ephemeral text editing and caption-above-media support
    • (Rich Messages) Widened sendRichMessageDraft and the corresponding generic send overload from ChatId to IdChatIdentifier
    • (General) Kept threadId/MessageThreadId across direct, streaming-flow, Chat, builder, and generic draft-send extensions; direct-message-thread chat identifiers supply converted defaults
    • (Ephemeral messages) Retained 172 non-deprecated direct and generic send overloads accepting receiverUserId/callbackQueryId/replaceCallbackQueryMessage as an alternative API form; every overload delegates to the corresponding ephemeralMessageParameters overload
    • (Ephemeral messages) Added named rich-message overloads and generic InputRichMessage/RichMessageContent aliases across both ephemeral reply families
    • (General) Added canStop/keepOnStop to sendMessageDraft/sendRichMessageDraft extension surfaces, including streaming draft flows and send overloads
  • BehaviourBuilder:
    • (General) Added onMessageGenerationStopped/waitMessageGenerationStopped and onCommunityChatJoined/community joined event expectations

v36.1.0

  • Dependencies:
    • Update com.gradleup.nmcp.aggregation:com.gradleup.nmcp.aggregation.gradle.plugin from 1.6.0 to 1.6.1
    • Update com.google.devtools.ksp:symbol-processing-api from 2.3.9 to 2.3.11
    • Update io.ktor:ktor-client-core from 3.5.1 to 3.5.2
    • Update dev.inmo:kslog from 1.6.1 to 1.7.0
    • Update dev.inmo:micro_utils.colors.common from 0.30.0 to 0.30.1

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 these updates again.


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

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

@renovate
renovate Bot force-pushed the renovate/major-telegram_bot_api_version branch from d2b7f66 to 8beec8a Compare September 8, 2026 15:16
@renovate
renovate Bot force-pushed the renovate/major-telegram_bot_api_version branch from 8beec8a to 66b0f5a Compare October 8, 2026 09:31
@renovate
renovate Bot force-pushed the renovate/major-telegram_bot_api_version branch from 66b0f5a to 60a3cba Compare October 8, 2026 15:49
@renovate renovate Bot changed the title Update telegram_bot_api_version to v37 Update telegram_bot_api_version to v37 - autoclosed Oct 9, 2026
@renovate renovate Bot closed this Oct 9, 2026
@renovate
renovate Bot deleted the renovate/major-telegram_bot_api_version branch October 9, 2026 09:14
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