Telegram Webhook Notifications

senati

New Member
Jan 25, 2025
2
1
3
I configured the Telegram bot to send messages about the backup job and manual backup, but I'm not receiving them on Telegram.
When I send the test message, I receive it successfully.

I would just like to receive notification whether the backup was successful or not.

Could you help me with the solution?
 

Attachments

  • 1.png
    1.png
    78.7 KB · Views: 118
  • 2.png
    2.png
    30 KB · Views: 102
  • 3.png
    3.png
    40.5 KB · Views: 96
  • 4.png
    4.png
    41.3 KB · Views: 89
  • 5.png
    5.png
    126.9 KB · Views: 101
Confirmed. I got the same behaviour. Seems when is a job where multiple VM/LXC are on the same node (finished with an error or successful). I tested at the office 8 node cluster (proxmox 8.3.3) and at home with a single node (proxmox 8.3.3).

BTW, thanks! I wanted to know if is possible (and how) with Telegram and I found your post.
 
Last edited:
I managed to resolve the error, I just had to reduce the content of the message, Telegram has a character limit.
 
  • Like
Reactions: aabraham
I managed to resolve the error, I just had to reduce the content of the message, Telegram has a character limit.
Thank you for posting your solution. This could be helpful to others, too. :)
 
As a temporary solution, you can edit the /usr/share/pve-manager/templates/default/vzdump-body.txt.hbs file (after creating a backup copy).

The contents of the file look like:
Code:
{{error-message}}
Details
=======
{{table guest-table}}
Total running time: {{duration total-time}}
Total size: {{human-bytes total-size}}

Logs
====
{{logs}}

Delete lines in the file:
Code:
Logs
====
{{logs}}

In this case, the backup report will not contain detailed logs about each VM. In my opinion, this is not always necessary in reports.

It is important to remember that this file may be overwritten during a system update!!!