Skip to main content

send_message

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

Signature

async def send_message(channel_id: str, content: Union[str, Dict[str, Any]], reply_to: Optional[str], thread_id: Optional[str]) -> BotMessage

Parameters

channel_id
str
required
Target channel ID
content
Union
required
Message content
reply_to
Optional
Optional message ID to reply to
thread_id
Optional
Optional thread ID for threaded replies

Returns

Returns
BotMessage
The sent message