github kurigram-org/kurigram v2.2.27

13 days ago

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 Str cut 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.value into parameter and raw_error by @Danipulok in #460
  • test(guards): widen the comment dash sweep past .py to every # comment format by @Danipulok in #463
  • refactor(typing): give Handler its callback type and annotate filters by @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.py into a package of single-subject modules by @Danipulok in #461
  • fix(session): raise on a timed-out is_started wait instead of walking into send() by @Danipulok in #470
  • fix(media): apply force_file and supports_streaming in both upload branches by @Danipulok in #469
  • refactor(serialization): drop the no-op or None on flags.N?true fields by @Danipulok in #474
  • fix(gitignore): anchor docs to the root so ruff lints compiler/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() and set_bot_name() return annotations by @Danipulok in #491
  • refactor(crypto): take gcd from math instead of reimplementing it by @Danipulok in #492
  • test(guards): make Reference a frozen dataclass, like Annotation by @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:line citation by @Danipulok in #490
  • refactor(dispatcher): replace OrderedDict with a plain dict by @Danipulok in #495
  • chore(deps): wire up pytest-cov and sphinx-autobuild, drop the release group by @Danipulok in #494
  • refactor(rich-message): expose part as RichMessage.is_partial and drop its block-level plumbing by @Danipulok in #496
  • fix(types): make Link survive copy, deepcopy and pickle by @Danipulok in #499
  • docs(chats): fix the update_chat_notifications docstring by @Danipulok in #498
  • refactor(typing): replace NamedTuple with frozen dataclasses outside pyrogram/raw/ by @Danipulok in #497
  • ci(typecheck): enforce three more ty rules and run ty as 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.json by @Danipulok in #502
  • fix(tcp): report a missing IPv6 route at the proxy, not a bare ProxyError by @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 None from AnimatedChatPhoto._parse() when every video size is a markup entry by @Danipulok in #507
  • fix(methods): wire EditFolderInviteLink and SetBotProfilePhoto into Client, and guard the mixin wiring by @Danipulok in #508
  • feat(messages): add business_connection_id to send_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() and Story.download() returns with the download_media() overloads by @Danipulok in #503
  • fix(compiler): map the TL core return types to bool, int and raw.core.FutureSalts by @Danipulok in #511
  • test(download): prove StopTransmission from a progress callback ends both transfer directions by @Danipulok in #513
  • fix(types): accept timedelta wherever a date parameter reaches datetime_to_timestamp() by @Danipulok in #514
  • test(guards): fail on a no-op or None reaching a flags.N?true field 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 uvloop when it is importable, plain asyncio otherwise by @Danipulok in #516
  • fix(types): stop Photo._parse() and ChatPhoto._parse() raising IndexError when no concrete photo size survives by @Danipulok in #518
  • ci(workflow): run on push to main only, 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 STOPPED when 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_worker runs by @Danipulok in #530
  • fix(client): normalize Client.proxy on 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 GetChannelDifference times out by @Pharex38 in #557
  • fix: skip the updates watchdog with no_updates and cancel it on terminate() by @AdzerKI in #525
  • fix(chats): pass the layer 233 sidebar flag in toggle_forum_topics() by @Danipulok in #562
  • feat(errors): add FLOOD_SKIP_FAILED_WAIT (420) and MESSAGE_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

Full Changelog: v2.2.26...v2.2.27

Don't miss a new kurigram release

NewReleases is sending notifications on new releases.