Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Telegram: Timed out Error #441

Open
IgorC601 opened this issue Mar 28, 2024 · 1 comment
Open

Telegram: Timed out Error #441

IgorC601 opened this issue Mar 28, 2024 · 1 comment

Comments

@IgorC601
Copy link

Everytime i try to run the code of this repo using Docker Compose i get the following error: telegram.error.TimedOut: Timed out
I tried using it outside of docker and it ran fine (the code for the database didnt but that was expected) but everytime i try to run it with docker it doesn't work.

Has anyone else got this error and was able to solve it?

@strydex
Copy link

strydex commented May 1, 2024

Everytime i try to run the code of this repo using Docker Compose i get the following error: telegram.error.TimedOut: Timed out I tried using it outside of docker and it ran fine (the code for the database didnt but that was expected) but everytime i try to run it with docker it doesn't work.

Has anyone else got this error and was able to solve it?

try changing:

update only when 100 new symbols are ready

            if abs(len(answer) - len(prev_answer)) < 100 and status != "finished":

with:

update only when 200 new symbols are ready

            if abs(len(answer) - len(prev_answer)) < 200 and status != "finished":

Basically You can find two strings with these parameters in bot.py, so as I understood this error appears espesically in group chats, and extending update time value actually helped me. It worked and I don't get such an error anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants