Skip to main content

Библиотека для разработки чат-ботов с помощью API мессенджера MAX

Project description

Асинхронный MAX API

PyPI version Python Version License


📦 Установка

pip install maxapi

🚀 Быстрый старт

import asyncio
import logging

from maxapi import Bot, Dispatcher
from maxapi.types import BotStarted, Command, MessageCreated

logging.basicConfig(level=logging.INFO)

bot = Bot('тут_ваш_токен')
dp = Dispatcher()


@dp.bot_started()
async def bot_started(event: BotStarted):
    await event.bot.send_message(
        chat_id=event.chat_id,
        text='Привет! Отправь мне /start'
    )


@dp.message_created(Command('start'))
async def hello(event: MessageCreated):
    await event.message.answer(f"Пример чат-бота для MAX 💙")


async def main():
    await dp.start_polling(bot)


if __name__ == '__main__':
    asyncio.run(main())

📚 Документация

В разработке...


🧩 Возможности

  • ✅ Роутеры
  • ✅ Билдер инлайн клавиатур
  • ✅ Простая загрузка медиафайлов
  • ✅ MagicFilter
  • ✅ Внутренние функции моделей
  • ✅ Контекстный менеджер
  • ✅ Поллинг
  • ✅ Вебхук
  • ✅ Логгирование

💬 Обратная связь и поддержка


📄 Лицензия

Этот проект распространяется под лицензией MIT. См. файл LICENSE для подробностей.

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

maxapi-0.7.tar.gz (39.4 kB view details)

Uploaded Source

Built Distribution

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

maxapi-0.7-py3-none-any.whl (86.3 kB view details)

Uploaded Python 3

File details

Details for the file maxapi-0.7.tar.gz.

File metadata

  • Download URL: maxapi-0.7.tar.gz
  • Upload date:
  • Size: 39.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.0

File hashes

Hashes for maxapi-0.7.tar.gz
Algorithm Hash digest
SHA256 6313173f245cc7de932cfee04071bf8a5291044f717ea691e9b4440df9942557
MD5 d86e734d9849ff3b0b940e8506d69f1c
BLAKE2b-256 9c0e35164be64907728bb661773de96c262292cc0ccd9abc460e0bc17c86b7b9

See more details on using hashes here.

File details

Details for the file maxapi-0.7-py3-none-any.whl.

File metadata

  • Download URL: maxapi-0.7-py3-none-any.whl
  • Upload date:
  • Size: 86.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.0

File hashes

Hashes for maxapi-0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 92a2261c53ffa187fbc64349242f45e4fce5a025832d9ae3308e9e0637f680bc
MD5 bc462636da421ac2b46b82623ca09507
BLAKE2b-256 bc5d84bbe009b50754ee932a96c8f026fc7fad8b143b4620d70c7bcdbc94ae0e

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