Telegram Join Entry
Telegram Join Entry rewards free giveaway tickets when someone joins your Telegram group. A Telegram bot detects the join, collects the person’s email in a private chat, creates (or finds) their WooCommerce account, and allocates tickets to the giveaway you linked — all automatically. It’s a great way to grow an engaged Telegram community around your campaigns.
Requires: WooCommerce, the free Giveaway Lottery plugin, and a Telegram bot created with @BotFather. Your site must be reachable over HTTPS so Telegram can send join events to it (a webhook). The whole flow happens inside Telegram — there is no thank-you page prompt, My Account section, or shortcode.
How It Works
- A person joins your Telegram group.
- Your bot (which must be a group admin) detects the join through a webhook.
- The bot invites them to claim — by direct message, or with a Claim free tickets button in the group if it can’t message them yet.
- The person opens a private chat with the bot and sends their email address (no code to enter).
- WordPress finds or creates their WooCommerce customer account, links their Telegram identity, and allocates the configured free tickets to the giveaway.
- Each Telegram account can claim once per giveaway.
Step-by-Step: Set Up Telegram Join Entry
Part A — Create a Telegram Bot
- In Telegram, open a chat with @BotFather and press Start.
- Send
/newbot, choose a display name, and a username ending inbot. - BotFather replies with a bot token (looks like
123456789:AA...). Copy it.
Part B — Connect the Bot in WordPress
- Go to Giveaway Lottery → Telegram Entry, on the Bot & webhook tab.
- Turn on Enable Telegram join rewards.
- Paste your token into Bot token and click Save settings.
- Click Test bot token — on success it shows “Connected as @YourBot” and fills in the Bot username automatically.
Part C — Connect the Webhook
Telegram needs to send join events to your site over HTTPS.
- Make sure your site is served over HTTPS.
- On the same tab, click Connect webhook.
- You should see “Webhook connected. Telegram will now send join events to this site.” The Current Telegram webhook box shows the registered URL.
The webhook endpoint is https://yoursite.com/wp-json/giveaway-telegram/v1/webhook, secured with a secret token stored on your site. Use Disconnect webhook to remove it.
Part D — Prepare Your Telegram Group
- Create a Telegram group (or a channel’s discussion group).
- Add your bot to the group and promote it to Administrator so it can see join events.
- Get the group’s numeric chat ID (for example
-1001234567890) — the Setup guide tab explains how, e.g. by temporarily adding a bot like @userinfobot.
Part E — Configure a Giveaway Product
- Go to Products → Edit your giveaway product.
- In the Product data panel, open the Telegram Entry tab.
- Tick Enable Telegram join tickets.
- Enter the Telegram group chat ID (the numeric ID from Part D).
- Set Free tickets on join (default 1).
- Click Update. If your bot username is set, a Manual claim link is shown that you can share directly.
Part F — Customize the Bot Messages (Optional)
On the Messages tab you can edit every message the bot sends, using placeholders {name}, {email}, {giveaway}, {tickets}, {order_id}:
- Private welcome / ask for email
- Group welcome (when bot cannot DM yet)
- Success after tickets allocated
- Already claimed
- Invalid email
- Giveaway inactive
- Not a group member
Click Save messages.
The Manual Claim Link
You can also share a direct claim link anywhere (it deep-links into the bot):
https://t.me/{YourBotUsername}?start=claim_{product_id}
For example: https://t.me/MyGiveawayBot?start=claim_123
How Verification & Ticketing Work
- Membership is verified through the Telegram Bot API (the bot checks the person is actually in the group).
- Tickets are set per product via Free tickets on join; there is no global default.
- Each Telegram account can claim once per giveaway. A zero-cost completed order is created behind the scenes and tickets are generated for the linked giveaway.
- New customers created from a Telegram email receive the standard WordPress new-account email.
Where Claims Are Recorded
Go to Giveaway Lottery → Telegram Entry → Recent claims to see the latest successful grants (date, Telegram user, email, giveaway, tickets, order). The behind-the-scenes orders also appear in WooCommerce → Orders with the note “Telegram group join tickets.”
Pro tip: Add your bot as admin before promoting the group publicly — if the bot isn’t an admin when people join, it won’t see the join events and can’t award tickets.
