---
title: "grammers-session 0.11.0 Breaking Changes on crates.io"
description: "What each grammers-session release removed, renamed or changed: 40 breaking changes in 3 versions on crates.io, each with its source."
canonical_url: https://since.dev/packages/crates/grammers-session
last_updated: 2026-12-04
---

# grammers-session breaking changes

grammers-session 0.11.0 (October 15, 2026) is its newest release with breaking changes, 6 of them. The first: Renamed grammers_session::ErasedSession. Every breaking API change we have recorded in grammers-session on crates.io: 40 breaking changes in 3 versions. Below, its 3 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `0.12.0`, released November 8, 2026. [Source repository](https://codeberg.org/Lonami/grammers)

Packages on crates.io run on Rust. [Rust end of life dates](https://since.dev/calendar/rust.md).

- From [0.9.0](#v-0-9-0) to [0.11.0](#v-0-11-0): 23 breaking changes in 2 versions.

## grammers-session 0.11.0 breaking changes

grammers-session 0.11.0, released October 15, 2026: 6 breaking changes.

- **Renamed** `grammers_session::ErasedSession`  

Use grammers_session::storages::ErasedSession instead. [crates.io](https://crates.io/crates/grammers-session/0.11.0)
- **Signature changed** `grammers_session::Session::cache_peer`  

Was fn cache_peer(&self, peer: &PeerInfo) -> BoxFuture<'\_, Result<(), Self::Error>>; now fn cache_peer(&self, peer: PeerInfo) -> BoxFuture<'\_, Result<(), Self::Error>>. [crates.io](https://crates.io/crates/grammers-session/0.11.0)
- **Signature changed** `grammers_session::Session::Error`  

Was type Error; now type Error: Send. [crates.io](https://crates.io/crates/grammers-session/0.11.0)
- **Signature changed** `grammers_session::updates::MessageBoxes::apply_channel_difference`  

Was fn apply_channel_difference(&mut self, difference: tl::enums::updates::ChannelDifference) -> defs::UpdateAndPeers; now fn apply_channel_difference(&mut self, difference: tl::enums::updates::ChannelDifference) -> UpdateAndPeers. [crates.io](https://crates.io/crates/grammers-session/0.11.0)
- **Signature changed** `grammers_session::updates::MessageBoxes::apply_difference`  

Was fn apply_difference(&mut self, difference: tl::enums::updates::Difference) -> defs::UpdateAndPeers; now fn apply_difference(&mut self, difference: tl::enums::updates::Difference) -> UpdateAndPeers. [crates.io](https://crates.io/crates/grammers-session/0.11.0)
- **Signature changed** `grammers_session::updates::MessageBoxes::process_updates`  

Was fn process_updates(&mut self, updates: UpdatesLike) -> Result\<defs::UpdateAndPeers, Gap>; now fn process_updates(&mut self, updates: UpdatesLike) -> Result\<UpdateAndPeers, Gap>. [crates.io](https://crates.io/crates/grammers-session/0.11.0)

## grammers-session 0.10.0 breaking changes

grammers-session 0.10.0, released July 2, 2026: 17 breaking changes.

- **Removed** `grammers_session::types::PeerKind::UserSelf`  

grammers_session::types::PeerKind::UserSelf was removed in grammers-session 0.10.0 [crates.io](https://crates.io/crates/grammers-session/0.10.0)
- **Signature changed** `grammers_session::Session`  

Was trait Session: Send + Sync; now trait Session: Send + Sync + 'static. [crates.io](https://crates.io/crates/grammers-session/0.10.0)
- **Signature changed** `grammers_session::Session::cache_peer`  

Was fn cache_peer(&self, peer: &PeerInfo) -> BoxFuture<'\_, ()>; now fn cache_peer(&self, peer: &PeerInfo) -> BoxFuture<'\_, Result<(), Self::Error>>. [crates.io](https://crates.io/crates/grammers-session/0.10.0)
- **Signature changed** `grammers_session::Session::dc_option`  

Was fn dc_option(&self, dc_id: i32) -> Option\<DcOption>; now fn dc_option(&self, dc_id: i32) -> Result\<Option\<DcOption>, Self::Error>. [crates.io](https://crates.io/crates/grammers-session/0.10.0)
- **Signature changed** `grammers_session::Session::home_dc_id`  

Was fn home_dc_id(&self) -> i32; now fn home_dc_id(&self) -> Result\<i32, Self::Error>. [crates.io](https://crates.io/crates/grammers-session/0.10.0)
- **Signature changed** `grammers_session::Session::peer`  

Was fn peer(&self, peer: PeerId) -> BoxFuture<'\_, Option\<PeerInfo>>; now fn peer(&self, peer: PeerId) -> BoxFuture<'\_, Result\<Option\<PeerInfo>, Self::Error>>. [crates.io](https://crates.io/crates/grammers-session/0.10.0)
- **Signature changed** `grammers_session::Session::peer_ref`  

Was fn peer_ref(&self, peer: PeerId) -> BoxFuture<'\_, Option\<PeerRef>>; now fn peer_ref(&self, peer: PeerId) -> BoxFuture<'\_, Result\<Option\<PeerRef>, Self::Error>>. [crates.io](https://crates.io/crates/grammers-session/0.10.0)
- **Signature changed** `grammers_session::Session::set_dc_option`  

Was fn set_dc_option(&self, dc_option: &DcOption) -> BoxFuture<'\_, ()>; now fn set_dc_option(&self, dc_option: &DcOption) -> BoxFuture<'\_, Result<(), Self::Error>>. [crates.io](https://crates.io/crates/grammers-session/0.10.0)
- **Signature changed** `grammers_session::Session::set_home_dc_id`  

Was fn set_home_dc_id(&self, dc_id: i32) -> BoxFuture<'\_, ()>; now fn set_home_dc_id(&self, dc_id: i32) -> BoxFuture<'\_, Result<(), Self::Error>>. [crates.io](https://crates.io/crates/grammers-session/0.10.0)
- **Signature changed** `grammers_session::Session::set_update_state`  

Was fn set_update_state(&self, update: UpdateState) -> BoxFuture<'\_, ()>; now fn set_update_state(&self, update: UpdateState) -> BoxFuture<'\_, Result<(), Self::Error>>. [crates.io](https://crates.io/crates/grammers-session/0.10.0)

And 7 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## grammers-session 0.9.0 breaking changes

grammers-session 0.9.0, released February 21, 2026: 17 breaking changes.

- **Removed** `grammers_session::PeerAuthCache`  

Use Session::peer instead. [crates.io](https://crates.io/crates/grammers-session/0.9.0)
- **Removed** `grammers_session::storages::TL_VERSION`  

grammers_session::storages::TL_VERSION was removed in grammers-session 0.9.0 [crates.io](https://crates.io/crates/grammers-session/0.9.0)
- **Removed** `grammers_session::storages::TlSession`  

grammers_session::storages::TlSession was removed in grammers-session 0.9.0 [crates.io](https://crates.io/crates/grammers-session/0.9.0)
- **Renamed** `grammers_session::defs`  

Use grammers_session::types instead. [crates.io](https://crates.io/crates/grammers-session/0.9.0)
- **Signature changed** `grammers_session::defs::ChannelKind::Broadcast`  

Was Broadcast; now Broadcast = 1. [crates.io](https://crates.io/crates/grammers-session/0.9.0)
- **Signature changed** `grammers_session::defs::PeerId::channel`  

Was fn channel(id: i64) -> Self; now fn channel(id: i64) -> Option\<Self>. [crates.io](https://crates.io/crates/grammers-session/0.9.0)
- **Signature changed** `grammers_session::defs::PeerId::chat`  

Was fn chat(id: i64) -> Self; now fn chat(id: i64) -> Option\<Self>. [crates.io](https://crates.io/crates/grammers-session/0.9.0)
- **Signature changed** `grammers_session::defs::PeerId::user`  

Was fn user(id: i64) -> Self; now fn user(id: i64) -> Option\<Self>. [crates.io](https://crates.io/crates/grammers-session/0.9.0)
- **Signature changed** `grammers_session::defs::PeerInfo::auth`  

Was fn auth(&self) -> PeerAuth; now fn auth(&self) -> Option\<PeerAuth>. [crates.io](https://crates.io/crates/grammers-session/0.9.0)
- **Signature changed** `grammers_session::Session::cache_peer`  

Was fn cache_peer(&self, peer: &PeerInfo); now fn cache_peer(&self, peer: &PeerInfo) -> BoxFuture<'\_, ()>. [crates.io](https://crates.io/crates/grammers-session/0.9.0)

And 7 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## Related packages

- [grammers-mtsender](https://since.dev/packages/crates/grammers-mtsender.md)
- [grammers-tl-types](https://since.dev/packages/crates/grammers-tl-types.md)
- [grammers-client](https://since.dev/packages/crates/grammers-client.md)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
