mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-23 15:01:45 +01:00
Merge pull request #182 from teloxide/deprecate_chat_id
Deprecate `Message::chat_id`
This commit is contained in:
commit
b079722ce2
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