pub struct ChatMemberStatusRestricted {
pub is_member: bool,
pub restricted_until_date: i32,
pub can_send_messages: bool,
pub can_send_media_messages: bool,
pub can_send_other_messages: bool,
pub can_add_web_page_previews: bool,
}
Expand description
The user is under certain restrictions in the chat. Not supported in basic groups and channels
Fields§
§is_member: bool
True, if the user is a member of the chat
restricted_until_date: i32
Point in time (Unix timestamp) when restrictions will be lifted from the user; 0 if never. If the user is restricted for more than 366 days or for less than 30 seconds from the current time, the user is considered to be restricted forever
can_send_messages: bool
True, if the user can send text messages, contacts, locations, and venues
can_send_media_messages: bool
True, if the user can send audio files, documents, photos, videos, video notes, and voice notes. Implies can_send_messages permissions
can_send_other_messages: bool
True, if the user can send animations, games, and stickers and use inline bots. Implies can_send_media_messages permissions
can_add_web_page_previews: bool
True, if the user may add a web page preview to his messages. Implies can_send_messages permissions
Trait Implementations§
Source§impl Clone for ChatMemberStatusRestricted
impl Clone for ChatMemberStatusRestricted
Source§fn clone(&self) -> ChatMemberStatusRestricted
fn clone(&self) -> ChatMemberStatusRestricted
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more