Skip to main content

🎌 MadMax

Unofficial Async Client for MAX Messenger (OneMe platform)
Developed by CTRLJapan

PyPI - Version Python License

MadMax is a reverse-engineered Python library for interacting with the Russian national messenger MAX (backend: oneme.ru).
It allows you to receive messages and events via WebSocket without using a browser.


📦 Installation

Since you are cool enough to use the command line:

pip install madmax

🚀 Quick Start

import asyncio
from madmax import Client

# See "How to get credentials" below
TOKEN = "YOUR_TOKEN_HERE"
DEVICE_ID = "YOUR_DEVICE_ID"

client = Client(token=TOKEN, device_id=DEVICE_ID)

@client.event
async def on_message(message):
    print(f"[{message.sender_id}] says: {message.text}")

if __name__ == "__main__":
    client.run()

🔑 How to get credentials

Since MAX does not have an open API, you need to borrow your own session credentials from the browser.

  1. Open web.max.ru in Chrome/Edge.
  2. Log in to your account.
  3. Open Developer Tools (F12).
  4. Go to Application tab -> Local Storage -> https://web.max.ru.
  5. Find and copy values for:
  • __oneme_auth -> This is your TOKEN.
  • __oneme_device_id -> This is your DEVICE_ID.

Warning: Do not share your token with anyone. It gives full access to your account.

⚠️ Disclaimer

This project is for educational purposes only.

  • This is not an official client.
  • Using self-bots might violate the Terms of Service of the platform.
  • The author (CTRLJapan) is not responsible for any bans or limitations applied to your account.

Release files for madmax 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for madmax 0.0.3
File Size Uploaded
madmax-0.0.3.tar.gz 5.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for madmax 0.0.3
File Interpreter ABI Platform
madmax-0.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 13.4 kB

Release files / madmax-0.0.3.tar.gz

Download URL madmax-0.0.3.tar.gz
Size 5.7 kB
Tags Source
SHA-256 checksum
How to use checksums
e0258b441587e238c6e62d26e8a186ec51b7bd9dfd14bc26c509094d8cd4d01b
BLAKE2b-256 checksum
How to use checksums
25e47154ccfa51a94363944fc519d3d28111479fcb8bf577465ad00ecaa889da
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.8

Release files / madmax-0.0.3-py3-none-any.whl

Download URL madmax-0.0.3-py3-none-any.whl
Size 7.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1f848146b56abcc7589a2a9ef26d92461fbb6055229b3190b628c179547001a3
BLAKE2b-256 checksum
How to use checksums
ca91702d7570a803ed71c69c9b4bd5a1ba7ae352b340b7caf9f57ed0fc7860e7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.8

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page