Files
wLocal/archive/tmessage.bat
2023-01-17 23:15:21 +00:00

15 lines
340 B
Batchfile

@echo off
set myname=%COMPUTERNAME%
echo "Found computer %myname%"
set DUFUS="1816161258:AAGNRS1t_ApXwAm0jJyms5H6H7BaJFPvyok"
set TCHATID="1462463122"
set MSG=bungler dungler
set STRING='%~1%'
curl -X POST -H 'content-type: application/json' -F "chat_id=%TCHATID%" -F "text=%STRING%" https://api.telegram.org/bot%DUFUS%/sendmessage