skip to Main Content

I have created a testing telegram bot with some commands, but the username is not what I want.

But I found that the username of my bot is unable to change, thus I need to create a new telegram bot.

Is there any method to copy all the existing commands of old bot to the new bot, instead of creating all the commands again in the new bot?
or
Is there any method to change the username of the old bot?

2

Answers


  1. With my experience unfortunatly I say no, is not possible to copy commands from others bot and is not possible change the username of the bot, is possible only change the name of it.

    This answer refers to the Bot API 5.7 (the latest release at the moment)

    Login or Signup to reply.
  2. Yes, you can change the username of your bot.

    Method 1

    When you create a bot using BotFather, it sends you a message like so with your bot token:

    Done! Congratulations on your new bot. You will find it at t.me/xxx. You can now add a description, about section and profile picture for your bot, see /help for a list of commands. By the way, when you’ve finished creating your cool bot, ping our Bot Support if you want a better username for it. Just make sure the bot is fully operational before you do this.

    Use this token to access the HTTP API:
    xxxxx:xxxxxxxxx
    Keep your token secure and store it safely, it can be used by anyone to control your bot.

    For a description of the Bot API, see this page: https://core.telegram.org/bots/api

    As stated, you can ping their bot support to get a better username for your bot. (Make sure that the bot is fully operational before doing this)

    Method 2

    Suggested by @AdityaYadav

    1. Create your new bot with the desired username
    2. In your script, replace the old token with the new token (of your new bot)

    You may transfer the description, profile photo etc. of the old bot afterwards.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search