pub enum ChatActionBar {
ReportSpam(ChatActionBarReportSpam),
ReportUnrelatedLocation,
InviteMembers,
ReportAddBlock(ChatActionBarReportAddBlock),
AddContact,
SharePhoneNumber,
JoinRequest(ChatActionBarJoinRequest),
}
Variants§
ReportSpam(ChatActionBarReportSpam)
The chat can be reported as spam using the method reportChat with the reason reportReasonSpam. If the chat is a private chat with a user with an emoji status, then a notice about emoji status usage must be shown
The chat is a location-based supergroup, which can be reported as having unrelated location using the method reportChat with the reason reportReasonUnrelatedLocation
InviteMembers
The chat is a recently created group chat to which new members can be invited
ReportAddBlock(ChatActionBarReportAddBlock)
The chat is a private or secret chat, which can be reported using the method reportChat, or the other user can be blocked using the method setMessageSenderBlockList, or the other user can be added to the contact list using the method addContact. If the chat is a private chat with a user with an emoji status, then a notice about emoji status usage must be shown
AddContact
The chat is a private or secret chat and the other user can be added to the contact list using the method addContact
The chat is a private or secret chat with a mutual contact and the user’s phone number can be shared with the other user using the method sharePhoneNumber
JoinRequest(ChatActionBarJoinRequest)
The chat is a private chat with an administrator of a chat to which the user sent join request
Trait Implementations§
Source§impl Clone for ChatActionBar
impl Clone for ChatActionBar
Source§fn clone(&self) -> ChatActionBar
fn clone(&self) -> ChatActionBar
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more