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.2.tar.gz (2.6 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.2-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: madmax-0.0.2.tar.gz
  • Upload date:
  • Size: 2.6 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.2.tar.gz
Algorithm Hash digest
SHA256 0408afc0f49e6677cef247ac0f8b9b9620c7edff9c19d622f33b28eb64541ec7
MD5 219c4e63c8c434a457eb897e2ed910ea
BLAKE2b-256 f7cd99a692acb8b7a38a60598f887b85d1888c651fe452db08bacd85ab82f0b9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: madmax-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 3.2 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0ed974a1dd09e043a2d47f7eeac56387bd59a886afbd1e5f6de541304f8aa9c1
MD5 94ccbf6d07c94e652378598b3bc9e778
BLAKE2b-256 1ac72e9f1f7c4b508dd398f79a7bad73c3e142d745ccc95aa436288ee0c02b40

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