The moment it happens
Read receipts you photograph
Send your bot a photo of a receipt and get the merchant, date and total back.
- Runs
- The moment it happens
- Apps
- Telegram
- AI
- Not needed
- Access
- bot token
Send this to your assistant
Create a ClickRuntime automation: when I send a receipt photo to my Telegram bot, use my OpenAI key to read the merchant, date and total, and reply with them.
First time? Adding ClickRuntime to your assistant takes about two minutes.
Why use it
Why teams use this automation
A freelancer collects paper receipts in a pocket, a small business owner photographs invoices on a supplier visit, and a traveler snaps menus and signs in another language. Typing the figures into a spreadsheet later is tedious and error-prone. Receipts fade, get lost or pile up until tax time, when the missing ones cost real money. Small amounts matter when they repeat.
When you send a photo to your Telegram bot, ClickRuntime downloads the largest version with getFile, passes it to the vision model you connect with your own key, and replies with a description or the extracted fields such as merchant, date and total. You can optionally log each result to state for later export.
It suits freelancers, small teams and travelers who want to capture paper quickly and read it later.
What you get out of it
Receipts are captured at the moment you get them
Taking a photo while you are still at the counter means nothing is lost in a pocket. Expenses are recorded when you remember them, not weeks later. Even a quick snap in a taxi or a cafe is enough to preserve the details.
Typing figures by hand ends
The merchant, date and total come back as text you can copy. That cuts transcription errors, which are a common source of mismatches at reconciliation time. A wrong digit in a total is exactly the kind of slip that makes a ledger fail to balance later.
Tax season becomes less stressful
A running list of extracted receipts gives your accountant what they need. Deductible expenses are less likely to be forgotten, which can mean real money saved. Capturing everything in time can be worth far more than the small cost of reading each photo.
Descriptions help beyond receipts
The same flow can describe a photo, read a sign or translate a menu. One bot covers several small tasks that would otherwise need different apps. Menus, street signs, handwritten notes and whiteboards all fit the same simple flow.
You control the vision model and cost
Because it uses your own key, you choose the provider and see usage on your own account. There is no hidden charge from an extra service. That keeps costs honest, since you pay only for the photos you actually send.
How it works
What happens, step by step
When you send a photo of a receipt to your Telegram bot, ClickRuntime downloads the clearest version straight away.
It sends the photo to your own image-reading AI model.
The bot replies with the merchant, date and total it found on the receipt.
Before it runs live
- Connect Telegram
- Paste your automation's link into the other app's webhook settings
What you get
Build your own
Need it to work differently?
Your own rules
Conditions, thresholds, filters and exceptions, written the way you'd explain them to a colleague.
Any number of apps
One automation can read from one app and update several others. Over 248 apps are ready, and anything with an API works too.
AI where it helps
Summaries, classification, extraction and drafts use ClickRuntime's built-in AI, with no extra key.
On a schedule or on each event
Runs as often as every 5 minutes, or the moment an app sends an event, and keeps track of what it already handled.
Changes you can ask for
- Act only on the items that match your own rules, and skip the rest
- Add an AI step, for example to summarize, sort or draft a reply
- Add another app, for example also send it to Slack
- Combine it with other Telegram steps into one automation
Under the hood
The code that runs this automation
import base64
from clickruntime import on_event, http, credentials
def tg(method, **params):
r = http.post(f"https://api.telegram.org/bot{credentials.secret('TELEGRAM_BOT_TOKEN')}/{method}", json=params)
r.raise_for_status()
return r.json()["result"]
@on_event
def handle(event):
msg = (event.json or {}).get("message") or {}
if "photo" not in msg:
return {"read": False}
path = tg("getFile", file_id=msg["photo"][-1]["file_id"])["file_path"]
img = http.get(f"https://api.telegram.org/file/bot{credentials.secret('TELEGRAM_BOT_TOKEN')}/{path}").content
r = http.post("https://api.openai.com/v1/chat/completions",
headers={"Authorization": f"Bearer {credentials.secret('OPENAI_API_KEY')}"},
json={"model": "gpt-4o-mini", "messages": [{"role": "user", "content": [
{"type": "text", "text": "Read this receipt. Reply as: Merchant / Date / Total"},
{"type": "image_url", "image_url": {"url": "data:image/jpeg;base64," + base64.b64encode(img).decode()}}]}]})
answer = r.json()["choices"][0]["message"]["content"]
tg("sendMessage", chat_id=msg["chat"]["id"], text=answer)
return {"read": True}FAQ
Common questions
Which vision model does it use?
How accurate is the receipt reading?
Can it save the results to a spreadsheet?
What permissions does it need?
Does it need AI?
How many runs does it use?
Can I change how it works?
Related
You might also like
Generate images from a bot command
Type /img and a description, and your bot sends back a generated image.
See how it worksGet error alerts from your tools on Telegram
Any system that can send to a link can now alert you on your phone.
See how it worksRun a support inbox and broadcasts through your bot
Messages to your bot reach your admin chat, you reply from there, and you can message everyone who started the bot.
See how it worksKeep exploring
Set up “Read receipts you photograph” from your assistant
Copy the prompt above, or connect your assistant first. Free plan, no credit card.