-
I am using polling() in a while loop, so I can make my own logging and exception handling system. It catches all exceptions and handles them except for telegram API exception. If telegram API exception occurs, my bot just crashes, because try... except... does not catch this exception. How am I supposed to catch telegram API exception? |
Beta Was this translation helpful? Give feedback.
Answered by
Badiboy
Oct 31, 2024
Replies: 1 comment
-
Pass your exception handler to Telebot (exception_handler...) to catch whatever you want. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
mifizz
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Pass your exception handler to Telebot (exception_handler...) to catch whatever you want.