Telegram Report Template

Hello

is there a way to customize the %RESULT% prompt under --send-telegram-message. I have currently entered there:

--send-telegram-message=Duplicati %OPERATIONNAME% Report for %backup-name%: %PARSEDRESULT% %RESULT%

and as output I get:

Duplicati Backup Report for Test: Success   
DeletedFiles: 0
DeletedFolders: 0
ModifiedFiles: 0
ExaminedFiles: 1480
OpenedFiles: 0
AddedFiles: 0
SizeOfModifiedFiles: 0
SizeOfAddedFiles: 0
SizeOfExaminedFiles: 477340669
SizeOfOpenedFiles: 0
NotProcessedFiles: 0
AddedFolders: 0
TooLargeFiles: 0
FilesWithError: 0
ModifiedFolders: 0
ModifiedSymlinks: 0
AddedSymlinks: 0
DeletedSymlinks: 0
PartialBackup: False
Dryrun: False
MainOperation: Backup
ParsedResult: Success
Interrupted: False
Fatal: False
Version: 2.1.0.5 (2.1.0.5stable2025-03-04)
EndTime: 7/6/2025 12:32:27 PM (1751797947)
BeginTime: 7/6/2025 12:32:23 PM (1751797943)
Duration: 00:00:03.6968749
MessagesActualLength: 12
WarningsActualLength: 0
ErrorsActualLength: 0
LimitedMessages: 
    2025-07-06 12:32:23 +02 - [Information-Duplicati.Library.Main.Controller-StartingOperation: The operation Backup has started,
    2025-07-06 12:32:23 +02 - Information-Duplicati.Library.Main.BasicResults-BackendEvent: Backend event: List - Started:  (),
    2025-07-06 12:32:24 +02 - Information-Duplicati.Library.Main.BasicResults-BackendEvent: Backend event: List - Completed:  (25 bytes),
    2025-07-06 12:32:26 +02 - Information-Duplicati.Library.Main.BasicResults-BackendEvent: Backend event: List - Started:  (),
    2025-07-06 12:32:26 +02 - Information-Duplicati.Library.Main.BasicResults-BackendEvent: Backend event: List - Completed:  (25 bytes),
    2025-07-06 12:32:26 +02 - Information-Duplicati.Library.Main.BasicResults-BackendEvent: Backend event: Get - Started: duplicati-20250628T080634Z.dlist.zip (131.441 KB),
    2025-07-06 12:32:26 +02 - Information-Duplicati.Library.Main.BasicResults-BackendEvent: Backend event: Get - Completed: duplicati-20250628T080634Z.dlist.zip (131.441 KB),
    2025-07-06 12:32:26 +02 - Information-Duplicati.Library.Main.BasicResults-BackendEvent: Backend event: Get - Started: duplicati-i70193b8e1935412383b303e0558c55b9.dindex.zip (8.424 KB),
    2025-07-06 12:32:26 +02 - Information-Duplicati.Library.Main.BasicResults-BackendEvent: Backend event: Get - Completed: duplicati-i70193b8e1935412383b303e0558c55b9.dindex.zip (8.424 KB),
    2025-07-06 12:32:26 +02 - Information-Duplicati.Library.Main.BasicResults-BackendEvent: Backend event: Get - Started: duplicati-b06f981b6a56044a28c37cc888beb02d6.dblock.zip (49.407 MB),
...
]
LimitedWarnings: 
LimitedErrors:

But I would like to shorten the output to the following content.

Duplicati Backup Report for Test: Success   
DeletedFiles: 0
DeletedFolders: 0
ModifiedFiles: 0
ExaminedFiles: 1480
OpenedFiles: 0
AddedFiles: 0
SizeOfModifiedFiles: 0
SizeOfAddedFiles: 0
SizeOfExaminedFiles: 477340669
SizeOfOpenedFiles: 0
NotProcessedFiles: 0
AddedFolders: 0
TooLargeFiles: 0
FilesWithError: 0
ModifiedFolders: 0
ModifiedSymlinks: 0
AddedSymlinks: 0
DeletedSymlinks: 0
PartialBackup: False
Dryrun: False
MainOperation: Backup
ParsedResult: Success
Interrupted: False
Fatal: False
Version: 2.1.0.5 (2.1.0.5stable2025-03-04)
EndTime: 7/6/2025 12:32:27 PM (1751797947)
BeginTime: 7/6/2025 12:32:23 PM (1751797943)
Duration: 00:00:03.6968749

I have tried to shorten the output using the send-telegram-max-log-lines function. No matter what number I enter here, nothing changes in the output.

Thanks for Help

That is because all the data is included in `%RESULT%, so the log lines just limit how many log lines to include.

Sadly we do not yet have a template system, which would let you get what you want.

The only workaround that I can think of is to add a script that can then read the result data and modify it to your liking, and then send it to Telegram.

Ok.
Thanks for answer.