## Release Notes

### feat(api): upgrade to Telegram layer 223 and extend messaging and stories

## Summary by Sourcery

Update Pyrogram to Telegram API layer 223 and extend messaging, stories, and bot capabilities while making parsing and type handling more robust.

New Features:
- Support additional message options across send, copy, and forward operations, including repeated scheduling, paid stars, background sending, quick reply shortcuts, send-as identity, media caption stripping, suggested posts, and game score forwarding.
- Expose new fields and behaviors from Telegram for stories, polls, reactions, callback queries, and story views, including outgoing/min flags, albums, reactions metadata, and business callback context.
- Add support for new Telegram no-forwards controls, chat and channel ranks, and related admin log and permission flags, as well as updated URL auth flow with match codes and in-app origin metadata.

Bug Fixes:
- Fix potential crashes when parsing entities, venues, media areas, reactions, message reaction updates, and story-related data by adding null checks and early returns.
- Correct vector size computation to use integer division, preventing misreads when decoding MTProto vectors.

Enhancements:
- Improve robustness of parsers and type constructors by allowing optional or union-typed fields, filtering out invalid parsed objects, and handling missing or null data more gracefully.
- Update low-level MTProto layer definitions and vector handling, including layer version bump, integer division fix, and new/changed constructors for core types like messages, participants, and admin rights.
- Allow richer editing of stories with direct binary uploads for media and better MIME type detection, and include animations in media group replies.
- Tighten connection and session handling by making proxy typing explicit and surfacing disconnects when receiving empty responses from the server.

---------

Signed-off-by: 5hojib <yesiamshojib@gmail.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>