cyclic-software / starter-telegram-bot

Cyclic starter telegram bot
MIT License
74 stars 2.64k forks source link

how to perform step 3 on windows pc? #4

Open askfriends opened 1 year ago

askfriends commented 1 year ago

im on windows 11 pc, so how can i perform step 3 which says "Step 3 — Link the bot with your new server" ?

plz help

fardezh commented 1 year ago

It's pretty simple using the windows PowerShell and Curl, First you need to install Curl, Here is the complete guide on how to install curl on windows.

Then Just open Windows PowerShell and run this script (of course after you changed the variables):

$TELEGRAM_API_TOKEN = # YOUR TELEGRAM API TOKEN
$TELEGRAM_WEBHOOK_URL = # YOUR CYCLIC DEPLOYMENT URL

curl "https://api.telegram.org/bot$TELEGRAM_API_TOKEN/setWebhook?url=$TELEGRAM_WEBHOOK_URL"