MAX USER API
С данным API вы можете присоеденить ваш аккаунт в максе к Python скрипту. Доступен хандлер для отслеживания приходящих сообщений:
from maxuserapi import Client as MaxClient
max_app = MaxClient("test")
@max_app.on_message(chat_id=max_app.favourite)
async def favourite_handler(client: MaxClient, message: Message):
if message.text.startswith("Привет!"):
await message.reply(text="Привет! Я твой юзербот!")
Авторизация
Для авторизации вам понадобится телефон, потому что нужно сканировать QR-код, который будет выслан в консоль перед запуском бота. После авторизации будет создана сессия и последующие влючения не потребуют входа в аккаунт.
█▀▀▀▀▀█ ▄ ▀ ▄▄ █▀█▄█▀▄ █▀▀▀▀▀█
█ ███ █ ██ ▄ ▀▀ ▄▄██▀▀▀█ █ ███ █
█ ▀▀▀ █ █ ▄▄▀▀█▀▀▄▄▀▄██▀█ █ ▀▀▀ █
▀▀▀▀▀▀▀ █▄▀ ▀ █ █ ▀ █▄█ ▀ ▀▀▀▀▀▀▀
▀▄█▀▀█▀ ▄ █▄▀█▄ ▀▀▄▄ ▀ ██▀██▄▄
▀█ ▀▄▄█ ██▀█▀ ▄ █ ▄▀▀▄ █▄█▄▄
███ ▀▀ ██▀ ▄▀█▀▀▀█▀ ▀█▄ ▄▀▀█▄▄▄
▀▄ ▀█▀▀▄▀█ ▀███▀▀▄ ▄▄█ ████ ▀▄▀
▄█▀▀ ▀▄▀ ▄█▄█▄▀▀▄▀▄▄▄▀██▀▄█▀▄▄▄█
▀█▀▄▀ ▀▀▀▀█▀█ ██▀▀ ▄█▀ ██▀██▄█ ▄
▄▀█▄▄▄▀█▄█▄█▀ █▄▀▀▄▄ ▄█▄▀▄▄▀█ ▄
█ ▀▀█ ▀ ▀ █ ▀▀ ▄ ▀▄█▀ █▀▀ ▀██
▀ ▀▀ ▀ ▄▄ ▀ █ ▄▀▀▄█ ▀▄█▀▀▀█▀▄ █
█▀▀▀▀▀█ ▄████ ▀▀ █ ██▄██ ▀ █▄█▀▄
█ ███ █ █▄ ▀ ▀▀█ ▀▄▄▄▄▄▄██▀▀██▄█▄
█ ▀▀▀ █ ▀▀ ▀ ▀█▄ ▄▄█▄▀▀ ▀▀▄▄█
▀▀▀▀▀▀▀ ▀▀ ▀▀▀▀ ▀ ▀ ▀ ▀ ▀▀ ▀
[!] Отсканируйте код (trackId: cf12ca19-6b37-4d0t-b584-8d963de1470d)
Разработка
Данный API сейчас находится в разработке. Он использует подключение по WebSocket для отслеживания входящих сообщений. Предлагайте свои идеи, с удовольствием реализую.
Metadata
Release files for maxuserapi 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| maxuserapi-0.1.3.tar.gz | 20.2 kB | Without provenance | Details for maxuserapi-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| maxuserapi-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for maxuserapi-0.1.3-py3-none-any.whl |
Total release size: 41.1 kB
Release files / maxuserapi-0.1.3.tar.gz
| Download URL | maxuserapi-0.1.3.tar.gz |
|---|---|
| Size | 20.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1fe31481150558536b844291bc5f968c89c418e53b99f5b543bae5ea3e2a8134
|
|
BLAKE2b-256 checksum How to use checksums |
d53c8374f224de633adb2ae7fcff8353a32268dec82ca16cba40bbebe3a55f2c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.1
|
Release files / maxuserapi-0.1.3-py3-none-any.whl
| Download URL | maxuserapi-0.1.3-py3-none-any.whl |
|---|---|
| Size | 20.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a9d5573dc2f653d0caad88726f2ad9fb95100c88d593efdccd43ca45c7cf6719
|
|
BLAKE2b-256 checksum How to use checksums |
1248df7d9f55367d3c74e47277f1e20984d6e380cf52db7183a109f6245136d6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.1
|
Security for maxuserapi 0.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.