Skip to content
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

Add new exceptions: bot was blocked by the user, chat not found #89

Open
antimech opened this issue Aug 6, 2020 · 0 comments
Open

Add new exceptions: bot was blocked by the user, chat not found #89

antimech opened this issue Aug 6, 2020 · 0 comments

Comments

@antimech
Copy link
Contributor

antimech commented Aug 6, 2020

It would be cool not to handle such errors manually.

Here is an example of Telegram response after trying to send a message to a user that blocked your bot:
HTTP 403

{
  "ok": false,
  "error_code": 403,
  "description": "Forbidden: bot was blocked by the user"
}

Chat doesn't exist (i.e. user doesn't exist):
HTTP 400

{
  "ok": false,
  "error_code": 400,
  "description": "Bad Request: chat not found"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant