A private-chat bot that supports addition, subtraction, multiplication, and division. For example, sending 1+1 returns 2; 2*2 returns 4.
If the result has a decimal part, keep 5 decimal places.
From one request to a calculator bot
See how a simple idea became a bot you can use. Follow a real conversation, then try the finished calculator in Telegram.
Try it in TelegramNo login needed to view this case. A Telegram account is needed to try the bot.
Real creation conversation excerpts · Edited for readability. Translation of a real Chinese conversation.
Describe your idea
Start with what the bot should do, using concrete examples.
Clarify and confirm
The AI asks about scope, result formatting, and errors. You confirm the plan before generation.
Generate a version
After confirming the requirements, click Generate version yourself. The conversation defines the plan; this action starts code generation and validation.
Recorded result: generation succeededA successful generated version is present in this case’s records.
Connect and publish
Connect your Telegram bot in the workspace, select the version, then click Publish. You choose when it goes live.
Recorded result: publication succeededThis is an excerpt of successful generation and publication records, not a complete operation history. The records also contain unsuccessful attempts; no elapsed time is claimed.
Try the finished bot
Open the bot’s private chat, press Start or send /start, then send the expressions one at a time.
| Send | Expected result |
|---|---|
/start | Welcome message and usage examples |
1+1 | 2 |
1+2*3 | 7 |
1/3 | 0.33333 |
1/0 | 不能除以 0 (Cannot divide by 0) |
These are expected results, not a record of live Telegram testing. The bot’s replies may be in Chinese.
Try it in TelegramWhat would your bot do?
Start with your own idea, then shape it through conversation.