Repository navigation
Bot API 10.5 (November 22, 2026)
Bot Settings
- Added
setMySettings(inline mode, privacy mode, joining groups, topics in
private chats, topic sidebar,callback_query_mode).has_topic_sidebar
takes effect only whilehas_topics_enabledis on: otherwise Telegram
accepts the call butgetMekeeps reportinghas_topic_sidebar: false. - Added the
CallbackQueryModeconst (Default,Auto,Inline), like
ParseModea typo-proof handle on a field that staysstring:
setMySettings({ callback_query_mode: CallbackQueryMode.Inline }). - Added
BotFullInfo, now returned bygetMe, with the new fields
active_usernames,inline_query_placeholder,needs_inline_query_location
andhas_topic_sidebar.bot.botInfoandctx.meare typedBotFullInfo. - With
callback_query_modeset, callback queries from the bot's own messages
can arrive withinline_message_idinstead ofmessage. For those,
ctx.chatisundefined,ctx.replythrows, andmatchCallbackdoes not
match - route them bycallback_data. - Breaking (types): the bot-only fields (
can_join_groups,
can_read_all_group_messages,supports_inline_queries, ...) are removed
fromUser, matching the docs. Read them fromgetMe()/bot.botInfo.
General
- Added
invitertoWriteAccessAllowed. - Breaking:
RichBlockExpandableBlockQuotationand
InputRichBlockExpandableBlockQuotationreplacetextwithblocks, and
RichMessageBuilder.expandableBlockquotenow takes nested blocks (like
blockquote) instead of rich text.
Context shortcuts
-
Added the object form
ctx.reply({ text, ...options })alongside the
positionalctx.reply(text, options?). Both are supported; the positional
form is not deprecated. The two share one implementation, so routing
(business connection, forum topic, direct-messages topic), the ephemeral
callback-reply branch and theguest_messagerefusal behave identically. -
Added
ctx.editMessageText(params)(text required) - edit the
message that triggered a callback query, picking the target itself:
callback_query.message(chat_id+message_id, with
business_connection_idcopied when the message carries one) or
callback_query.inline_message_idfor inline-mode messages. Throws if the
update is not a callback query, or the callback carries neither - the same
shape asanswerCallbackQuery.
Full changelog: v2.4.1...v2.5.0