The Telegram shop
The shop is a Telegram bot where your customers buy a plan, renew a client, try a plan for free and invite friends. AFTAB never takes or holds money: the customer pays you card to card or in crypto, sends the receipt to the bot, and you check it and approve the order, in the panel or in your admin chat. On approval the client is made or renewed, linked to the customer’s chat, and the bot sends the subscription link. The bot also shows the customer’s services with their usage and end date.
There are two kinds of shop. The panel’s own shop runs on the panel’s Telegram bot and sells to the panel’s clients. A reseller’s shop runs on a bot of the reseller’s own, with their prices, their card and their admin chat, and the clients it sells are the reseller’s. See Resellers.
Set it up
Section titled “Set it up”- Turn on Selling and operator tools in Settings → Panel. The setting is
full_mode, and the Shop page stays hidden until it is on. - In Settings → Integrations → Telegram, switch on Send to Telegram, give the Bot token and add your Admin chats. Create the bot with @BotFather: send it /newbot, copy the token, then send /start to your new bot. The panel keeps the token sealed (encrypted at rest) and it is never shown again.
- Open Shop, then its Settings tab, and switch on Shop open. The panel refuses to open it until it has a Card number, a crypto address or a free trial. Under payment give the Card number and Card holder and the Currency that is shown after prices.
- Under Prices give each plan the price it sells for. A plan with no price is not sold. In the panel’s own shop a plan with no price here is sold at its own Price, set on the Plans page.
- Press Save, open your bot in Telegram and try to buy a plan.
A reseller sets up their own shop on the same tab, with Your bot’s token from @BotFather, a bot of their own and not the panel’s, and Your admin chat ids, where their payments come to be approved: send /start to the bot, then ask @userinfobot for your id.
What a customer sees
Section titled “What a customer sees”The bot’s menu has Buy a plan, My services, Free trial while one is on offer and not yet used, Invite friends while a referral reward is set, and a Support button when a support link is set. After choosing a plan the customer picks Card to card or Crypto, and may use a Discount code while the shop has any. Then they pay and send the receipt: a photo for a card, a transaction id or a screenshot for crypto. The order then waits To check.
In your admin chat every order arrives with the receipt and the buttons Approve and Reject. The Orders tab of the shop shows the same orders with the same two buttons, and a rejection can carry a note that the customer sees. If someone sends the same receipt twice, the order says it carries the same receipt as an earlier order: check that the money really arrived before you approve. A receipt typed as text is compared when it is at least 8 characters long.
In a reseller’s private admin chat (the id listed in Your admin chat ids, in a direct chat with their own shop bot), /client NAME looks up one of their clients with buttons to add 30 days, renew with a plan, enable or disable, or send the link and QR code, and /new PLAN NAME creates a client on an allowed plan. Every change acts on only their own clients, charges their own allowance, and is recorded in Activity. Other messages in an admin chat do nothing, so admins do not trigger the customer menu.
Payment details
Section titled “Payment details”- Other cards: one card a line, as number, holder and daily cap. A customer is given the first card that has room today. When every card is full, the one with the least taken still gets the customer. Daily cap of this card sets the cap of the first card, and 0 means no cap.
- Units to make each amount its own, on card payments only: up to this many units, at most 1000 units, are added to an order’s amount so that no two waiting orders have the same amount, and the customer is told to pay exactly that. You match the bank’s message to the order by it.
- Crypto addresses: one a line, for example
USDT (TRC20): T…. The customer sends the transaction id. - Price of one credit, in the panel’s shop only: what a reseller pays for one unit of credit when they buy credit here. With 0 they cannot buy credit in the shop.
- A discount code of 100 percent leaves nothing to pay, and the admins still approve the order.
Free trial and referrals
Section titled “Free trial and referrals”Free trial under Trial and referrals picks a plan that the bot gives once per Telegram user, with no payment and no approval. A trial is not a sale.
Referral reward: days and Referral reward: GB are added to the first service of the person who invited a friend, once that friend’s first paid order is approved. The bot’s Invite friends gives each customer a link of the form https://t.me/BOT?start=ref_ID. In a reseller’s shop the reward is charged like a renewal with no plan: a reseller with a traffic pool pays it from the pool, and a pool that cannot cover it gives no reward. A reseller with neither pays nothing. A reseller who pays with credit never gives a referral reward, because a reward has no plan to charge. Welcome message replaces the bot’s greeting.
Discount codes
Section titled “Discount codes”Open the Discount codes tab and press Add code. A code is 2 to 32 characters, letters, digits, - and _, and takes 1 to 100 percent off. Most uses of 0 means no limit, and the days it is valid for are at most 3650 days, with 0 meaning no end. A use is counted when the customer sends their receipt.
Win back
Section titled “Win back”On the Clients page, Win back is offered when some clients ended and did not renew. It sends each of the chosen clients whose service ended in the last 30 days a code in Telegram with a Renew button. Set Discount, percent, from 1 to 90 percent, and Valid for, days, from 1 to 90 days. The code works once, and only in that client’s own chat. Press Send the codes. A client is left out if they did not end in the last 30 days, are not linked to Telegram, the shop is closed, they were sent a code already, or more than 300 codes are needed at once: send again for the rest. Reports counts the codes sent and the clients who came back with one.
Who sees which orders
Section titled “Who sees which orders”Orders belong to the shop that took them. The owner opens the Shop page and may switch on Resellers’ shops too to see every shop’s orders. A reseller sees only their own. A reseller’s credit orders, bought in the panel’s shop, appear there too: see Resellers. What the shop sold is written into the money book: see Reports.
What can go wrong
Section titled “What can go wrong”- “Turn on Telegram first”. The panel’s shop needs Send to Telegram on and a Bot token saved.
- The shop will not open. Give a card or a crypto address, or a free trial. A reseller also needs their own bot token and at least one admin chat id.
- “Use a bot of your own, not the panel’s”. A reseller’s bot must be a different bot from the panel’s: it is not the panel’s.
- Approving fails for a reseller. Their allowance cannot cover the client: the order stays as it was, nothing is charged, and they need credit or traffic first.
- The plan is not in the bot. It has no price in the shop, or, in a reseller’s shop, the reseller may not use it.
- A client’s Renew button opens another bot. It opens the bot of whoever sells to that client: the panel’s bot for the panel’s clients and the reseller’s own bot for theirs.