Design a Telegram Bot for Email Account Orders and Status Updates
Plan a useful Telegram order bot with provider choices, cost confirmation, task status, partial-result handling, and a private route for account results.
A Telegram order bot can collect an approved provider and quantity, show the credit estimate, submit a MailMaker task through your server, and report its status. Keep the bot's identity checks, order record, and private delivery route separate from the chat message itself. This is a design guide, not an existing MailMaker Telegram bot.
What you will leave with
- Show the provider, quantity, and cost before confirmation
- A repeated button press must not become another order
- Use clear status messages that explain what happens next
- Send task metadata rather than passwords into ordinary chat
Make the conversation useful before adding automation
A good account-order bot should answer three things before the user confirms: what will be requested, what it may cost, and where the result will go. Ask for the provider and quantity, show a readable summary, and let the user correct a mistake before anything spends balance.
For example, a request for 50 Outlook accounts should show an estimate of 100 credits at the current two-credit rate. A Gmail request of the same quantity shows 50 credits. The user should not need to remember the rate table or infer the provider from an earlier chat message.
| Bot message | Purpose |
|---|---|
| Choose a provider | Make the account type explicit |
| Enter quantity | Define the requested amount |
| Review estimated credits | Make spending visible |
| Confirm this order | Create one deliberate request |
| Track order reference | Keep later updates connected to it |
Connect the requester to an approved account
A chat name is not enough to decide who may spend a workspace's credits. Your service needs an appropriate link between the Telegram user and the authorized customer or internal operator. Decide who can order, who can view results, and who can approve higher spending.
Telegram's Bot API provides the bot interface, while your application supplies these business decisions. Keep the bot token and MailMaker API key on your server. They are different credentials for different services. Never ask an ordinary chat user to paste a workspace API key into the conversation as the default onboarding method.
Protect the confirmation step from repeated actions
People press buttons twice, reopen chats, and retry when a reply feels slow. Preserve the internal order record before submitting the creation task, then attach the returned task ID. A second interaction with the same confirmation should show the existing order rather than spend balance again.
If your server does not receive a clear creation response, mark the order for review. MailMaker's current creation endpoint does not accept a server-side idempotency key. Your bot must not interpret silence as proof that no task exists. Keep the user informed with an honest status instead of silently repeating the request.
Write status updates a non-technical person can understand
Translate the task state into a short explanation while preserving the actual outcome. Queued means the request is waiting. Processing means work is underway. A partial outcome should state how many results completed and how many did not, rather than sending a generic success message.
Avoid a stream of identical progress messages. Update the order record or message when useful, and tell the user what they can do next. If a task is partial, explain that failed items use zero credits and that the remaining requirement needs a decision. Do not automatically create a replacement order from the failed count.
Plan result delivery outside an ordinary group conversation
Account results contain sensitive credentials. A status message can show the order reference, provider, count, and final charge without including passwords. Send the user to an authenticated result view or another appropriately controlled destination chosen for the workflow.
Before launch, test mistaken recipients, repeated confirmations, loss of a response, and the result handoff. These are proposed checks for your own implementation, not claims that a ready-made integration has already passed them. The MailMaker API reference remains inside the API Keys page for the exact account-task contract.
Questions about this workflow
Does MailMaker provide this Telegram bot?
This article describes a bot you can design around the task API. It does not claim an existing official Telegram bot or a completed integration.
What should the confirmation show?
Show the provider, quantity, estimated credits, internal order reference, and intended result destination before submission.
Should the bot automatically replace failed accounts?
Reconcile the task first and ask whether the shortfall remains approved. A failed count should not silently trigger another paid order.
Where should a bot user receive account credentials?
Use an authenticated or otherwise access-controlled destination. Ordinary group messages are better suited to non-sensitive task updates.
Sources used in this guide
Provider rules and product behavior can change. These first-party references are the starting point for checking the current requirements.
- Telegram: Bot API ↗
Official bot interface. Order authorization and MailMaker orchestration in this guide are proposed application design. Checked November 14, 2026.
Run the workflow in MailMaker.
Start in the dashboard with your provider selected, or connect the same task lifecycle to your application through the API.