Skip to main content

Full-featured Telegram client library for Python 3, forked for userbot use

Project description

Telethon-MCUB is a maintained Telethon fork for MCUB and userbot-oriented workloads. The Python import path remains telethon, but the package name for installation and publishing is Telethon-MCUB.

Installation

Install the base package:

pip install -U Telethon-MCUB

Install with optional extras:

pip install -U "Telethon-MCUB[cryptg]"
pip install -U "Telethon-MCUB[socks]"
pip install -U "Telethon-MCUB[media]"
pip install -U "Telethon-MCUB[speedups]"
pip install -U "Telethon-MCUB[all]"

Optional extras:

  • cryptg for faster encryption/decryption.

  • socks for proxy support through python-socks[asyncio].

  • media for image resizing and media metadata extraction via pillow and hachoir.

  • speedups for faster gzip handling through isal.

  • all to install every optional dependency listed above.

Quick Start

from telethon import TelegramClient, events, sync

api_id = 12345
api_hash = "0123456789abcdef0123456789abcdef"

client = TelegramClient("session_name", api_id, api_hash)
client.start()

print(client.get_me().stringify())
client.send_message("username", "Hello from Telethon-MCUB")

@client.on(events.NewMessage(pattern="(?i)hi|hello"))
async def handler(event):
    await event.respond("Hey!")

Fork Notes

  • The package is published as Telethon-MCUB, but existing code should keep importing telethon.

  • MCUB-specific changes and release history are tracked in CHANGELOG.md.

  • Core Telethon concepts and API documentation are still largely applicable: https://docs.telethon.dev

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

telethon_mcub-1.43.15.tar.gz (718.2 kB view details)

Uploaded Source

Built Distribution

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

telethon_mcub-1.43.15-py3-none-any.whl (792.1 kB view details)

Uploaded Python 3

File details

Details for the file telethon_mcub-1.43.15.tar.gz.

File metadata

  • Download URL: telethon_mcub-1.43.15.tar.gz
  • Upload date:
  • Size: 718.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for telethon_mcub-1.43.15.tar.gz
Algorithm Hash digest
SHA256 900fdef6e18e682736ce857e6d851702bd46a71e72c35d9d696d77986292339b
MD5 c4864e5c7d621d970d6309f3d07fdbf7
BLAKE2b-256 0c3101f46bb3119458e57e02dcbaa0df2cc0d90c9479944a4ec28754559219d0

See more details on using hashes here.

File details

Details for the file telethon_mcub-1.43.15-py3-none-any.whl.

File metadata

File hashes

Hashes for telethon_mcub-1.43.15-py3-none-any.whl
Algorithm Hash digest
SHA256 4775a85256bb6666a4c10683d3532be3ab352846ea84de8baec094e7bfe0469a
MD5 d9c55b93f7a5d5ab3e18f060121c1ac9
BLAKE2b-256 f70ad2db153b3ef1f37e3c6663ba3afd6baf520d0c2fd3905f246c06f20fef26

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