Bot Protocol • AI Agent SDK

BotProtocol: Protocol for messaging bot implementations.

BotProtocol

Defined in the protocols module.

AI Agent

Protocol for messaging bot implementations.

Bots connect agents to messaging platforms, handling:

  • Message receiving and sending
  • Command handling
  • Webhook/polling management
  • User and channel management

Example usage (implementation in praisonai-bot):

from praisonai_bot.bots.telegram import TelegramBot # or: from praisonai.bots import TelegramBot # wrapper shim

bot = TelegramBot(token=”…”, agent=my_agent) await bot.start()

Methods

Source

View on GitHub

praisonaiagents/bots/protocols.py at line 1039