AioScam Documentation

Async Python framework for Max messenger bots

PyPI Python 3.9+

Installation

pip install aioscam

Quick Start

from aioscam import Bot, Dispatcher, Router
from aioscam.filters import Command

dp = Dispatcher()
router = Router()

@router.message_created(Command("start"))
async def cmd_start(event):
    await event.answer("Привет!")

dp.include_router(router)

async def main():
    bot = Bot("YOUR_TOKEN")
    await dp.start_polling(bot)

Features

  • 🚀 Fully async - Built on asyncio and aiohttp

  • 🎯 aiogram-style API - Familiar decorators and patterns

  • 🔄 Router system - Modular bot architecture

  • 🎭 Magic Filters - Declarative event filtering

  • 📦 FSM - Finite state machine with MemoryStorage

  • 🛡️ StateGuard - Blocks unauthorized commands during FSM states

  • 🌐 Webhook support - aiohttp, FastAPI, Litestar

  • 📡 Polling mode - Long-polling with exponential backoff

Contents