Merge pull request #94 from liushuyu/master

telegram_response: fix issue `retry_after` and `migrate_to_chat_id` handling
This commit is contained in:
Waffle Lapkin 2021-06-19 14:13:40 +03:00 committed by GitHub
commit 5f58b5e6de
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View file

@ -34,6 +34,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed
- telegram_response: fix issue `retry_after` and `migrate_to_chat_id` handling ([#94][pr94])
- Type of `PublicChatSupergroup::slow_mode_delay` field: `Option<i32>`=> `Option<u32>` ([#80][pr80])
- Add missing `Chat::message_auto_delete_time` field ([#80][pr80])
- Output types of `LeaveChat` `PinChatMessage`, `SetChatDescription`, `SetChatPhoto` `SetChatTitle`, `UnpinAllChatMessages` and `UnpinChatMessage`: `String` => `True` ([#79][pr79])
@ -46,6 +47,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
[pr73]: https://github.com/teloxide/teloxide-core/pull/73
[pr75]: https://github.com/teloxide/teloxide-core/pull/75
[pr79]: https://github.com/teloxide/teloxide-core/pull/79
[pr94]: https://github.com/teloxide/teloxide-core/pull/94
## [0.2.2] - 2020-03-22

View file

@ -25,6 +25,7 @@ pub(crate) enum TelegramResponse<R> {
#[serde(rename = "description")]
error: ApiError,
error_code: u16,
#[serde(rename = "parameters")]
response_parameters: Option<ResponseParameters>,
},
}