topkecleon / telegram-bot-bash

Telegram bot written in bash
Other
426 stars 123 forks source link

Why telegram-bot-bash is too slow respond? #180

Closed manuksia closed 3 years ago

manuksia commented 3 years ago

I have tried many times to run my telegram-bot-bash and sent some message to my bot. But the respond was too slow .

gnadelwartz commented 3 years ago

Bashbot is polling telegram for updates in default mode and uses adaptive waiting to avoid polling telegram to often. Try to set 'BASHBOT_SLEEP' to '1' before starting bashbot, this set the maximum wait time to 1s, e.g.:

BASHBOT_SLEEP=1
./bashbot.sh start