mirror of
https://github.com/octoleo/telegram-bot-bash.git
synced 2024-11-28 10:16:28 +00:00
modules: processUpdates: conflict webhook slow start
This commit is contained in:
parent
0dd5f83d5a
commit
a7c98d750c
@ -4,7 +4,7 @@
|
||||
# File: processUpdates.sh
|
||||
# Note: DO NOT EDIT! this file will be overwritten on update
|
||||
#
|
||||
#### $$VERSION$$ v1.40-dev-18-g342a5da
|
||||
#### $$VERSION$$ v1.40-dev-19-g0dd5f83
|
||||
##################################################################
|
||||
|
||||
##############
|
||||
@ -350,6 +350,7 @@ get_updates(){
|
||||
UPDATE="${UPDATE//$/\\$}"
|
||||
# warn if webhook is set
|
||||
if grep -q '^\["error_code"\] 409' <<<"${UPDATE}"; then
|
||||
[ "${OFFSET}" != "-999" ] && nextsleep="${stepsleep}"
|
||||
OFFSET="-999"; errsleep="$(_round_float "$(( errsleep = 200 * nextsleep ))e-3" "1")"
|
||||
log_error "Warning conflicting webhook set, can't get updates until delete_webhook! Sleep ${errsleep}s ..."
|
||||
sleep "${errsleep}"
|
||||
|
Loading…
Reference in New Issue
Block a user