Telegram Bot icon

Telegram Bot

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

Actions101

Bot → Get My Name

AI-generated

Summary

Retrieve the current name of the Telegram bot, optionally specifying the language for localization.

Inputs

  • Language Code — Two-letter ISO 639-1 language code to get the bot name in a specific language.

Output shape

a JSON object representing the bot's name, with the structure returned by Telegram's getMyName API endpoint.

The output is the 'result' field from the Telegram API response for getMyName. If the language_code parameter is provided, the name returned may be localized to that language.

Examples

Example 1: Fetch the bot's default name without any language specification.

Leave the Language Code field empty.

Example 2: Fetch the bot's name localized to Spanish.

Set Language Code to 'es'.

Links

Discussion