Telegram MTProto icon

Telegram MTProto

Full-featured Telegram MTProto client (Pyrogram equivalent)

User → Update Username

AI-generated

Summary

Update your Telegram account's username to a new value without the @ symbol.

Inputs

  • Username (required) — Specify the new username (without @) you want to set for your Telegram account.
  • Additional Options — Provide optional parameters like text parse mode (Markdown, HTML, or none), silent mode for messages, reply message ID, link preview toggle, and message ID pagination options (offsetId, minId, maxId) though these do not affect the username update itself.

Output shape

a single JSON object containing the Telegram API response to the username update request.

The output includes the raw Telegram API response reflecting the updated username or an error message if the update fails.

Examples

Example 1: Update the authenticated user's username to 'new_username'.

Set 'Username' to 'new_username'; 'Additional Options' are optional and generally not needed for this operation.

Discussion