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.
$ 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 Speedups.
# 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_; olderWZ_strings (from wzgram and earlier vekgram versions) still decode, andWZ_-prefixed strings keep working everywhere a session string is accepted. See Session Strings.Documentation lives at https://vekgram.com (this site). The old
yuilariy.github.io/vekgramPages 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 botapiin 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 Performance and Resource Budgets.
New conveniences:
get_stars_balance()accepts the transaction filters (inbound,outbound,ascending,ton,subscription_id,offset,limit), andget_inline_bot_results()returns a parsedBotResultsinstead 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.