# Telegram Bot API 10.5: getMe, BotFullInfo and setMySettings

> Telegram Bot API 10.5 changed getMe to return BotFullInfo and added setMySettings. See the fields, library support, widget errors and code in Python and Node.

Published 2026-11-24. Z-API Omni team.

Since Bot API 10.5 (November 22, 2026), `getMe` returns a `BotFullInfo` object instead of a `User`. The bot-only fields are gone from `User`. A new method, `setMySettings`, lets a bot change its own settings: privacy mode, group joining, inline mode, private-chat topics and callback query delivery. Raw HTTP code that reads `id`, `username` or `first_name` from `getMe` keeps working, because those fields are still there ([Bot API changelog](https://core.telegram.org/bots/api-changelog), accessed 2026-11-24).

Check any code that types the `getMe` result as `User`, and any library that maps `getMe` into its own `User` class. The basics of `getMe` are in [the Python getting-started bot](/academy/articles/telegram-bot-send-message-python-getting-started/) and [the Node.js bot with fetch](/academy/articles/telegram-bot-nodejs-getting-started/).

## What getMe returns now

The changelog entry reads: "Split out the class BotFullInfo from the class User and changed the return type of the method getMe to BotFullInfo. The fields that were returned only in getMe were removed from the class User." The [getMe reference](https://core.telegram.org/bots/api#getme) (accessed 2026-11-24) still calls it "A simple method for testing your bot's authentication token", with no parameters.

`BotFullInfo` "contains full information about the bot itself" ([BotFullInfo](https://core.telegram.org/bots/api#botfullinfo), accessed 2026-11-24). These are its fields:

| Field | Type | Present |
| --- | --- | --- |
| `id` | Integer | always |
| `is_bot` | True | always |
| `first_name` | String | always |
| `username` | String | optional |
| `active_usernames` | Array of String | optional |
| `can_join_groups` | Boolean | always |
| `can_read_all_group_messages` | Boolean | always |
| `supports_guest_queries` | Boolean | always |
| `supports_inline_queries` | Boolean | always |
| `inline_query_placeholder` | String | optional, omitted when the default is used |
| `needs_inline_query_location` | Boolean | always |
| `can_connect_to_business` | Boolean | always |
| `has_main_web_app` | Boolean | always |
| `has_topics_enabled` | Boolean | always |
| `allows_users_to_create_topics` | Boolean | always |
| `has_topic_sidebar` | Boolean | always |
| `can_manage_bots` | Boolean | always |
| `supports_join_request_queries` | Boolean | always |

The changelog lists `active_usernames`, `inline_query_placeholder`, `needs_inline_query_location` and `has_topic_sidebar` as new. `BotFullInfo` has no `last_name`, `language_code` or `is_premium`. The [User](https://core.telegram.org/bots/api#user) object went the other way. It now holds only `id`, `is_bot`, `first_name`, `last_name`, `username`, `language_code`, `is_premium` and `added_to_attachment_menu`.

Telegram publishes no response sample. The sample below follows the field table and uses placeholder values:

```json
{
  "ok": true,
  "result": {
    "id": 123456789,
    "is_bot": true,
    "first_name": "Order Bot",
    "username": "order_example_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
  }
}
```

## Which libraries handle the new type

Only aiogram documents a break, and it's in type annotations. For every other library, check its release notes and its types against the field table above. As of 2026-11-24 we found no community reports of broken bots. The table follows each project's own release notes.

| Library | Latest release | What its notes say about 10.5 |
| --- | --- | --- |
| aiogram | 3.34.0 (2026-11-22) | "adds full support for Bot API 10.5". `getMe` and `Bot.me()` return `BotFullInfo` |
| grammY | 1.48.0 (2026-11-22) | "feat: support Bot API 10.5" ([PR #986](https://github.com/grammyjs/grammY/pull/986)). The notes don't mention `BotFullInfo` |
| python-telegram-bot | 22.8 (2026-06-12) | No 10.5 release. The README says Bot API 10.0 is "natively supported" |
| node-telegram-bot-api | 2.4.1 (2026-11-21) | 2.4.0 mentions 10.4. 2.4.1 names no version |
| Telegraf | 4.16.3 (2024-02-29) | No release since, so nothing on 10.x |

aiogram's [CHANGES.rst](https://raw.githubusercontent.com/aiogram/aiogram/dev-3.x/CHANGES.rst) (accessed 2026-11-24) spells the change out. It deprecates the getMe-only fields on `User` and says "code that annotates me() as User needs the annotation changed." It also builds `Bot.usernames` from `me()`. Its note on older servers reads "A Bot API server older than 10.5 that returns no active_usernames gives only the main username."

For grammY, the release notes don't say how `botInfo` is typed now. Read the type in your installed version before you rely on fields like `has_topic_sidebar`. python-telegram-bot's `User` class still defines `can_join_groups`, `can_read_all_group_messages` and the topic fields, documented as "Returned only in `telegram.Bot.get_me`". It still parses `getMe` into that class, and it has no 10.5 fields. Whether that affects your bot depends on which fields you read.

If you run your own typed wrapper, rename the return type of `getMe` and move the bot-only fields off your `User` type. If you run a local Bot API server, its version decides what `getMe` sends back. A missing `has_topic_sidebar`, which 10.5 always returns, suggests the server predates 10.5. That last point is our reading of the field table.

## Change settings with setMySettings

`setMySettings` is described as "Use this method to change settings of the bot" ([setMySettings](https://core.telegram.org/bots/api#setmysettings), accessed 2026-11-24). Every parameter is optional. Settings you leave out stay as they are, and the method returns True.

| Parameter | Type | What it does |
| --- | --- | --- |
| `supports_inline_queries` | Boolean | Turns inline mode on or off |
| `inline_query_placeholder` | String | Sets the input hint. An empty string restores the default |
| `needs_inline_query_location` | Boolean | Requests the user's location with each inline query |
| `inline_feedback_share_denominator` | Integer | 1, 10, 100 or 1000. 0 stops chosen inline results |
| `can_join_groups` | Boolean | Allows or blocks adding the bot to groups |
| `can_read_all_group_messages` | Boolean | "Pass True to disable privacy mode for the bot or False to enable it" |
| `can_connect_to_business` | Boolean | Allows connecting the bot to a user account |
| `can_manage_bots` | Boolean | Allows the bot to create bots it controls |
| `supports_guest_queries` | Boolean | Accepts queries from chats the bot is not a member of |
| `supports_join_request_queries` | Boolean | Allows assigning the bot to join request queries |
| `has_topics_enabled` | Boolean | Turns forum topic mode in private chats on or off |
| `allows_users_to_create_topics` | Boolean | Lets users create and delete topics |
| `has_topic_sidebar` | Boolean | Shows private-chat topics in a sidebar |
| `can_communicate_with_bots` | Boolean | Allows talking to other bots in groups, private chats and business accounts |
| `callback_query_mode` | String | `default`, `auto` or `inline`, covered below |

There is no `getMySettings`. You read settings back with `getMe`. Three settings have no matching field in `BotFullInfo`: `inline_feedback_share_denominator`, `can_communicate_with_bots` and `callback_query_mode`. You can set them but can't read them back, so log what you send.

The reference lists no errors for `setMySettings` and no eligibility rules. Log the `description` of any failed call before you guess at the cause.

### Privacy mode from code

`can_read_all_group_messages: true` turns privacy mode off. The [features page](https://core.telegram.org/bots/features#privacy-mode) (accessed 2026-11-24) still documents only BotFather's `/setprivacy`. It also still says "the bot will need to be re-added to the group for this change to take effect." No page says whether a change made through `setMySettings` needs the re-add as well, so remove and re-add the bot anyway. What privacy mode filters, and the admin alternative, is in [why a Telegram bot doesn't see group messages](/academy/articles/telegram-bot-privacy-mode-group-messages/).

### Topic mode in private chats

`has_topics_enabled`, `allows_users_to_create_topics` and `has_topic_sidebar` control topics in the bot's private chats. The features page still says private-chat topics "need to be enabled for the bot via @BotFather". The API route now exists too. How `message_thread_id` behaves there, and the outage of November 9 and 10, are in [Telegram private chat topics and BOT_TOPIC_WRONG_HOME](/academy/articles/telegram-private-chat-topics-bot-topic-wrong-home/).

## Read and change settings in Python

This script calls `getMe`, prints the settings `BotFullInfo` exposes and, with `privacy-off` or `privacy-on` as an argument, calls `setMySettings` and reads the result back. It uses `requests` (`pip install requests`). The Bot API takes parameters as `application/json` for any call that doesn't upload a file, so a POST with a JSON body works for `getMe` too ([making requests](https://core.telegram.org/bots/api#making-requests)). `TELEGRAM_API_BASE` is only for a local Bot API server.

```python
# bot_settings.py
# usage: TELEGRAM_BOT_TOKEN=YOUR_TOKEN python bot_settings.py [privacy-off|privacy-on]
import os
import sys

import requests

BASE = os.environ.get("TELEGRAM_API_BASE", "https://api.telegram.org")
TOKEN = os.environ.get("TELEGRAM_BOT_TOKEN") or sys.exit("set TELEGRAM_BOT_TOKEN")
API = f"{BASE}/bot{TOKEN}"

READABLE_SETTINGS = (
    "can_join_groups",
    "can_read_all_group_messages",
    "supports_inline_queries",
    "can_connect_to_business",
    "has_topics_enabled",
    "allows_users_to_create_topics",
    "has_topic_sidebar",
)

def call(method, params=None):
    resp = requests.post(f"{API}/{method}", json=params or {}, timeout=30)
    try:
        body = resp.json()
    except ValueError:
        sys.exit(f"{method}: HTTP {resp.status_code}, response is not JSON")
    if not body.get("ok"):
        sys.exit(f"{method} failed: {body.get('error_code')} {body.get('description')}")
    return body["result"]

def show(bot):
    print(f"id={bot['id']} username={bot.get('username')}")
    for key in READABLE_SETTINGS:
        print(f"  {key}: {bot.get(key, '(not returned)')}")

def main():
    show(call("getMe"))

    action = sys.argv[1] if len(sys.argv) > 1 else ""
    if action not in ("", "privacy-off", "privacy-on"):
        sys.exit("argument must be privacy-off or privacy-on")
    if action:
        # True disables privacy mode, False enables it
        call("setMySettings", {"can_read_all_group_messages": action == "privacy-off"})
        print("setMySettings returned True, reading back:")
        show(call("getMe"))

if __name__ == "__main__":
    main()
```

The `(not returned)` marker shows when a field is absent, which helps with an older local server. After `privacy-off`, `can_read_all_group_messages` should read `True`. Re-add the bot to each group where it needs every message.

## The same check in Node.js

This version uses the built-in `fetch` of Node.js 18 or later and runs as an ES module, so top-level `await` works.

```javascript
// bot-settings.mjs
// usage: TELEGRAM_BOT_TOKEN=YOUR_TOKEN node bot-settings.mjs [privacy-off|privacy-on]
const BASE = process.env.TELEGRAM_API_BASE ?? "https://api.telegram.org";
const TOKEN = process.env.TELEGRAM_BOT_TOKEN;
if (!TOKEN) throw new Error("TELEGRAM_BOT_TOKEN is not set");
const API = `${BASE}/bot${TOKEN}/`;

const READABLE_SETTINGS = [
  "can_join_groups",
  "can_read_all_group_messages",
  "supports_inline_queries",
  "can_connect_to_business",
  "has_topics_enabled",
  "allows_users_to_create_topics",
  "has_topic_sidebar",
];

async function call(method, params = {}) {
  const res = await fetch(API + method, {
    method: "POST",
    headers: { "Content-Type": "application/json" },
    body: JSON.stringify(params),
    signal: AbortSignal.timeout(30_000),
  });
  let body;
  try {
    body = await res.json();
  } catch {
    throw new Error(`${method}: HTTP ${res.status}, response is not JSON`);
  }
  if (!body.ok) throw new Error(`${method} failed: ${body.error_code} ${body.description}`);
  return body.result;
}

function show(bot) {
  console.log(`id=${bot.id} username=${bot.username}`);
  for (const key of READABLE_SETTINGS) {
    console.log(`  ${key}: ${key in bot ? bot[key] : "(not returned)"}`);
  }
}

show(await call("getMe"));

const action = process.argv[2] ?? "";
if (!["", "privacy-off", "privacy-on"].includes(action)) {
  throw new Error("argument must be privacy-off or privacy-on");
}
if (action) {
  // true disables privacy mode, false enables it
  await call("setMySettings", { can_read_all_group_messages: action === "privacy-off" });
  console.log("setMySettings returned true, reading back:");
  show(await call("getMe"));
}
```

A single `setMySettings` call can carry several parameters. Both scripts send one per call, so a failure points to one setting.

## Callback queries and inline_message_id

10.5 "Added the ability to receive callback queries from buttons in messages sent by the bot with the field inline_message_id". The `callback_query_mode` parameter picks the behavior:

- `default`: "the field message is always used and contains an InaccessibleMessage if the message is inaccessible to the bot".
- `auto`: "the field inline_message_id is used instead of the field message if the message is inaccessible to the bot". Telegram adds that "the field message can still contain an inaccessible message if the message has just been deleted".
- `inline`: "the field inline_message_id is always used instead of the field message".

Leave the mode alone until your handler reads both fields. A handler that assumes `callback_query.message` exists will fail under `inline`, and sometimes under `auto`. Button handling in general is in [inline keyboards and callback queries](/academy/articles/telegram-bot-inline-keyboards-callback-queries/).

## Invite links for private chats with the bot

10.5 lets bot owners "invite up to 10 users at once to private chats with the bot" through `https://t.me/botinvite/<bot_username>`. The changelog adds that "The bot can send messages to the invited users." It also added an `inviter` field to `WriteAccessAllowed`. The changelog doesn't describe the flow beyond that, so test it with your own account before you build onboarding on it.

10.5 also replaced the `text` field with `blocks` in `RichBlockExpandableBlockQuotation` and other classes the changelog names. Check that entry if you parse rich blocks.

## Bot API 10.4 widgets and INPUT_MEDIA_WIDGET_NOT_ALLOWED

Bot API 10.4 (November 9, 2026) added `sendWidget`, to "send a message with an HTML widget" ([sendWidget](https://core.telegram.org/bots/api#sendwidget), accessed 2026-11-24). In production, "widgets can be sent only to private chats". Sent widgets "automatically have protected content and therefore can't be forwarded". The `html` parameter takes 1 to 32768 bytes, and no more than 4096 bytes after zlib compression at the maximum level.

The reference page lists no error strings. Since November 13, a user reports that every call fails in private chats with "Bad Request: INPUT_MEDIA_WIDGET_NOT_ALLOWED" ([tdlib/telegram-bot-api#947](https://github.com/tdlib/telegram-bot-api/issues/947)). The reporter's widgets had worked from November 10 until about 10:00 UTC on November 13.

A contributor to the repository answered the same day that "general bots aren't allowed to use widgets even in private chats." Asked whether Premium users are exempt, the answer was "No." On November 21, whether that will change was "unknown at this point". Asked about a way to apply, the reply was "There is no." Telegram's reference doesn't say which bots may send widgets.

Our recommendation: treat that error as a permanent refusal for now. Catch it and send the same content as an ordinary message or a Mini App button instead. In the reports, every retry failed the same way.

*Z-API Omni team*
