Telegram Bot API

Use this method to change the bot's name. Returns True on success.

post/setMyName

Request

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

Request body

namestring

New bot name; 0-64 characters. Pass an empty string to remove the dedicated name for the given language.

language_codestring

A two-letter ISO 639-1 language code. If empty, the name will be shown to all users for whose language there is no dedicated name.

Response

Telegram API response

oktrue required
resulttrue required

Changes

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