pub struct Service<T>{ /* private fields */ }namespace-chatbsky only.Implementations§
Source§impl<T> Service<T>
impl<T> Service<T>
Sourcepub async fn add_members(&self, input: Input) -> Result<Output, Error>
pub async fn add_members(&self, input: Input) -> Result<Output, Error>
Adds members to a group. The members are added in ‘request’ status, so they have to accept it. This creates convo memberships.
Sourcepub async fn approve_join_request(&self, input: Input) -> Result<Output, Error>
pub async fn approve_join_request(&self, input: Input) -> Result<Output, Error>
Approves a request to join a group (via join link) the user owns. Action taken by the group owner.
Sourcepub async fn create_group(&self, input: Input) -> Result<Output, Error>
pub async fn create_group(&self, input: Input) -> Result<Output, Error>
Creates a group convo, specifying the members to be added to it. Unlike getConvoForMembers, this isn’t idempotent. It will create new groups even if the membership is identical to pre-existing groups. Will create ‘request’ membership for all members, except the owner who is ‘accepted’.
Sourcepub async fn create_join_link(&self, input: Input) -> Result<Output, Error>
pub async fn create_join_link(&self, input: Input) -> Result<Output, Error>
Creates a join link for the group convo.
Sourcepub async fn disable_join_link(&self, input: Input) -> Result<Output, Error>
pub async fn disable_join_link(&self, input: Input) -> Result<Output, Error>
Disables the active join link for the group convo.
Sourcepub async fn edit_join_link(&self, input: Input) -> Result<Output, Error>
pub async fn edit_join_link(&self, input: Input) -> Result<Output, Error>
Edits the existing join link settings for the group convo.
Sourcepub async fn enable_join_link(&self, input: Input) -> Result<Output, Error>
pub async fn enable_join_link(&self, input: Input) -> Result<Output, Error>
Re-enables a previously disabled join link for the group convo.
Sourcepub async fn get_join_link_previews(
&self,
params: Parameters,
) -> Result<Output, Error>
pub async fn get_join_link_previews( &self, params: Parameters, ) -> Result<Output, Error>
Get public information about groups from join links. The output array matches the input codes one-to-one by position (and each view also carries its ‘code’). Disabled codes return a disabledJoinLinkPreviewView, and codes that do not map to a previewable link return an invalidJoinLinkPreviewView.
Sourcepub async fn list_join_requests(
&self,
params: Parameters,
) -> Result<Output, Error>
pub async fn list_join_requests( &self, params: Parameters, ) -> Result<Output, Error>
Lists a page of request to join a group (via join link) the user owns. Shows the data from the owner’s point of view.
Sourcepub async fn list_mutual_groups(
&self,
params: Parameters,
) -> Result<Output, Error>
pub async fn list_mutual_groups( &self, params: Parameters, ) -> Result<Output, Error>
Returns a page of group conversations that both the requester and the specified actor are members of.
Sourcepub async fn reject_join_request(&self, input: Input) -> Result<Output, Error>
pub async fn reject_join_request(&self, input: Input) -> Result<Output, Error>
Rejects a request to join a group (via join link) the user owns. Action taken by the group owner.
Sourcepub async fn remove_members(&self, input: Input) -> Result<Output, Error>
pub async fn remove_members(&self, input: Input) -> Result<Output, Error>
Removes members from a group. This deletes convo memberships, doesn’t just set a status.
Sourcepub async fn request_join(&self, input: Input) -> Result<Output, Error>
pub async fn request_join(&self, input: Input) -> Result<Output, Error>
Sends a request to join a group (via join link) to the group owner. Action taken by the prospective group member.