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.