Добавить setWebhook.sh
This commit is contained in:
parent
0b8f37f19b
commit
2c4d162949
16
setWebhook.sh
Normal file
16
setWebhook.sh
Normal file
@ -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\": []
|
||||
}"
|
||||
Loading…
Reference in New Issue
Block a user