-
Good evening, I am trying to build a telegram bot which can update a channel/group username (to something like t.me/groupName) but I don't seem to know which method in this package can help me achieve that. If there is, I will be glad if I can get a sample code to better explain it. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hello, I am afraid with Telegram bots you can't do that, the only thing I can suggest is using createChatInviteLink and editChatInviteLink methods. Telegram does not provide a lot of things that bots can change, and channel/group username is one of them. If you really need such functionality, you can try to look into user bots (it's basically custom Telegram client that uses real user to do some actions, like changing usernames in your case), but Telego does not provide such API (and probably will never do). |
Beta Was this translation helpful? Give feedback.
Hello, I am afraid with Telegram bots you can't do that, the only thing I can suggest is using createChatInviteLink and editChatInviteLink methods.
Telegram does not provide a lot of things that bots can change, and channel/group username is one of them.
If you really need such functionality, you can try to look into user bots (it's basically custom Telegram client that uses real user to do some actions, like changing usernames in your case), but Telego does not provide such API (and probably will never do).