Send Telegram bot messages with Cloudflare workers
-
Create a cloudflare workers
-
Copy the code in workers.js to the workers
-
Fill in your Telegram Bot Token and your Chat ID
-
Send GET request to your workers URL
https://yourworkersname.yourcloudflarename.workers.dev/?title=Title&msg=test_message
Note: The script uses MarkdownV2 as default parse mode, if you want to use plain text or HTML, you need to modify the title bold symbol(**) at line 46.