Telegram Bot icon

Telegram Bot

Interact with the Telegram Bot API – send messages, manage chats, handle payments, and more

Actions101

Bot → Set My Name

AI-generated

Summary

Set the name of the Telegram bot to a new specified value, optionally localized by a two-letter ISO 639-1 language code.

Inputs

  • Bot Name (required) — New name to assign to the bot.
  • Language Code — Two-letter ISO 639-1 language code to localize the bot name.

Output shape

a single object containing the result of the setMyName Telegram Bot API call.

The operation returns the API response's 'result' field if present, wrapping it in a JSON object. If an error occurs, it throws a NodeApiError unless 'Continue On Fail' is enabled.

Examples

Example 1: Set the bot's name to 'WeatherBot' with no language code, updating the default name globally.

Bot Name: WeatherBot; Language Code: (not set)

Example 2: Set the bot's name localized to Spanish with 'TiempoBot' as the name and language code 'es'.

Bot Name: TiempoBot; Language Code: es

Links

Discussion