Skip to main content

TelegramBot

Represents a Telegram bot that is powered by an agent. Parameters:
  • chat_agent (ChatAgent): Chat agent that will power the bot.
  • telegram_token (str, optional): The bot token.

init

run

Start the Telegram bot.

on_message

Handles incoming messages from the user. Parameters:
  • message (types.Message): The incoming message object.