mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-23 06:51:01 +01:00
Deprecate Message::chat_id
This commit is contained in:
parent
016763cf8c
commit
6bf204221f
2 changed files with 7 additions and 0 deletions
|
@ -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])
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue