Send backup notifications via telegram using Duplicacy Utils Telegram Bot



Duplicacy Utils Telegram Bot

I created a telegram bot to use for my duplicacy-utils scripts, but then i though you can use it from any of your scripts (as long as you use telegram and want to be notified :stuck_out_tongue:).

The github link is: Duplicacy Utils Telegram Bot, but there’s no need to look there since that’s the server side!

How to use

  1. get the telegramToken from @DuplicacyUtilsTBPBot
  2. send a Post request to with the body containing a json encoded string with 2 fields:
    • content containing a string with your message
    • chat_id containing the telegram token from before

Example of usage in powershell:

$payload = @{
  content = "Write anything <code>>>lalalal &m_a5</code> $#@%&**&^% <i>you</i> may <b>want</b>"
  chat_id = 1234567890

Invoke-WebRequest `
  -Body (ConvertTo-Json -Compress -InputObject $payload) `
  -Method Post `
  -Uri ""

Scripts and utilities index