Удалить setWebhook.sh
This commit is contained in:
parent
334e8fb793
commit
0b8f37f19b
@ -1,16 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
TOKEN=""
|
|
||||||
URL="bill.DOMAIN.ru"
|
|
||||||
SHM_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/shm/v1/telegram/bot/$SHM_TEMPLATE\",
|
|
||||||
\"allowed_updates\": []
|
|
||||||
}"
|
|
||||||
Loading…
Reference in New Issue
Block a user