In this article, you will learn how to use your membership bot links to:

Short link (Telegram-only)

In Telegram channels, groups and chats you can use the bot username with @ in front:

@YogaMemberBot

Full link

A link to your bot that will work anywhere starts with t.me:

https://t.me/YogaMemberBot

Command link

If you'd like a command to be executed right after launching the bot, you can pass it in the link after ?start (note that / must be replaced with -):

https://t.me/YogaMemberBot?start=-status

(equal to /status command, shows subscription status)

https://t.me/YogaMemberBot?start=-yogacat

(equal to /yogacat custom command, show yoga cat)

https://t.me/YogaMemberBot?start=-affiliate

(equal to /affiliate, show affiliate program info)

If a command has the underscore (_) symbol, please replace it with double underscore (__) in your link:

https://t.me/YogaMemberBot?start=-aff__stats

(equal to /aff_stats, show affiliate program stats)

Access code link

You can pass an access code in the link, then it will be activated automatically:

https://t.me/YogaMemberBot?start=c8c186373fddd4d6cd94231387f21f2e6

(where 8c186373fddd4d6cd94231387f21f2e6 — access code)

Subscription plan direct link

There's a unique link to each of your subscription plans (you can find them in plan settings):

https://t.me/YogaMemberBot?start=pbf68a9c0-fec5-11e8-8b50-0dde9ba5dff0

Affiliate links

Your affiliates will have their own links to your bot:

https://t.me/YogaMemberBot?start=a17

(where 17 — affiliate ID)

They can also pass commands:

https://t.me/YogaMemberBot?start=a17_-yogacat

or

https://t.me/YogaMemberBot?start=-yogacat_a17

(execute /yogacat command but also attach the user to the affiliate with ID = 17)

And access codes:

https://t.me/YogaMemberBot?start=cXXX_a17

or

https://t.me/YogaMemberBot?start=a17_cXXX

(activate XXX access code and attach the user to the affiliate with ID = 17)

Bot admin command links (experts only)

All admin commands like /ban, /whitelist, /set_command, etc. can be passed in links too. You can use it in your web dashboards or any custom integrations.

For example, instead of typing /check 12345 to show user's subscription status, you can use this direct link to do the same:

https://t.me/YogaMemberBot?start=-check_-12345

Or, instead of /ban 12345 confirm to ban the user, you can use this:

https://t.me/YogaMemberBot?start=-ban_-12345_-confirm

In general, if the original command was:

/COMMAND PARAM1 PARAM2 PARAM3

Then the link will be:

https://t.me/YogaMemberBot?start=-COMMAND_-PARAM1_-PARAM2_-PARAM3

NB! All underscores in command name must be replaced with double underscores.

Did this answer your question?