TelegramBot
- chat_agent (ChatAgent): Chat agent that will power the bot.
- telegram_token (str, optional): The bot token.
init
run
on_message
- message (types.Message): The incoming message object.
class TelegramBot:
def __init__(
self,
chat_agent: ChatAgent,
telegram_token: Optional[str] = None
):
def run(self):
def on_message(self, message: 'Message'):