Библиотека для разработки чат-бото с помощью 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.5.tar.gz
(24.9 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.5-py3-none-any.whl
(56.5 kB
view details)
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b944b98d10e849b289fa20b10bced5062d21e54acc689a8d54a665693a228ca2
|
|
| MD5 |
f3a48383554df7a9c7044f364bba374b
|
|
| BLAKE2b-256 |
bde9b105c1f12407e36f1130b90d3699ecc1d92938bbcf276f48301cd46e67b2
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7ef56a5530fdb76c7c433e24269b7741ca76760ef254e874d9615dfa8ccd78e5
|
|
| MD5 |
4b00cca33eb317c81d9c656f13ae6745
|
|
| BLAKE2b-256 |
b0c19ec034640455cd3c562c797abf09a6cf45d711015f5a0b005c1d77da1bcf
|