I’ve been trying to add a bot to my Telegram group in Android Device but I am not able to do so. I tried @bot_name, /bot_name, but it doesn’t work.
Is it possible to add a bot to the group or should I create a new bot using Telegram API (not bot API) so that I can add the contact number to the group?
4
Answers
You have to use @BotFather, send it command: /setjoingroups
There will be dialog like this:
After this you will see button “Add to Group” in your bot’s profile.
Another way :
change BOT_USER_NAME before use
Edit: now there is yet an easier way to do this – when creating your group, just mention the full bot name (eg. @UniversalAgent1Bot) and it will list it as you type. Then you can just tap on it to add it.
Old answer:
In my case the 2 steps worked:
The second step was needed to let Bot respond and sent messages to Group chat.
The response
event.postData.contents
looked like this:I needed to receive the chat id (negative number from response) to send messages to the group by Bot.