Send backup notifications via telegram using Duplicacy Utils Telegram Bot

scripting

#1

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 https://duplicacy-utils.tbp.land/userUpdate 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 "https://duplicacy-utils.tbp.land/userUpdate"

Scripts and utilities index