pub enum ChatMemberStatus {
Creator(ChatMemberStatusCreator),
Administrator(ChatMemberStatusAdministrator),
Member,
Restricted(ChatMemberStatusRestricted),
Left,
Banned(ChatMemberStatusBanned),
}
Variants§
Creator(ChatMemberStatusCreator)
The user is the owner of the chat and has all the administrator privileges
Administrator(ChatMemberStatusAdministrator)
The user is a member of the chat and has some additional privileges. In basic groups, administrators can edit and delete messages sent by others, add new members, ban unprivileged members, and manage video chats. In supergroups and channels, there are more detailed options for administrator privileges
Member
The user is a member of the chat, without any additional privileges or restrictions
Restricted(ChatMemberStatusRestricted)
The user is under certain restrictions in the chat. Not supported in basic groups and channels
Left
The user or the chat is not a chat member
Banned(ChatMemberStatusBanned)
The user or the chat was banned (and hence is not a member of the chat). Implies the user can’t return to the chat, view messages, or be used as a participant identifier to join a video chat of the chat
Trait Implementations§
Source§impl Clone for ChatMemberStatus
impl Clone for ChatMemberStatus
Source§fn clone(&self) -> ChatMemberStatus
fn clone(&self) -> ChatMemberStatus
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more