pub struct ApiAddMember {
pub group_id: i64,
pub contact_id: i64,
pub member_role: GroupMemberRole,
}Expand description
§Group commands
Commands to manage and moderate groups. These commands can be used with business chats as well - they are groups. E.g., a common scenario would be to add human agents to business chat with the customer who connected via business address.
Add contact to group. Requires bot to have Admin role.
Network usage: interactive.
Syntax:
/_add #<groupId> <contactId> observer|author|member|moderator|admin|ownerFields§
§group_id: i64§contact_id: i64§member_role: GroupMemberRoleTrait Implementations§
Source§impl Clone for ApiAddMember
impl Clone for ApiAddMember
Source§fn clone(&self) -> ApiAddMember
fn clone(&self) -> ApiAddMember
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl CommandSyntax for ApiAddMember
impl CommandSyntax for ApiAddMember
Source§impl Debug for ApiAddMember
impl Debug for ApiAddMember
Source§impl PartialEq for ApiAddMember
impl PartialEq for ApiAddMember
impl StructuralPartialEq for ApiAddMember
Auto Trait Implementations§
impl Freeze for ApiAddMember
impl RefUnwindSafe for ApiAddMember
impl Send for ApiAddMember
impl Sync for ApiAddMember
impl Unpin for ApiAddMember
impl UnwindSafe for ApiAddMember
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more