pub struct ChatPermissions {Show 14 fields
pub can_send_basic_messages: bool,
pub can_send_audios: bool,
pub can_send_documents: bool,
pub can_send_photos: bool,
pub can_send_videos: bool,
pub can_send_video_notes: bool,
pub can_send_voice_notes: bool,
pub can_send_polls: bool,
pub can_send_other_messages: bool,
pub can_add_web_page_previews: bool,
pub can_change_info: bool,
pub can_invite_users: bool,
pub can_pin_messages: bool,
pub can_create_topics: bool,
}
Expand description
Describes actions that a user is allowed to take in a chat
Fields§
§can_send_basic_messages: bool
True, if the user can send text messages, contacts, giveaways, giveaway winners, invoices, locations, and venues
can_send_audios: bool
True, if the user can send music files
can_send_documents: bool
True, if the user can send documents
can_send_photos: bool
True, if the user can send photos
can_send_videos: bool
True, if the user can send videos
can_send_video_notes: bool
True, if the user can send video notes
can_send_voice_notes: bool
True, if the user can send voice notes
can_send_polls: bool
True, if the user can send polls
can_send_other_messages: bool
True, if the user can send animations, games, stickers, and dice and use inline bots
can_add_web_page_previews: bool
True, if the user may add a web page preview to their messages
can_change_info: bool
True, if the user can change the chat title, photo, and other settings
can_invite_users: bool
True, if the user can invite new users to the chat
can_pin_messages: bool
True, if the user can pin messages
can_create_topics: bool
True, if the user can create topics
Trait Implementations§
Source§impl Clone for ChatPermissions
impl Clone for ChatPermissions
Source§fn clone(&self) -> ChatPermissions
fn clone(&self) -> ChatPermissions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more