Migrating to vekgram ==================== vekgram is a drop-in replacement for Pyrogram (and for wzgram): the distribution is ``vekgram``, but the import stays ``pyrogram``, so an existing codebase runs unchanged. .. code-block:: bash $ pip uninstall pyrogram wzgram $ pip install "vekgram[fast]" ``vekgram[fast]`` installs both speed extras — ``uvloop`` (Linux/macOS, CPython) and ``warpcrypto`` (Rust crypto; also a core dependency of plain ``vekgram``) — exactly like ``wzgram[fast]`` did. See :doc:`/topics/speedups`. .. code-block:: python # new code should say vekgram from vekgram import Client, filters ``import pyrogram`` still works and resolves to the *same* module, not a second copy of it — ``vekgram.Client is pyrogram.Client`` — so an existing Pyrogram codebase runs unchanged. Use the ``pyrogram`` import only for that; new code should say ``vekgram``. Do not install ``pyrogram`` and ``vekgram`` side by side — they provide the same ``pyrogram`` module and whichever was installed last wins. What changes in practice ------------------------ - **Session strings start with ``VK_``.** Strings exported by vekgram begin with ``VK_``; older ``WZ_`` strings (from wzgram and earlier vekgram versions) still decode, and ``WZ_``-prefixed strings keep working everywhere a session string is accepted. See :doc:`/features/session-strings`. - **Documentation lives at https://vekgram.com** (this site). The old ``yuilariy.github.io/vekgram`` Pages URL redirects here. - **Bot API 10.5 / TL layer 234 coverage is checked at build time** against the shipped manifest — every parameter of every implemented method and type. Run ``uv run poe botapi`` in a source checkout to see the report. - **Transfer paths are tuned for renamer-style bots**: resumable downloads, pooled CDN sessions, parallel paid-media downloads, upload pacing and warn-once-per-episode flood logging. See :doc:`/features/performance`. - **New conveniences**: :meth:`~pyrogram.Client.get_stars_balance` accepts the transaction filters (``inbound``, ``outbound``, ``ascending``, ``ton``, ``subscription_id``, ``offset``, ``limit``), and :meth:`~pyrogram.Client.get_inline_bot_results` returns a parsed :obj:`~pyrogram.types.BotResults` instead of the raw object. Nothing else changes: same methods, same handlers, same storage engines, same environment variables (``VEKGRAM_*``), same file layout under ``pyrogram/``. .. note:: If you pinned ``wzgram`` in your requirements, replace the pin with ``vekgram`` — the package names do not overlap, and both provide the ``pyrogram`` module.