Telegram Operations
Learn how to launch your bot, activate plans, and execute commands using deep links.
Your MemberPass bot supports powerful deep linking capabilities. You can create special links to:
- Launch the bot.
- Automatically open a specific subscription plan.
- Execute commands (including custom ones).
- Activate access codes.
- Manage affiliate tracking.
Bot Links
There are two primary ways to share your bot:
Short Link (Telegram Only)
Inside Telegram (channels, groups, and chats), you can simply mention your bot by its username.
@YourBotNameFull Link
A universal link that works anywhere (websites, emails, social media) starts with t.me.
https://t.me/YourBotNameDeep Linking
You can pass parameters to your bot using the ?start query parameter. This allows for powerful automation and seamless user onboarding.
Command Links
You can execute any bot command automatically when a user clicks a link.
Formatting Rules
When creating a command link, follow these substitution rules:
- Replace the forward slash
/with a hyphen-. - Replace any underscores
_in the command name with double underscores__.
Example: /status Command
Shows the user's current subscription status.
https://t.me/YourBotName?start=-statusExample: /custom_command
Executes a custom command you've defined.
https://t.me/YourBotName?start=-custom__commandAccess Code Links
You can automatically activate an access code when a user starts the bot. This is perfect for distributing gifts or promotional access.
https://t.me/YourBotName?start=YOUR_ACCESS_CODEWhen a user clicks this link, the bot will launch and immediately attempt to redeem the access code YOUR_ACCESS_CODE.
Subscription Plan Links
Directly link to a specific subscription plan to bypass the plan selection menu. This is ideal for "Buy Now" buttons on your website and pricing tables.
https://t.me/YourBotName?start=PLAN_UUIDYou can find the Plan UUID in your MemberPass dashboard under Plan Settings.
Advanced Links
Combine powerful features like commands and affiliate tracking in a single link.
Affiliate Links
If you are using the Affiliate Program, your partners will have unique links to track referrals.
Basic Affiliate Link
Tracks the referral for Affiliate ID 17.
https://t.me/YourBotName?start=a17Affiliate + Command Executes a command AND tracks the referral.
https://t.me/YourBotName?start=a17_-statusAlternatively:
https://t.me/YourBotName?start=-status_a17Affiliate + Access Code Redeems an access code AND tracks the referral.
https://t.me/YourBotName?start=a17_cCODEAdmin Command Links
You can even construct links for admin actions to use in your own dashboards or integrations.
Parameters
If a command takes parameters (e.g., /ban 12345), separate them with hyphens _-.
Example: Check User Status Shows detailed information about a user (Subscription, Plans, Resources, Payments).
Original Command: /check 12345
Deep Link:
https://t.me/YourBotName?start=-check_-12345Example: Ban User Bans a user, revokes their invite links, and removes them from all resources.
Original Command: /ban 12345
Option 1: Interactive (Recommended)
https://t.me/YourBotName?start=-ban_-12345This link opens a safety menu with a confirmation button to prevent accidental bans.
Option 2: Immediate (Automated)
https://t.me/YourBotName?start=-ban_-12345_-confirmThis link bans the user immediately without confirmation. Use this only for automated systems where you are sure about the action.