mirror of
https://github.com/octoleo/telegram-bot-bash.git
synced 2024-09-21 21:29:01 +00:00
doc: NOT IMPLEMENTED modules: improve webbhok message
This commit is contained in:
parent
91a143ab15
commit
737be16b3f
@ -46,6 +46,8 @@ Bashbot on every update, it's more responsive and create less server load for a
|
|||||||
|
|
||||||
#### High traffic processing
|
#### High traffic processing
|
||||||
|
|
||||||
|
#### CURRENTLY NOT IMPLEMENTED
|
||||||
|
|
||||||
High traffic processing writes Telegram updates to the named pipe `data-bot-bash/webhook-fifo`
|
High traffic processing writes Telegram updates to the named pipe `data-bot-bash/webhook-fifo`
|
||||||
and Bashbot poll them, this is much more efficient than polling Telegram server.
|
and Bashbot poll them, this is much more efficient than polling Telegram server.
|
||||||
|
|
||||||
@ -72,5 +74,5 @@ To stop delivering of Telegram updates via webhook run `bin/any_command.sh delet
|
|||||||
**Important**: Only https connections with a valid certificate chain are allowed as endpoint for webhook.
|
**Important**: Only https connections with a valid certificate chain are allowed as endpoint for webhook.
|
||||||
|
|
||||||
|
|
||||||
#### $$VERSION$$ v1.40-dev-22-g6754273
|
#### $$VERSION$$ v1.40-dev-28-g91a143a
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
# File: processUpdates.sh
|
# File: processUpdates.sh
|
||||||
# Note: DO NOT EDIT! this file will be overwritten on update
|
# Note: DO NOT EDIT! this file will be overwritten on update
|
||||||
#
|
#
|
||||||
#### $$VERSION$$ v1.40-dev-23-g4e7b305
|
#### $$VERSION$$ v1.40-dev-28-g91a143a
|
||||||
##################################################################
|
##################################################################
|
||||||
|
|
||||||
##############
|
##############
|
||||||
@ -352,7 +352,7 @@ get_updates(){
|
|||||||
if grep -q '^\["error_code"\] 409' <<<"${UPDATE}"; then
|
if grep -q '^\["error_code"\] 409' <<<"${UPDATE}"; then
|
||||||
[ "${OFFSET}" != "-999" ] && nextsleep="${stepsleep}"
|
[ "${OFFSET}" != "-999" ] && nextsleep="${stepsleep}"
|
||||||
OFFSET="-999"; errsleep="$(_round_float "$(( errsleep= 300*nextsleep ))e-3")"
|
OFFSET="-999"; errsleep="$(_round_float "$(( errsleep= 300*nextsleep ))e-3")"
|
||||||
log_error "Warning conflicting webhook set, can't get updates until delete_webhook! Sleep $((errsleep/60)) min ..."
|
log_error "Warning conflicting webhook set, can't get updates until your run delete_webhook! Sleep $((errsleep/60)) min ..."
|
||||||
sleep "${errsleep}"
|
sleep "${errsleep}"
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user