https://github.com/aiogram/telegram-exception-receiver
Receive and store actual Telegram exceptions
https://github.com/aiogram/telegram-exception-receiver
Last synced: 11 months ago
JSON representation
Receive and store actual Telegram exceptions
- Host: GitHub
- URL: https://github.com/aiogram/telegram-exception-receiver
- Owner: aiogram
- Created: 2020-10-04T12:28:08.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2020-10-05T10:50:08.000Z (over 5 years ago)
- Last Synced: 2024-10-29T23:59:59.541Z (about 1 year ago)
- Language: Python
- Size: 15.6 KB
- Stars: 3
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Telegram Exception Receiver
Receive and store actual Telegram exceptions
## Json Schema
```json
{
"title": "TelegramException",
"type": "object",
"properties": {
"code": {"title": "Code", "type": "integer"},
"name": {"title": "Name", "type": "string"},
"description": {"title": "Description", "type": "string"},
"required": ["code", "name", "description"]
}
}
```
## Post Json Example
To post an exception send POST request with json object to `http://{host}/exception` path.
E.g:
```json
{
"code": 400,
"name": "BadRequest",
"description": "Something went wrong!"
}
```
Also you can send a list of objects. E.g:
```json
[
{
"code": 400,
"name": "BadRequest",
"description": "Something went wrong!"
},
{
"code": 401,
"name": "AnotherBadRequest",
"description": "Something went wrong again!"
}
]
```
## Get exceptions
To get all stored exceptions send GET request to `http://{host}/exception` path.
Method will return a JSON with a list of exception objects.