What's Changed
- fix(keyboards): accept str in copy_text parameter directly by @deblomper-dev in #456
- fix(types): make
Object.__eq__type-aware and symmetric by @Danipulok in #457 - fix(message): widen a
Strcut that lands inside a surrogate pair to whole code points by @Danipulok in #458 - fix(sync): resolve the bridge loop when the wrapped method is called, not at import by @Danipulok in #459
- refactor(errors): split
RPCError.valueintoparameterandraw_errorby @Danipulok in #460 - test(guards): widen the comment dash sweep past
.pyto every#comment format by @Danipulok in #463 - refactor(typing): give
Handlerits callback type and annotatefiltersby @Danipulok in #462 - fix(session): rotate the server salt before it expires instead of waiting for a rejection by @Danipulok in #464
- refactor(utils): split
pyrogram/utils.pyinto a package of single-subject modules by @Danipulok in #461 - fix(session): raise on a timed-out
is_startedwait instead of walking intosend()by @Danipulok in #470 - fix(media): apply
force_fileandsupports_streamingin both upload branches by @Danipulok in #469 - refactor(serialization): drop the no-op
or Noneonflags.N?truefields by @Danipulok in #474 - fix(gitignore): anchor
docsto the root sorufflintscompiler/docs/by @Danipulok in #476 - fix(session): fail pending results on
stop()instead of letting them time out by @Danipulok in #477 - fix(sync): bridge coroutines and async generators alike onto the client's own loop by @Danipulok in #472
- refactor(loop): take the running loop at the point of use instead of storing one by @Danipulok in #473
- feat: add high level sticker set management methods by @KurimuzonAkuma in #486
- chore(lint): enable and clean up TC (flake8-type-checking) by @KrimsN in #480
- fix(methods): correct
apply_boost()andset_bot_name()return annotations by @Danipulok in #491 - refactor(crypto): take
gcdfrommathinstead of reimplementing it by @Danipulok in #492 - test(guards): make
Referencea frozen dataclass, likeAnnotationby @Danipulok in #493 - fix(session): name the client, not the attempt, in the
invoke()retry warning by @Danipulok in #489 - docs(comments): name the symbol instead of a drifted
path:linecitation by @Danipulok in #490 - refactor(dispatcher): replace
OrderedDictwith a plaindictby @Danipulok in #495 - chore(deps): wire up
pytest-covandsphinx-autobuild, drop thereleasegroup by @Danipulok in #494 - refactor(rich-message): expose
partasRichMessage.is_partialand drop its block-level plumbing by @Danipulok in #496 - fix(types): make
Linksurvivecopy,deepcopyandpickleby @Danipulok in #499 - docs(chats): fix the
update_chat_notificationsdocstring by @Danipulok in #498 - refactor(typing): replace
NamedTuplewith frozen dataclasses outsidepyrogram/raw/by @Danipulok in #497 - ci(typecheck): enforce three more
tyrules and runtyas its own job by @Danipulok in #500 - fix(password): keep the account's hint when
change_cloud_password()is passed none by @Danipulok in #501 - chore(errors): reconcile the error tables with
core.telegram.org/api/errors.jsonby @Danipulok in #502 - fix(tcp): report a missing IPv6 route at the proxy, not a bare
ProxyErrorby @Danipulok in #504 - fix(compiler): carry the wrapped query's return type through the schema-generic functions by @Danipulok in #505
- test(crypto): cover
prime.decompose()with deterministic unit tests by @Danipulok in #506 - fix(types): return
NonefromAnimatedChatPhoto._parse()when every video size is a markup entry by @Danipulok in #507 - fix(methods): wire
EditFolderInviteLinkandSetBotProfilePhotointoClient, and guard the mixin wiring by @Danipulok in #508 - feat(messages): add
business_connection_idtosend_rich_message()by @Danipulok in #509 - refactor(utils): share the peer constructor tuples instead of copying them by @Danipulok in #510
- refactor(types): narrow
Message.download()andStory.download()returns with thedownload_media()overloads by @Danipulok in #503 - fix(compiler): map the TL core return types to
bool,intandraw.core.FutureSaltsby @Danipulok in #511 - test(download): prove
StopTransmissionfrom a progress callback ends both transfer directions by @Danipulok in #513 - fix(types): accept
timedeltawherever a date parameter reachesdatetime_to_timestamp()by @Danipulok in #514 - test(guards): fail on a no-op
or Nonereaching aflags.N?truefield by @Danipulok in #512 - docs(methods): make every
Parameters:block agree with its signature by @Danipulok in #515 - docs(parameters): add the trailing colon to every
Parameters:entry and require it by @Danipulok in #517 - feat(loop): run on
uvloopwhen it is importable, plainasynciootherwise by @Danipulok in #516 - fix(types): stop
Photo._parse()andChatPhoto._parse()raisingIndexErrorwhen no concrete photo size survives by @Danipulok in #518 - ci(workflow): run on
pushtomainonly, so a pull request branch is tested once by @Danipulok in #519 - fix(guards): read every source file as UTF-8, not as the locale says by @KrimsN in #481
- fix(session): stop the media session restart loop after a reconnect by @Danipulok in #528
- fix(session): reach
STOPPEDwhen a worker task died instead of re-raising its error by @Danipulok in #529 - fix(dispatcher): drop an update instead of queueing it while no
handler_workerruns by @Danipulok in #530 - fix(client): normalize
Client.proxyon every assignment, not only in__init__by @Danipulok in #531 - fix(storage): changed peers.type from INTEGER to TEXT in schema by @hittiks in #560
- feat(storage): allow disabling vacuuming in SQLiteStorage by @penggrin12 in #558
- build(deps): bump urllib3 from 2.7.0 to 2.8.0 by @dependabot[bot] in #553
- fix(client): don't drop the update batch when
GetChannelDifferencetimes out by @Pharex38 in #557 - fix: skip the updates watchdog with
no_updatesand cancel it onterminate()by @AdzerKI in #525 - fix(chats): pass the layer 233
sidebarflag intoggle_forum_topics()by @Danipulok in #562 - feat(errors): add
FLOOD_SKIP_FAILED_WAIT(420) andMESSAGE_IDS_MISMATCH(400) found in TDLib sources by @Danipulok in #533 - perf(connection): parse web proxy frames 45% faster in parse_frames by @dexhunter in #564
- perf(raw): read TL bytes fields 14% faster in
Bytes.read()by @dexhunter in #566
New Contributors
- @hittiks made their first contribution in #560
- @dependabot[bot] made their first contribution in #553
- @Pharex38 made their first contribution in #557
- @AdzerKI made their first contribution in #525
- @dexhunter made their first contribution in #564
Full Changelog: v2.2.26...v2.2.27