{"id":21788,"library":"pyrofork","title":"PyroFork","description":"PyroFork is a fork of Pyrogram, an elegant, modern and asynchronous Telegram MTProto API framework for Python. It supports user and bot accounts, with full async support. Current version: 2.3.69, released regularly.","status":"active","version":"2.3.69","language":"python","source_language":"en","source_url":"https://github.com/Mayuri-Chan/pyrofork","tags":["telegram","mtproto","async","pyrogram","fork"],"install":[{"cmd":"pip install pyrofork","lang":"bash","label":"Install PyroFork"}],"dependencies":[],"imports":[{"note":"PyroFork uses the same module name as Pyrogram: 'pyrogram'. Do NOT import from 'pyrofork'.","wrong":"from pyrofork import Client","symbol":"Client","correct":"from pyrogram import Client"}],"quickstart":{"code":"import asyncio\nfrom pyrogram import Client\n\napi_id = os.environ.get('API_ID', '')\napi_hash = os.environ.get('API_HASH', '')\n\nasync def main():\n    async with Client(\"my_account\", api_id=api_id, api_hash=api_hash) as app:\n        await app.send_message(\"me\", \"Hello from PyroFork!\")\n\nasyncio.run(main())","lang":"python","description":"Basic async client initialization. Ensure API_ID and API_HASH are set."},"warnings":[{"fix":"Use 'from pyrogram import Client' instead of 'from pyrofork import Client'.","message":"Import paths: PyroFork uses 'pyrogram' as the package name, NOT 'pyrofork'. Many users mistakenly import from pyrofork.","severity":"gotcha","affected_versions":"all"},{"fix":"Review the PyroFork changelog on GitHub and adjust code accordingly.","message":"PyroFork may have breaking changes compared to upstream Pyrogram. Check CHANGELOG before upgrading from Pyrogram.","severity":"breaking","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Install pyrofork package, but use 'from pyrogram import ...'.","cause":"Attempting to import from 'pyrofork' instead of 'pyrogram'.","error":"ModuleNotFoundError: No module named 'pyrofork'"},{"fix":"Ensure API_ID and API_HASH are correct and network allows MTProto (port 443).","cause":"Missing or incorrect API_ID/API_HASH, or firewall blocking MTProto.","error":"ConnectionError: Unable to connect to Telegram"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}