Merge pull request #73 from teloxide/fix_get_chat_administrators

fix `GetChatAdministrators`
This commit is contained in:
Hirrolot 2021-03-28 04:18:47 -07:00 committed by GitHub
commit 8cd8ac96d9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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],