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 bot management in non-stable networks #7

Closed
DelphiMan68 opened this issue Sep 8, 2023 · 2 comments
Closed

Telegram bot management in non-stable networks #7

DelphiMan68 opened this issue Sep 8, 2023 · 2 comments

Comments

@DelphiMan68
Copy link

Hello Sir and thanks for your great work,
I have a question that has been bothering me for several hours.

Question:

The program works properly as long as the connection to the Telegram server is established, but if for any reason the connection is interrupted for even a moment and then it is established, it will no longer be able to respond to the requests that are sent from clients. What is your solution to solve this problem?

@DelphiMan68
Copy link
Author

I found the solution!
The "OnLog" of "TInjectTelegramExceptionManagerUI" component must exist, otherwise there will be a problem in the program execution process and the program will not be able to respond to incoming requests.
Please update library for fixing this bug.
Thank you :)

@dieletro
Copy link
Owner

In addition to the Onlog event, you also have the OnDisconect event in the TInjectTelegramBot component which is capable of intercepting the disconnection or loss of internet signal and with this you can place a Time count to wait for reconnection among other forms of Bot stability control that can be used in this event.

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