Skip to main content

Unofficial Async Client for MAX Messenger (OneMe)

Project description

🎌 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.

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

madmax-0.0.3.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

madmax-0.0.3-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

Details for the file madmax-0.0.3.tar.gz.

File metadata

  • Download URL: madmax-0.0.3.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.8

File hashes

Hashes for madmax-0.0.3.tar.gz
Algorithm Hash digest
SHA256 e0258b441587e238c6e62d26e8a186ec51b7bd9dfd14bc26c509094d8cd4d01b
MD5 35ff9f4e51727b0d83191c95c6e1ce77
BLAKE2b-256 25e47154ccfa51a94363944fc519d3d28111479fcb8bf577465ad00ecaa889da

See more details on using hashes here.

File details

Details for the file madmax-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: madmax-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 7.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.8

File hashes

Hashes for madmax-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 1f848146b56abcc7589a2a9ef26d92461fbb6055229b3190b628c179547001a3
MD5 588bf62a57148cc8f11324c725f64fc6
BLAKE2b-256 ca91702d7570a803ed71c69c9b4bd5a1ba7ae352b340b7caf9f57ed0fc7860e7

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