Fix GetChatAdministrators output type ChatMember => Vec<ChatMember>

This commit is contained in:
Waffle 2021-03-28 14:02:10 +03:00
parent b1e7643662
commit 02cd4dc97f
2 changed files with 3 additions and 1 deletions

View file

@ -9,9 +9,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed
- `GetChatAdministrators` output type `ChatMember` => `Vec<ChatMember>` ([#73][pr73])
- `reqwest` dependency bringing `native-tls` in even when `rustls` was selected ([#71][pr71])
[pr71]: https://github.com/teloxide/teloxide-core/pull/71
[pr73]: https://github.com/teloxide/teloxide-core/pull/73
## [0.2.2] - 2020-03-22

View file

@ -15,7 +15,7 @@ impl_payload! {
///
/// [`ChatMember`]: crate::types::ChatMember
#[derive(Debug, PartialEq, Eq, Hash, Clone, Serialize)]
pub GetChatAdministrators (GetChatAdministratorsSetters) => ChatMember {
pub GetChatAdministrators (GetChatAdministratorsSetters) => Vec<ChatMember> {
required {
/// Unique identifier for the target chat or username of the target channel (in the format `@channelusername`)
pub chat_id: ChatId [into],