setMyName
Returns boolean ↗
Use this method to change the bot’s name.
Optional: 2 parameters
Limits:
- name: 0-64 characters
Try it
TypeScript example · @effect-ak/tg-bot-client
import { makeTgBotClient } from "@effect-ak/tg-bot-client"
const client = makeTgBotClient({ bot_token: "YOUR_BOT_TOKEN" })
const result = await client.execute("set_my_name")Parameters
name string
New bot name; 0-64 characters. Pass an empty string to remove the dedicated name for the given language.
language_code string
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.
Related methods
setBusinessAccountBio · setBusinessAccountGiftSettings · setBusinessAccountName · setBusinessAccountProfilePhoto · setBusinessAccountUsername · setChatAdministratorCustomTitle · setChatDescription · setChatMemberTag · setChatMenuButton · setChatPermissions · setChatPhoto · setChatStickerSet · setChatTitle · setCustomEmojiStickerSetThumbnail · setGameScore · setMessageReaction · setMyCommands · setMyDefaultAdministratorRights · setMyDescription · setMyProfilePhoto · setMyShortDescription · setPassportDataErrors · setStickerEmojiList · setStickerKeywords · setStickerMaskPosition · setStickerPositionInSet · setStickerSetThumbnail · setStickerSetTitle · setUserEmojiStatus · setWebhook