Telegram Bot API

Changes the username of a managed business account. Requires the can_change_username business bot right. Returns True on success.

post/setBusinessAccountUsername

Request

  • Base URL: https://api.telegram.org/bot<bot_token>
  • URL: https://api.telegram.org/bot<bot_token>/setBusinessAccountUsername
  • Auth: none declared

Request body

business_connection_idstring required

Unique identifier of the business connection

usernamestring

The new value of the username for the business account; 0-32 characters

Response

Telegram API response

oktrue required
resulttrue required

Changes

No recorded changes to this operation across all 3 revisions of this API.