Welcome to TeleLogger

TeleLogger allows you to send real-time log messages to any Telegram group using a simple HTTP API.

How it works

  1. Add the @teleloggersbot bot to your Telegram group.
  2. Send /start in the group to register it for logging.
  3. Use the HTTP API to POST log messages to your group.

Try the API

You can explore and test the API using our Swagger UI:

Open API Docs

Example Request

POST https://www.telelogger.com/log/{group_id}
Content-Type: application/json

{
  "content": {
    "msg": "App started successfully",
    "any_other_data": "is also accepted"
  }
}
    

Notes:

Need help using TeleLogger in your code?

Here's a prompt you can use with ChatGPT or any coding assistant:

I want to send logs to my Telegram group using the TeleLogger API.

TeleLogger API Info:
- Endpoint: POST https://www.telelogger.com/log/{group_id}
- Content-Type: application/json
- Body example:
  {
    "content": {
      "any": "structured",
      "logging": "data"
    }
  }

Requirements:
1. Show me how to send a log message using Python (preferably async using httpx).
2. Include basic error handling for 403 and 429.
3. Remind me to use /start to register the group first.

(Optional) Here's my existing code:
# Paste your code snippet for review