bots • Rust AI Agent SDK
Bots Module for PraisonAI Rust SDK
bots
Rust AI Agent SDK
Bots Module for PraisonAI Rust SDK
Defines protocols and types for messaging bot implementations. Enables agents to communicate through messaging platforms like Telegram, Discord, Slack, etc.
Example
use praisonai::bots::{BotMessage, BotUser, BotChannel, MessageType};
let user = BotUser::new("user-123")
.username("john_doe")
.display_name("John Doe");
let message = BotMessage::text("Hello!", user.clone(), "channel-1");Import
use praisonai::bots::*;Classes
BotUser
Represents a user in a messaging platform.
BotChannelRepresents a channel/chat in a messaging platform.
BotMessageRepresents a message in a messaging platform.
BotConfigConfiguration for a bot.
BotProtocolProtocol for messaging bot implementations. Bots connect agents to messaging platforms, handling: – Message receiving and sending – Command handling…
MessageTypeTypes of bot messages.