We're using Telegram notifications to get status of our Virtual Machines and other services using PRTG Monitoring Tool.
curl -X POST https://api.telegram.org/<BOT_ID>/sendMessage -d 'chat_id=<CHAT_ID>&parse_mode=Markdown&text=%lastmessage %linksensor %since %group %device'
{"ok":false,"error_code":400,"description":"Bad Request: text must be encoded in UTF-8"}
It is necessary for us to use "%device" value as it points to a PRTG Internal Variable.
Also encountered this. If you use the synonym placeholder %server instead of %device, then everything starts working.