Merge pull request #182 from teloxide/deprecate_chat_id

Deprecate `Message::chat_id`
This commit is contained in:
Waffle Maybe 2022-02-17 14:55:43 +03:00 committed by GitHub
commit b079722ce2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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
}