Otann / morse

📡 Clojure interface for Telegram Bot API
Eclipse Public License 1.0
257 stars 48 forks source link

403 Forbidden: bot was blocked by the user #53

Open zackteo opened 4 years ago

zackteo commented 4 years ago

Someone using my bot seemed to have blocked it and is throwing this error whenever I try to restart the server. Is there a way to handle this?

marksto commented 3 years ago

Hi @zackteo! This seems to be a legal HTTP status resulting in a clj-http exception that you could catch on your side and process according to the business logic of your application. Nevertheless, I'll take a look and think about what can be done here. This may go away with the upcoming improvements to the error logging/propagation.

zackteo commented 3 years ago

Hi @marksto ! Awesome! Btw, are you planning to start maintaining this repo again? (Cause it appeared to me from an outside perspective that the main author was uncontactable)

Otann commented 3 years ago

The main author had a tough year changing one city, two jobs and four apartments 😔 @marksto generously offered his help and is contributing now!

And sorry for the lack of attention to the repo

marksto commented 2 years ago

@zackteo hello again! If you are still looking for a more complete Clojure client library for the Telegram Bot API, there is one that covers 100% of the available methods and exposes a consistent API. It also implements a meticulous error handling that helps the client code distinguish between the unsuccessful requests (in terms of the Bot API) and other possible errors.