GoyGram unifies Telegram Bot API and MTProto in one Python framework with Rust core
GoyGram is a new open-source Python framework for Telegram that runs both the Bot API and MTProto protocols within a single asyncio runtime, unlike existing libraries such as aiogram or Pyrogram which support only one protocol each. Its cryptographic operations and TL serialization are handled by a compiled Rust extension, delivering significantly faster import times and AES throughput compared to established alternatives in benchmarks run on Python 3.11. The framework reports a cold import time of 87 milliseconds and a memory footprint of 12 MB after import, versus over 1 second and 152 MB for aiogram. Security is a stated priority: sessions are stored in an AES-256-GCM vault tied to the machine ID, credentials are never exposed to a browser, and encryption keys are wiped from memory on logout. GoyGram is licensed under AGPL-3.0 and supports multi-session management, finite state machines, filters, and an event pipeline.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in