Skip to main content

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.

BotChannel

Represents a channel/chat in a messaging platform.

BotMessage

Represents a message in a messaging platform.

BotConfig

Configuration for a bot.

BotProtocol

Protocol for messaging bot implementations. Bots connect agents to messaging platforms, handling: - Message receiving and sending - Command handling…

MessageType

Types of bot messages.

Rust Bots

Rust AGUI