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.5.tar.gz (24.9 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.5-py3-none-any.whl (56.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for maxapi-0.5.tar.gz
Algorithm Hash digest
SHA256 b944b98d10e849b289fa20b10bced5062d21e54acc689a8d54a665693a228ca2
MD5 f3a48383554df7a9c7044f364bba374b
BLAKE2b-256 bde9b105c1f12407e36f1130b90d3699ecc1d92938bbcf276f48301cd46e67b2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: maxapi-0.5-py3-none-any.whl
  • Upload date:
  • Size: 56.5 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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 7ef56a5530fdb76c7c433e24269b7741ca76760ef254e874d9615dfa8ccd78e5
MD5 4b00cca33eb317c81d9c656f13ae6745
BLAKE2b-256 b0c19ec034640455cd3c562c797abf09a6cf45d711015f5a0b005c1d77da1bcf

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