Enum rust_tdlib::types::ChatActionBar
source · pub enum ChatActionBar {
AddContact(ChatActionBarAddContact),
InviteMembers(ChatActionBarInviteMembers),
JoinRequest(ChatActionBarJoinRequest),
ReportAddBlock(ChatActionBarReportAddBlock),
ReportSpam(ChatActionBarReportSpam),
ReportUnrelatedLocation(ChatActionBarReportUnrelatedLocation),
SharePhoneNumber(ChatActionBarSharePhoneNumber),
// some variants omitted
}
Expand description
Describes actions which must be possible to do through a chat action bar
Variants§
AddContact(ChatActionBarAddContact)
The chat is a private or secret chat and the other user can be added to the contact list using the method addContact
InviteMembers(ChatActionBarInviteMembers)
The chat is a recently created group chat to which new members can be invited
JoinRequest(ChatActionBarJoinRequest)
The chat is a private chat with an administrator of a chat to which the user sent join request
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 toggleMessageSenderIsBlocked, or the other user can be added to the contact list using the method addContact
ReportSpam(ChatActionBarReportSpam)
The chat can be reported as spam using the method reportChat with the reason chatReportReasonSpam
The chat is a location-based supergroup, which can be reported as having unrelated location using the method reportChat with the reason chatReportReasonUnrelatedLocation
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
Implementations§
Trait Implementations§
source§impl AsRef<ChatActionBar> for ChatActionBar
impl AsRef<ChatActionBar> for ChatActionBar
source§fn as_ref(&self) -> &ChatActionBar
fn as_ref(&self) -> &ChatActionBar
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