Библиотека для разработки чат-ботов с помощью API мессенджера MAX
Project description
Асинхронный MAX API
📦 Установка
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
- ✅ Внутренние функции моделей
- ✅ Контекстный менеджер
- ✅ Поллинг
- ✅ Вебхук
- ✅ Логгирование
💬 Обратная связь и поддержка
- MAX: Чат
- Telegram: @loveappless
📄 Лицензия
Этот проект распространяется под лицензией MIT. См. файл LICENSE для подробностей.
Project details
Release history Release notifications | RSS feed
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.6.tar.gz
(40.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
maxapi-0.6-py3-none-any.whl
(86.3 kB
view details)
File details
Details for the file maxapi-0.6.tar.gz.
File metadata
- Download URL: maxapi-0.6.tar.gz
- Upload date:
- Size: 40.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c61d95d3756263fc89afc9e0594f8a5691da3634f6d82ec7364a96cce442deb0
|
|
| MD5 |
ce7b8450081685aed824540f1332a74c
|
|
| BLAKE2b-256 |
e2ffa1f215f522bcbbaea6aa292ac1e733391c58ed62dd5c517d55370a7a0a9d
|
File details
Details for the file maxapi-0.6-py3-none-any.whl.
File metadata
- Download URL: maxapi-0.6-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1e1ad3b1447c953d4bfc1d6a8fd3d2417836e43e24df9c41cf6669be943e056e
|
|
| MD5 |
35eee011dcf835490897e27e297b5509
|
|
| BLAKE2b-256 |
ddfddc082e14f6c0b24fb7764113143c58d7e340eb0246fd4831de201caff50e
|