Translations:Rule Examples/228/en

<syntaxhighlight lang="ecmascript"> varmessage = "Text"; // write your message text var token = "TOKEN"; // replace with bot token var chat_id = CHATID; // replace with your chat_id var command = 'curl -s -X POST https://api.telegram.org/bot{}/sendMessage -d chat_id={} -d text="{}"'.format(token, chat_id, message);