skip to Main Content

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


  1. 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

    Login or Signup to reply.
  2. 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.

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