Skip to content

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

@antimech

Description

@antimech

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"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions