6

I have a telegram bot that messages on a group. I want the telegram bot to change its “name” from time to time - just like a user can. Is this possible? This means that when I see a message from the bot it can say “ABCbot”, but later it can say “DEFbot”. Let me know!

2 Answers 2

13

Sorry but you can't change your telegram via bot but you can change it via @BotFather as you can see in this screenshot:

enter image description here

Go to @BotFather and send this command

/mybots

Then it will show list of your bots. Click on the bot you want change it's name and then click on Edit Name

6
  • 1
    Yes, I was hoping there would be an api-based way to do it. Strange that a bot can’t change its own name.
    – Carlos F
    Dec 12, 2019 at 14:12
  • @CarlosF You gotta need to write a bot for that :)
    – j4hangir
    Oct 4, 2020 at 13:42
  • @j4hangir. If the API allowed it, you could, but it doesn't, so you can't.....
    – boatcoder
    Jun 12, 2022 at 7:04
  • @boatcoder stackoverflow.com/a/72594264/6387880
    – j4hangir
    Jun 12, 2022 at 17:02
  • I don't understand how you can't has been accepted as an answer. It obviously can be done on-the-fly as I wrote here
    – j4hangir
    Jun 12, 2022 at 17:04
-1

Use Telethon to do that:

await tc.send_message('@botfather', '/setname')
await tc.send_message('@botfather', bot)
await tc.send_message('@botfather', name)

tc is the instance of TelegramClient class.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.