0

To add a bot to a group we can use this link:

https://telegram.me/[botname]?startgroup=foo

It shows up a dialog to select a group. But when the bot is added to the group a start command also gets added like this:

/start@[botname]

The problem is that group members will keep tapping on this start command and it will be awkward.

How to simply add a bot to a group without a clickable command link? Isn't there any other deep link?

xpt
  • 20,363
  • 37
  • 127
  • 216
Blendester
  • 1,583
  • 4
  • 19
  • 43
  • As I know, there is no other link to do this. – Sean Wei Jul 26 '17 at 07:23
  • 1
    You can use the messageID to delete those messages(via bot), emmediately after starting. – tashakori Jul 26 '17 at 08:23
  • @tashakori bot should be either group admin, or the owner of the message to be able to delete it. it's not neither one – Blendester Jul 26 '17 at 16:15
  • As Sean said there is no other way to prevent /start command. I think the only way is left is that you should keep track of each chat and just ignore /start-s starting from the 2nd one . – tashakori Jul 26 '17 at 17:32

3 Answers3

0

I think you can just right click and delete that message. that was solution for me.

T.Todua
  • 53,146
  • 19
  • 236
  • 237
  • I'm the developer, not the user. If it was me, the better solution would be "Add Member" button. I hope one day they give a link for just adding – Blendester Aug 11 '17 at 18:27
0

Delete and create your bot via BotFather again. Don't add any command via BotFather and they won't be shown in the menu.

  • This post isn't an actual attempt at answering the question. Please note [StackOverflow doesn't work like a discussion forum](http://stackoverflow.com/tour), it is a Q&A site where every post is either a question or an answer to a question. Posts can also have [comments](http://stackoverflow.com/help/privileges/comment) - small sentences like this one - that can be used to critique or request clarification from an author. This should be either a comment or a [new question](http://stackoverflow.com/questions/ask) – ρяσѕρєя K Dec 30 '19 at 00:57
0

3 years old question but, I've tried use link without payload and the bot added to group without command:

/start@[botname]

The link without payload is like this:

https://t.me/[botname]?startgroup=
hanism
  • 763
  • 2
  • 6
  • 13
  • Tried and work on Telegram for iOS and Telegram for Mac (Mac App Store). Not working on Android and Telegram Lite (Mac App Store) – hanism Aug 25 '20 at 12:48
  • Hi, I've tried. https://telegram.me/mybotname?startgroup=mygroupname, or /start@mybotname within "mygroupname". Neither way get my bot added to the Telegram Group. Would you elaborate a bit more, like with an example pls? – xpt Aug 28 '20 at 01:31
  • Don't get it, you want to add your bot to a group right @xpt? Let's do some test, copy and paste this link: https://t.me/quranappbot?startgroup= to your _**Saved Messages**_ and then send. After that, try to click the link on the message that you just sent to your _**Saved Messages**_ and see what will happen. – hanism Sep 24 '20 at 09:09
  • Thanks hanism. Does it have to be that bot? I got `Method: contacts.resolveUsername Result: {"_":"rpc_error","error_code":400,"error_message":"USERNAME_INVALID"}`. _Update_, tried my own bot and get exact same error as well. PS. I'm using Telegram web. – xpt Sep 24 '20 at 13:54
  • It can be any bot @username, I just random use my bot’s name as an example for you to test. For web, it won’t work sorry and will give you error message like you mention above. As I stated before, it work on Telegram for iOS and Mac. – hanism Oct 04 '20 at 02:34
  • OK. I tried Telegram for Android, and it is not working for me -- clicking the link on the message I just sent to Saved Messages prompted me to select a group, I select one, and Telegram brings me to the group. No more steps prompted, and the bot is not added to the selected group. – xpt Oct 06 '20 at 01:29