Telegram setWebhook with curl
·34 words·1 min
telegram

first, you can check current Webhook information 1:
curl -v https://api.telegram.org/botTOKEN/getWebhookInfo
replace TOKEN with your bot token, keep the “bot” before the TOKEN.
then setWebhook with:
curl -v -F "url=https://your.webhook.url" https://api.telegram.org/botTOKEN/setWebhook
that’s all.