aigic8 / telefiles-backend

Backend of TeleFiles project
0 stars 0 forks source link

Support different errors that may happen in Login, Code and... processes #6

Open aigic8 opened 10 months ago

aigic8 commented 10 months ago

Currently we do not support and react to different errors that can happen during Telegram processes. To fix this issue, we need to re-export the errors from the tc.py and then check them in FastAPI routes and return the correct response.

aigic8 commented 10 months ago

We create add an special Exception called TCClientValueException to know that the fault was from the client and send the message to the client. This way we will handle different possible errors complexities in the TC module.