Struct teloxide_core::payloads::GetChatAdministrators
source · pub struct GetChatAdministrators {
pub chat_id: Recipient,
}
Expand description
Use this method to get a list of administrators in a chat. On success, returns an Array of ChatMember
objects that contains information about all chat administrators except other bots. If the chat is a group or a supergroup and no administrators were appointed, only the creator will be returned.
Fields§
§chat_id: Recipient
Unique identifier for the target chat or username of the target channel (in the format @channelusername
)
Implementations§
Trait Implementations§
source§impl Clone for GetChatAdministrators
impl Clone for GetChatAdministrators
source§impl Debug for GetChatAdministrators
impl Debug for GetChatAdministrators
source§impl Hash for GetChatAdministrators
impl Hash for GetChatAdministrators
source§impl PartialEq<GetChatAdministrators> for GetChatAdministrators
impl PartialEq<GetChatAdministrators> for GetChatAdministrators
source§fn eq(&self, other: &GetChatAdministrators) -> bool
fn eq(&self, other: &GetChatAdministrators) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Payload for GetChatAdministrators
impl Payload for GetChatAdministrators
source§fn timeout_hint(&self) -> Option<Duration>
fn timeout_hint(&self) -> Option<Duration>
If this payload may take long time to execute (e.g.
GetUpdates
with
big timeout
), the minimum timeout that should be used.source§impl Serialize for GetChatAdministrators
impl Serialize for GetChatAdministrators
impl Eq for GetChatAdministrators
impl StructuralEq for GetChatAdministrators
impl StructuralPartialEq for GetChatAdministrators
Auto Trait Implementations§
impl RefUnwindSafe for GetChatAdministrators
impl Send for GetChatAdministrators
impl Sync for GetChatAdministrators
impl Unpin for GetChatAdministrators
impl UnwindSafe for GetChatAdministrators
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.