Telegram Bot API

Changes the first and last name of a managed business account. Requires the can_change_name business bot right. Returns True on success.

post/setBusinessAccountName

Request

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

Request body

business_connection_idstring required

Unique identifier of the business connection

first_namestring required

The new value of the first name for the business account; 1-64 characters

last_namestring

The new value of the last name for the business account; 0-64 characters

Response

Telegram API response

oktrue required
resulttrue required

Changes

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