pub struct Service<T>{ /* private fields */ }namespace-chatbsky only.Implementations§
Source§impl<T> Service<T>
impl<T> Service<T>
Sourcepub async fn accept_convo(&self, input: Input) -> Result<Output, Error>
pub async fn accept_convo(&self, input: Input) -> Result<Output, Error>
Marks a conversation as accepted, so it is shown in the list of accepted convos instead on the request convos.
Sourcepub async fn add_reaction(&self, input: Input) -> Result<Output, Error>
pub async fn add_reaction(&self, input: Input) -> Result<Output, Error>
Adds an emoji reaction to a message. Requires authentication. It is idempotent, so multiple calls from the same user with the same emoji result in a single reaction.
Sourcepub async fn delete_message_for_self(
&self,
input: Input,
) -> Result<Output, Error>
pub async fn delete_message_for_self( &self, input: Input, ) -> Result<Output, Error>
Marks a message as deleted for the viewer, so they won’t see that message in future enumerations.
Sourcepub async fn get_convo(&self, params: Parameters) -> Result<Output, Error>
pub async fn get_convo(&self, params: Parameters) -> Result<Output, Error>
Gets an existing conversation by its ID.
Sourcepub async fn get_convo_availability(
&self,
params: Parameters,
) -> Result<Output, Error>
pub async fn get_convo_availability( &self, params: Parameters, ) -> Result<Output, Error>
Check whether the requester and the other members can start a 1-1 chat. Only applicable to direct (non-group) conversations. If an existing convo is found for these members, it is returned. Does not create a new convo if it doesn’t exist.
Sourcepub async fn get_convo_for_members(
&self,
params: Parameters,
) -> Result<Output, Error>
pub async fn get_convo_for_members( &self, params: Parameters, ) -> Result<Output, Error>
Get or create a 1-1 conversation for the given members. Always returns the same direct (non-group) conversation. To create a group conversation, use createGroup.
Sourcepub async fn get_convo_members(
&self,
params: Parameters,
) -> Result<Output, Error>
pub async fn get_convo_members( &self, params: Parameters, ) -> Result<Output, Error>
Returns a paginated list of members from a conversation.
pub async fn get_log(&self, params: Parameters) -> Result<Output, Error>
Sourcepub async fn get_messages(&self, params: Parameters) -> Result<Output, Error>
pub async fn get_messages(&self, params: Parameters) -> Result<Output, Error>
Returns a page of messages from a conversation.
Sourcepub async fn get_unread_counts(
&self,
params: Parameters,
) -> Result<Output, Error>
pub async fn get_unread_counts( &self, params: Parameters, ) -> Result<Output, Error>
Returns unread conversation counts for conversations that are unlocked, not muted, split by convo status. Direct convos are excluded when a block relationship exists between the actor and the other member, or when the other member’s account is deleted or deactivated. Group convos are considered unread if they have unread join request counts.
Sourcepub async fn leave_convo(&self, input: Input) -> Result<Output, Error>
pub async fn leave_convo(&self, input: Input) -> Result<Output, Error>
Leaves a conversation (direct or group). For group, this effectively removes membership. For direct, membership is never removed, only changed to remove from enumerations by the user who left.
Sourcepub async fn list_convo_requests(
&self,
params: Parameters,
) -> Result<Output, Error>
pub async fn list_convo_requests( &self, params: Parameters, ) -> Result<Output, Error>
Returns a page of incoming conversation requests for the user. Direct convo requests are returned as convoView; group join requests made by the user are returned as joinRequestConvoView.
Sourcepub async fn list_convos(&self, params: Parameters) -> Result<Output, Error>
pub async fn list_convos(&self, params: Parameters) -> Result<Output, Error>
Returns a page of conversations (direct or group) for the user.
Sourcepub async fn lock_convo(&self, input: Input) -> Result<Output, Error>
pub async fn lock_convo(&self, input: Input) -> Result<Output, Error>
Locks a group convo so no more content (messages, reactions) can be added to it.
Sourcepub async fn mute_convo(&self, input: Input) -> Result<Output, Error>
pub async fn mute_convo(&self, input: Input) -> Result<Output, Error>
Mutes a conversation, preventing notifications related to it.
Sourcepub async fn remove_reaction(&self, input: Input) -> Result<Output, Error>
pub async fn remove_reaction(&self, input: Input) -> Result<Output, Error>
Removes an emoji reaction from a message. Requires authentication. It is idempotent, so multiple calls from the same user with the same emoji result in that reaction not being present, even if it already wasn’t.
Sourcepub async fn send_message(&self, input: Input) -> Result<Output, Error>
pub async fn send_message(&self, input: Input) -> Result<Output, Error>
Sends a message to a conversation.
Sourcepub async fn send_message_batch(&self, input: Input) -> Result<Output, Error>
pub async fn send_message_batch(&self, input: Input) -> Result<Output, Error>
Sends a batch of messages to a conversation.
Sourcepub async fn unlock_convo(&self, input: Input) -> Result<Output, Error>
pub async fn unlock_convo(&self, input: Input) -> Result<Output, Error>
Unlocks a group convo so it is able to receive new content.
Sourcepub async fn unmute_convo(&self, input: Input) -> Result<Output, Error>
pub async fn unmute_convo(&self, input: Input) -> Result<Output, Error>
Unmutes a conversation, allowing notifications related to it.