Разработка ботов Telegram
дистанционно
договорная
Задачи чат-бота: сбор информации, ТГ бот. Продукт: Парсер чатов. Техзадания нет. Починить авторизацию в телеграм акке по номеру телефона. TYPE: Telegram bot LANGUAGE: Python 3 === CORE STACK === - aiogram 3.5.0 (Telegram Bot API, routers, FSM) - Telethon 1.34.0 (user sessions / MTProto) - FastAPI ~0.104.0 (HTTP endpoint for payment notifications) - GINO 1.0.1 + SQLAlchemy 1.3.24 (async ORM/data layer) - asyncpg 0.28.0 (PostgreSQL driver) - python-socks 2.3.0 / PySocks (SOCKS5 proxy transport) - aiohttp 3.9.0 (HTTP client under aiogram) - pydantic + pydantic-settings (configuration model) - python-dotenv (environment loading) === MAIN ENTRYPOINTS === - app.py: main bot process, DB bind, dispatcher startup, polling loop with network backoff. - server_main.py: FastAPI endpoint /payment_notification/ for payment callbacks. === PROJECT MODULES === - handlers/: business logic (users/admin/parser/premium flows) - middlewares/: update/user/log middlewares - keyboards/: inline/reply keyboard builders - clients/: telegram client/session management - utils/db_api/: DB commands, schema models, services - data/: runtime config, constants, session storage directory - proxy.py: proxy pool selection and release logic - File: handlers/users/premium/authorization.py - Dedicated SOCKS5 proxy is configured for auth flow. - SOCKS5 remote DNS is enabled (rdns=True). - Connection type is explicitly set (ConnectionTcpFull). - Timeout/retry behavior is tuned to avoid infinite hangs: - per-attempt connect timeout wrapper - controlled retry loop in connect_with_retry() - callback answer calls are wrapped via safe_api_call to avoid "query is too old" crashes. === DATABASE === - PostgreSQL is used as main storage. - GINO models are in utils/db_api/schemas/user.py. - DB helper modules include: - access/admin/mailing/referral/user/wo_link command files - services.py for additional helpers.
2026-04-26
Откликнуться