-
Notifications
You must be signed in to change notification settings - Fork 26
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
Feedback about sending messages - successful or not successful. #34
Comments
In order to check if message was succesfully delivered you have to wait response from Telegram server and this breaks the non-stopping working mode. For the moment I've done some quick fixes and you could solve this kind of workaround (after update library to latest release):
Then you can check if message was sent succesfully
|
Do I understand correctly that such a solution will block the controller code for a while? |
Yes a little.
|
I understand. Unfortunately, for me, the time of 140 ms can sometimes be critical. Therefore, I will not check the delivery of messages for the time being. Hope this can be fixed in the future. |
Hi @SergGrn. Aniway, regarding your specific needs, if timings are really really critical, i would suggest you to use ESP32 and run Telegram stuffs as a distinct parallel task thanks to the support for FreeRTOS. I can provide you a working example code, if you like. |
Hello. |
|
Sorry @SergGrn I have released the latest version just now 2.0.7 |
Hi @cotestatnt. |
Thanks @SergGrn for your detailed feedback. |
@SergGrn in the latest release, after send a message from bot, the library will look forward for feedback about the specific message id just sent.
|
@cotestatnt, thanks for the help! |
Hello.
Thank you very much for your work
AsyncTelegram2 and I'm very glad that there is no stopping the main code when working.
There is one important issue: when using myBot.sendTo(userid, welcome_msg) is there a feedback function that would return "true" to the controller if the message was successfully sent and "false" if the message was not sent?
For me it is very important that if the message was not sent, resend until it is successfully sent.
Thanks!
The text was updated successfully, but these errors were encountered: