Deprecate Message::chat_id

This commit is contained in:
Maybe Waffle 2022-02-17 14:41:38 +03:00
parent 016763cf8c
commit 6bf204221f
2 changed files with 7 additions and 0 deletions

View file

@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## unreleased
### Deprecated
- `Message::chat_id` use `.chat.id` field instead ([#182][pr182])
[pr182]: https://github.com/teloxide/teloxide-core/pull/182
### Fixed
- Serialization of `SendPoll::type_` (it's now possible to send quiz polls) ([#181][pr181])

View file

@ -557,6 +557,7 @@ mod getters {
}
}
#[deprecated(since = "0.4.2", note = "use `.chat.id` field instead")]
pub fn chat_id(&self) -> i64 {
self.chat.id
}