Telegram bots will receive a secondary username that can end not with "bot", but with app, agent, ai, game, or gay. Bot owners with a Telegram Premium subscription will be able to add such a username, one per bot. Based on the username's ending, the client will label the bot in its status line: instead of the usual "bot", it will display "agent", "AI", "game", or "app". Methods for this are already present in TDLib, the status label in Telegram Desktop code, and error messages in Android 13.0.2, released on October 13. As of October 9, the server configuration did not yet contain keys for this feature.

Feature Enabled on October 16

On October 16, the secondary username feature became active in @BotFather. Bot owners with Telegram Premium can link it for free, with a limit of no more than two such usernames across all bots owned by a single user. The allowed endings are app, ai, game, agent, and gay. The server limit matched TDLib's default, and the list of endings matched the five known to clients.

What Changes in Username Rules

Currently, a bot's username must end with "bot", such as "tetris_bot" or "TetrisBot", as required by BotFather documentation. This rule remains: the bot's primary username will still end with "bot".

The new feature is a secondary username (called secondary_username in the TDLib scheme). It does not replace the primary username but exists alongside it in the bot's link list, similar to additional usernames for channels and accounts. There are three restrictions:

  • The username must end with one of the allowed suffixes provided by the server.
  • A bot can have only one such username.
  • A single owner cannot have more such bots than the server-defined limit; by default, TDLib sets this to two.

If you choose a username without "bot" at the end when creating a bot, TDLib describes the following process: the chosen username will become the secondary one, and the server will automatically assign a primary username ending in "bot" to the bot.

How This Will Look for a Bot Owner

Until the server provides the list of endings, you cannot add a secondary username in any client. Once enabled, the process can be inferred from Android client strings:

  • The username field will show a hint: "must end with 'bot' — or with app, agent... with Telegram Premium".
  • Attempting to use a new ending without a subscription will trigger a message stating that such usernames require Premium, with a subscription button.
  • A third bot with such a username will hit the limit: "you can only have N such usernames across all bots".
  • A second attempt on the same bot will be stopped by: "this bot already has a Premium username, delete it before adding a new one".

Checking for an available username is the same as for a new bot, with a separate flag "for secondary username". A secondary username can be deleted at any time.

Where the Status Label Will Appear

The status label is the string under the bot's name in the chat header and profile, where "bot" is currently displayed. Telegram Desktop determines it with a short function: it takes the first username in the bot's link list and checks its ending against five options, case-insensitively. If it matches, the corresponding word from the table is displayed instead of "bot". If it doesn't match, "bot" remains.

EndingEnglishRussian (on translation platform)
appappприложение
agentagentагент
aiaiИИ
gamegameигра
gaygayгей

An important detail not visible from announcements is that if the server provides the number of active monthly users for a bot, the status line displays that, and the ending-based label does not appear. This means "agent" will primarily be seen for bots that do not have such a counter.

A second detail is that the first username in the list is checked, regardless of what it is. The bot owner can reorder links by dragging, but the scheme does not specify whether the secondary username can be moved to the top. This affects whether the label will be seen for a bot whose primary username ending in "bot" is listed first.

The fifth ending had a shorter journey than its discussion. It appeared in Desktop source code on October 6 with the English text "non-binary", and on October 8, the English option was replaced with "gay" on the translation platform. The Russian translation there managed to be "гей", "геи", and "gay" within two days, so the final word might still change. The other four endings have been translated without disagreement.

Is This Free for Premium?

More precisely, the secondary username is only available with Premium, and there is no separate charge for it in the code. The addition method in TDLib accepts two arguments — the bot and the username, without a price, stars, or Gram. The server method bots.addUsername in the MTProto scheme is structured similarly. TDLib refers to the list of allowed endings as "Premium suffixes", and Android calls it a "Premium username". There is no way to purchase such a username without a subscription in the current code.

This mechanic does not intersect with Fragment. The scheme explicitly calls the secondary username "non-collectible": it is not an NFT username from an auction; it is not sold or transferred, but claimed like a regular username if it is available. Bots can already use collectible usernames from Fragment, and those can also exist without "bot" at the end.

What happens when a subscription ends is stated in one line of the scheme: if a secondary username is disabled, it can only be re-enabled with Premium. This leads to the hypothesis that the username is disabled, not freed, upon Premium expiration — but there is no direct description of this scenario in the code.

Where the server gets the list of endings

The five endings in Telegram Desktop are hardcoded: they form the dictionary for the status label. TDLib reads the allowed endings for registration from the app's server configuration, specifically the bot_allowed_suffixes key, and provides them to clients via the updateAllowedBotUsernamePremiumSuffixes event (commit from September 30). The owner limit comes via the bot_additional_usernames_limit key. In the production configuration as of October 9, neither of these keys was present, so the list of endings on the server might be shorter or longer than the five known to clients.