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.19.tar.gz (717.1 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.19-py3-none-any.whl (795.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for telethon_mcub-1.43.19.tar.gz
Algorithm Hash digest
SHA256 dcaeffc5e07a360eb0fb47c1b57d3bbca8e1b1e3cb06dc014b427115cdfde163
MD5 358ae5a01cfbcf74fdb10d956c506f08
BLAKE2b-256 93f385f72318ea00821c0e7c4373c9d2cd324459b0e45154d2ef885f5bc48171

See more details on using hashes here.

File details

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

File metadata

  • Download URL: telethon_mcub-1.43.19-py3-none-any.whl
  • Upload date:
  • Size: 795.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for telethon_mcub-1.43.19-py3-none-any.whl
Algorithm Hash digest
SHA256 092833526a35166804fbc45b58fd362cc1a9a5b3874576c31a2183e8326387d8
MD5 5741696612d85eccc8d5774f2df1667b
BLAKE2b-256 c40cf9516612da1a913129d408b49c87a3f1c12a46d6f91004aef984073b5b39

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