shrike 0.1.1

AT Protocol library for Rust
Documentation
// Code generated by lexgen. DO NOT EDIT.

#[derive(Debug, Clone, serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct ConvoAddReactionInput {
    pub convo_id: String,
    pub message_id: String,
    pub value: String,
    /// Extra fields not defined in the schema.
    #[serde(flatten)]
    pub extra: std::collections::HashMap<String, serde_json::Value>,
}

#[derive(Debug, Clone, serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct ConvoAddReactionOutput {
    pub message: crate::api::chat::bsky::ConvoDefsMessageView,
    /// Extra fields not defined in the schema.
    #[serde(flatten)]
    pub extra: std::collections::HashMap<String, serde_json::Value>,
}

/// ConvoAddReaction — 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.
pub async fn convo_add_reaction(
    client: &crate::xrpc::Client,
    input: &ConvoAddReactionInput,
) -> Result<ConvoAddReactionOutput, crate::xrpc::Error> {
    client.procedure("chat.bsky.convo.addReaction", input).await
}