Duplicati Backup Reports to Telegram Without a Bot Token
push.tgDuplicati has a Telegram option, but it wants a bot token and a channel ID. If you'd rather skip BotFather, its HTTP report does the job: after each backup Duplicati POSTs a short report to any URL you give it. Point it at push.tg and the report lands in your Telegram chat.
Step 1: get your endpoint (30 seconds)
Open @trafficRobot in Telegram and press Start. You get an address like k3x9q@push.tg. Your endpoint is the part before the @: https://push.tg/k3x9q. Every example below uses k3x9q, so swap in your own key.
There's no bot to create, no chat_id to look up and no token to keep safe. Add @trafficRobot to a group and the group gets its own address, so everyone on call sees the messages.
Step 2: add three advanced options
Put them in Settings to cover every backup, or edit one backup and add them under Advanced options on the last step. Both editors have an "Edit contents as text" view, so you can paste these lines:
--send-http-url=https://push.tg/k3x9q --send-http-message-parameter-name=data --send-http-message=Duplicati %OPERATIONNAME% of %backup-name% on %machine-name%: %PARSEDRESULT%
Why the middle line matters: Duplicati sends the report as a form field, and that field is called message by default. push.tg reads a field called data, so rename it once and every report gets through cleanly.
The %...% placeholders are filled in by Duplicati. %PARSEDRESULT% becomes Success, Warning or Error; %backup-name% and %machine-name% tell you which job and which box.
Step 3: only hear about problems
By default a report goes out after every backup. To get Telegram messages only when something needs a look, add:
--send-http-level=Warning,Error,Fatal
Leave it at the default (All) for the first few days if you want to see that the reports really arrive, then switch.
Want the log too?
Add %RESULT% to the message to include the backup log, for example:
--send-http-message=Duplicati %backup-name%: %PARSEDRESULT% %RESULT%
It's handy for errors but makes long messages, so most people keep the one-line version and open the Duplicati UI when a warning shows up.
Step 4: test it
Run the backup once by hand (Run now) and watch Telegram. If nothing shows up, check the address with curl first:
curl -d "test from $(hostname)" https://push.tg/k3x9q
One chat per server or per team
Each Telegram chat or group gets its own push.tg address. Give the home NAS backup one address and the office server another, and they never mix.
Check that the message really arrived. push.tg answers HTTP 200 even when the key is wrong; the body then says {"error":"no such user"}. Send one test by hand and look at Telegram before you trust it:
Official references: Duplicati docs: Sending HTTP notifications and Duplicati docs: Custom message content.