diff --git a/setWebhook.sh b/setWebhook.sh new file mode 100644 index 0000000..77c741d --- /dev/null +++ b/setWebhook.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +TOKEN="" +URL="bill.DOMAIN.ru" +IVCM_TEMPLATE="telegram_bot" + +curl https://api.telegram.org/bot${TOKEN}/deleteWebhook?drop_pending_updates=True + +curl -X POST \ + -H 'content-type: application/json' \ + https://api.telegram.org/bot${TOKEN}/setWebhook \ + -d " +{ + \"url\": \"https://$URL/ivcm/v1/telegram/bot/$IVCM_TEMPLATE\", + \"allowed_updates\": [] +}" \ No newline at end of file