Is there any function to get error descriptions, such as telebot_get_error_description?
One more thing: currently, telebot_get_updates returns TELEBOT_ERROR_OPERATION_FAILED when there are no new messages. However, this makes it impossible to determine whether there are simply no messages or if an actual error has occurred.
Hi,
Thanks for this great library.
I'm trying to get a detailed error description when an error occurs.
For testing purposes, I used an incorrect bot token and attempted to receive new messages as shown below:
The returned value is TELEBOT_ERROR_OPERATION_FAILED, but I need more detailed information, like what is printed in my debugging console:
[ERROR][telebot_core_curl_perform:145] HTTP error: 401 - "Unauthorized"
Is there any function to get error descriptions, such as telebot_get_error_description?
One more thing: currently, telebot_get_updates returns TELEBOT_ERROR_OPERATION_FAILED when there are no new messages. However, this makes it impossible to determine whether there are simply no messages or if an actual error has occurred.