Skip to main content
Share
Guides

Telegram Bot API 10.4 and 10.5: BotFullInfo, setMySettings and Widgets

Bot API 10.5 makes getMe return BotFullInfo and adds setMySettings; 10.4 added HTML widgets for private chats. Fields, limits and examples from Telegram's docs.

Content & Engineering
Dec 3, 2026
8 min read
Last verified December 2026
telegram bot api 10.5telegram getMe BotFullInfosetMySettings telegramtelegram sendWidgettelegram widget size limit
TL;DR

Bot API 10.5 makes getMe return BotFullInfo and adds setMySettings; 10.4 added HTML widgets for private chats. Fields, limits and examples from Telegram's docs.

Key Takeaways
  • Telegram Bot API 10.5 (22 November 2026) changed getMe to return a new BotFullInfo object and added setMySettings , so a bot can now change its own privacy mode, inline mode and group settings through the API.
  • Bot API 10.4 (9 November 2026) added HTML widgets, sent with sendWidget , which work only in private chats in production.
  • If your code reads bot-only fields such as can_join_groups from a User object, update it.
  • Telegram removed the fields that only getMe returned from User and moved them to BotFullInfo .

The short answer

Telegram Bot API 10.5 (22 November 2026) changed getMe to return a new BotFullInfo object and added setMySettings, so a bot can now change its own privacy mode, inline mode and group settings through the API. Bot API 10.4 (9 November 2026) added HTML widgets, sent with sendWidget, which work only in private chats in production.

If your code reads bot-only fields such as can_join_groups from a User object, update it. Telegram removed the fields that only getMe returned from User and moved them to BotFullInfo. Older changes from 10.0 to 10.3 are covered in our Bot API 10 overview.

What changed, by date

DateVersionChangeBreaking?
9 Nov 202610.4HTML widgets: sendWidget, sendSharedWidget, answerWidgetQuery, editMessageWidgetData, editSharedWidgetDataNo
9 Nov 202610.4Ephemeral replies to callback queries through ephemeral_message_parameters; receiver_user_id made optionalNo
9 Nov 202610.4StoryAreaPosition renamed to AreaPositionYes, for typed clients
9 Nov 202610.4New entity types ton_address and bank_card_numberNo
22 Nov 202610.5getMe returns BotFullInfo; getMe-only fields removed from UserYes
22 Nov 202610.5New method setMySettings, including callback_query_mode and has_topic_sidebarNo
22 Nov 202610.5Owner invite links https://t.me/botinvite/<bot_username>; WriteAccessAllowed.inviterNo
22 Nov 202610.5text replaced by blocks in RichBlockExpandableBlockQuotation and InputRichBlockExpandableBlockQuotationYes

All dates and names are from the official Bot API changelog.

getMe now returns BotFullInfo

The method itself has not changed. The API reference still calls getMe "a simple method for testing your bot's authentication token". It takes no parameters. What changed is the return type: it now "returns information about the bot in the form of a BotFullInfo object".

The User object now lists only these fields: id, is_bot, first_name, last_name, username, language_code, is_premium and added_to_attachment_menu. Flags like can_join_groups, can_read_all_group_messages and supports_inline_queries are documented on BotFullInfo instead.

A request and a response in the documented shape (the values are examples):

GET https://api.telegram.org/bot$TOKEN/getMe
{
  "ok": true,
  "result": {
    "id": 123456789,
    "is_bot": true,
    "first_name": "Support Bot",
    "username": "example_support_bot",
    "active_usernames": ["example_support_bot"],
    "can_join_groups": true,
    "can_read_all_group_messages": false,
    "supports_guest_queries": false,
    "supports_inline_queries": false,
    "needs_inline_query_location": false,
    "can_connect_to_business": false,
    "has_main_web_app": false,
    "has_topics_enabled": false,
    "allows_users_to_create_topics": false,
    "has_topic_sidebar": false,
    "can_manage_bots": false,
    "supports_join_request_queries": false
  }
}

Four fields are new in 10.5:

  • active_usernames (Array of String): all active usernames of the bot, if non-empty.
  • inline_query_placeholder (String): omitted when the default placeholder is used.
  • needs_inline_query_location (Boolean): whether the bot asks for the user's location with every inline query.
  • has_topic_sidebar (Boolean): whether private-chat topics are shown in a sidebar.

What to check: if your code or library has a type for getMe that reuses User, give it its own BotFullInfo type. Optional fields such as username and inline_query_placeholder can be missing, so do not assume they are present. You can test a token and see the raw response with the Telegram bot token checker.

Try it yourself
Build your first chatbot free
Free plan, no credit card required. Live on your site in about 10 minutes.
Start building free

setMySettings: change bot settings through the API

setMySettings is new in 10.5. The reference describes the new method like this: "Use this method to change the settings of the bot. Settings that aren't specified remain unchanged. Returns True on success." Every parameter is optional.

ParameterTypeWhat it does
can_read_all_group_messagesBooleantrue disables privacy mode; false enables it
can_join_groupsBooleanAllow or block adding the bot to groups
supports_inline_queriesBooleanTurn inline mode on or off
inline_query_placeholderStringPlaceholder after the username; an empty string restores the default
needs_inline_query_locationBooleanRequest the user's location with every inline query
inline_feedback_share_denominatorIntegerReceive 1 of every N chosen inline results: 1, 10, 100 or 1000; 0 stops delivery
has_topics_enabledBooleanForum topic mode in private chats
allows_users_to_create_topicsBooleanLet users create and delete topics in private chats
has_topic_sidebarBooleanShow topics in a sidebar in private chats
callback_query_modeStringOne of "default", "auto" or "inline"
can_connect_to_business, can_manage_bots, supports_guest_queries, supports_join_request_queries, can_communicate_with_botsBooleanAllow or block each capability
curl -X POST "https://api.telegram.org/bot$TOKEN/setMySettings" \
  -H "Content-Type: application/json" \
  -d '{
    "can_join_groups": false,
    "can_read_all_group_messages": false,
    "callback_query_mode": "auto"
  }'

# Response
{"ok": true, "result": true}

callback_query_mode controls where a callback query from a button identifies its message. Per the reference, "default" always uses the message field, "auto" uses inline_message_id when the message is inaccessible, and "inline" always uses inline_message_id. If your callback handler reads callback_query.message.chat.id, keep "default" or handle both fields.

There is no separate getMySettings method in the reference. Read most values back from getMe, since BotFullInfo carries can_read_all_group_messages, can_join_groups and the topic flags. callback_query_mode, inline_feedback_share_denominator and can_communicate_with_bots are not fields of BotFullInfo. For what privacy mode changes in groups, see Telegram bot privacy mode. The name, description and commands are still set with their own methods, which the Telegram bot profile editor covers.

Other 10.5 changes

  • Owner invite links. Bot owners can use https://t.me/botinvite/<bot_username> to invite "up to 10 users at once" to private chats with the bot. The resulting service message carries a new inviter field on WriteAccessAllowed.
  • Expandable block quotations. The text field of RichBlockExpandableBlockQuotation and InputRichBlockExpandableBlockQuotation was replaced by blocks, so these quotations can hold arbitrary blocks. Code that builds or parses rich messages with text on these classes needs a change.
Telegram Bot Commands Generator
Free tool - no signup, runs in your browser.
Open free tool

Bot API 10.4: HTML widgets and their limits

A widget is a message that renders a small HTML document inside the chat bubble. Telegram's widgets guide describes it as a single HTML document with inline CSS and JavaScript. The bot sets the code once; afterwards only the bot can change the widget's data.

The reference says: "Currently, in the production environment, widgets can be sent only to private chats." Sent widgets have protected content and can't be forwarded, and widget messages can't be copied with copyMessage or copyMessages. The guide lists groups, supergroups, inline mode and forwards as test-server only.

LimitValueSource
Widget HTML (html)1-32768 bytessendWidget
HTML after zlib compression at maximum level4096 bytes or lesssendWidget; guide says level 9
widthClamped from 200 to the maximum bubble widthsendWidget
heightClamped to 50-600sendWidget
public_data and chat_data0-1024 bytes eachsendWidget
caption0-1024 characters after entities parsingsendWidget
Data the widget sends with TelegramWidget.request1 to 64 bytesGuide
Widget requests5 per 5 seconds per user and botGuide
Time to answer a widget query15 secondsanswerWidgetQuery
Answer data0-1024 bytesanswerWidgetQuery
Editing shared widget dataAt most once per secondeditSharedWidgetData
cache_time for shared widgets5-3600 seconds (30 by default)editSharedWidgetData

The sandbox is strict. The guide says a widget has "no network access at all": fetch, XMLHttpRequest and WebSocket throw NetworkDisabledError. External scripts, stylesheets, fonts and images are never loaded, so images must be data: URLs or inline SVG. JavaScript runs in QuickJS with no bundled libraries. Inside Telegram the widget gets a window.TelegramWidget object with publicData, chatData and request(data).

Sending a widget that can query the bot:

curl -X POST "https://api.telegram.org/bot$TOKEN/sendWidget" \
  -H "Content-Type: application/json" \
  -d '{
    "chat_id": 123456789,
    "html": "<!doctype html><body><button id=b>Check status</button><script>document.getElementById(\"b\").onclick=function(){TelegramWidget.request(\"status\")}</script></body>",
    "height": 120,
    "chat_data": "{\"order\":\"A-1042\"}",
    "allow_queries": true
  }'

When a user taps the button, the bot receives a widget_query update and answers it within 15 seconds:

{
  "update_id": 100000001,
  "widget_query": {
    "id": "4382bfdwdsb323b2d9",
    "from": {"id": 111111111, "is_bot": false, "first_name": "Ana"},
    "chat_instance": "-8205681357342381812",
    "message_id": 42,
    "type": {"type": "data"},
    "data": "status"
  }
}

