Skip to main content

send_message

AsyncMethod
This is a method of the BotProtocol class in the bots module.
Send a message to a channel.

Signature

async def send_message(
        &self,
        channel_id: &str,
        content: serde_json::Value,
        reply_to: Option<String>,
        thread_id: Option<String>,
    ) -> Result<BotMessage>

Parameters

channel_id
&str
required
No description available.
content
serde_json::Value
required
No description available.
reply_to
Option<String>
required
No description available.
thread_id
Option<String>
required
No description available.

Returns

Returns
Result<BotMessage>
The result of the operation.