Change telegram bot name on the fly
Asked Answered
C

2

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!

Chantalchantalle answered 12/12, 2019 at 6:51 Comment(0)
I
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

Incorruption answered 12/12, 2019 at 13:56 Comment(6)
Yes, I was hoping there would be an api-based way to do it. Strange that a bot can’t change its own name.Chantalchantalle
@CarlosF You gotta need to write a bot for that :)Homeric
@j4hangir. If the API allowed it, you could, but it doesn't, so you can't.....Suasion
@Suasion https://mcmap.net/q/1653507/-change-telegram-bot-name-on-the-flyHomeric
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 hereHomeric
It's simple. because he asked about Telegram Bot API not Telegram Client API. I wonder how you couldn't understand difference between these two concept. Pure Python 3 MTProto API Telegram client library, for bots too! Incorruption
H
-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.

Homeric answered 12/6, 2022 at 17:2 Comment(0)

© 2022 - 2025 — McMap. All rights reserved.