POST /bot$TOKEN/answerWidgetQuery
{"widget_query_id": "4382bfdwdsb323b2d9", "data": "Shipped"}

The answer goes only to the widget that asked and does not change stored data. To change what every viewer sees, call editMessageWidgetData or, for shared widgets, editSharedWidgetData. A shared widget is created with is_shared: true and resent with sendSharedWidget and its widget_id. Queries from forwarded shared widgets arrive as shared_widget_query.

A late answer fails the same way a late callback answer does. If you see "query is too old", see the query is too old error. Other Telegram caps are listed on the Telegram limits page.

What to do now

  1. Search your code for places that treat the getMe result as a User, and switch them to BotFullInfo.
  2. Update your Bot API library to a release that supports 10.5, then run your type checks.
  3. If you build rich messages, replace text with blocks on expandable block quotations.
  4. If you use typed story areas, rename StoryAreaPosition to AreaPosition.
  5. Decide whether settings now belong in code. A setMySettings call at deploy time keeps privacy mode and group access the same in every environment.
  6. If you add widgets, keep the HTML under 32768 bytes and 4096 bytes compressed, add a widget_query handler, and answer within 15 seconds.

Webhook delivery is unchanged by these releases. If updates stop arriving after a deploy, check your webhook with the Telegram webhook checker.

If you would rather not code a bot, Conferbot is a no-code chatbot builder that connects to Telegram, and its Free plan includes 600 conversations a month. See the Telegram chatbot page.

Sources checked 3 December 2026

Share this article:

Was this article helpful?

Ready to build your chatbot?

Join the businesses. Deploy on website, WhatsApp, and 11 more channels in minutes. Free forever plan available.

No credit cardNo coding10 channels
Start Building Free

Get chatbot insights delivered weekly

Join 5,000+ professionals getting actionable AI chatbot strategies, industry benchmarks, and product updates.

🎯Automate this with a free chatbot

Build and deploy in 10 minutes. No coding needed.

❓FAQ

Telegram Bot API 10.4 and 10.5 FAQ

Everything you need to know about chatbots for telegram bot api 10.4 and 10.5.

🔍
Popular:

Since Bot API 10.5, released on 22 November 2026, getMe returns a BotFullInfo object instead of a User object. BotFullInfo holds the bot's id, names and usernames plus its capability flags, such as can_join_groups, can_read_all_group_messages and supports_inline_queries. It also adds active_usernames, inline_query_placeholder, needs_inline_query_location and has_topic_sidebar.

Telegram removed the fields that only getMe returned. The User object now lists id, is_bot, first_name, last_name, username, language_code, is_premium and added_to_attachment_menu. Bot flags such as can_join_groups, can_read_all_group_messages and supports_inline_queries are now documented on BotFullInfo. Code that reads them from a User needs an update.

Yes. Bot API 10.5 added setMySettings. Send can_read_all_group_messages set to true to disable privacy mode, or false to enable it. Settings you leave out stay unchanged, and the method returns True on success. Read the current value back from getMe, which now returns it in BotFullInfo.

It is a setMySettings parameter with three allowed values. With "default", callback queries always use the message field. With "auto", they use inline_message_id when the message is inaccessible. With "inline", they always use inline_message_id. If your handler reads the chat id from callback_query.message, keep the default or handle both fields.

The sendWidget html parameter accepts 1 to 32768 bytes, and the code must not exceed 4096 bytes when compressed with zlib at the maximum level. Height is clamped to 50 to 600 logical pixels. Width is clamped from 200 to the maximum bubble width. public_data and chat_data are limited to 1024 bytes each.

Not in production. The API reference says that in the production environment widgets can be sent only to private chats. Telegram's widgets guide lists groups, supergroups, inline mode and forwards as available on the test server only. Sent widgets also have protected content and cannot be copied with copyMessage or copyMessages.

No. The widgets guide says a widget has no network access at all, and fetch, XMLHttpRequest and WebSocket throw NetworkDisabledError. The widget talks to your bot instead. It calls TelegramWidget.request with 1 to 64 bytes of data, your bot receives a widget_query update, and it answers with answerWidgetQuery within 15 seconds.

About the Author

Content & Engineering

The Conferbot team writes about building, deploying, and improving AI chatbots.

View all articles
Skip the blank canvas
Start from one of 250+ free chatbot templates for lead generation, support, e-commerce, and 20+ industries - customize and launch in minutes.
Browse free templates

Related Articles

From the reference shelf

Fact-checked reference pages and free tools for the platform this article covers.

Omnichannel Platform

One Chatbot,
Every Channel

Your chatbot works seamlessly across WhatsApp, Messenger, Slack, and 6 more platforms. Build once, deploy everywhere.

View All Channels
Conferbot
online
Hi! How can I help you today?
I need pricing info
Conferbot
Active now
Welcome! What are you looking for?
Book a demo
Sure! Pick a time slot:
#support
Conferbot
New ticket from Sarah: "Can't access dashboard"
Auto-resolved. Password reset link sent.