Run the bot
Note: Install the full praisonai package on your machine. praisonai-code alone does not include praisonai bot.
One reply in Python
praisonai bot needs a token on your machine. Try it Yourself runs the same agent reply once.
Example
from praisonai import Agent
agent = Agent(instructions="You are the Telegram bot assistant.")
print(agent.start("Hello from University."))One command
With the token set, start the bot. A default assistant is created for you.
Message the bot in Telegram. The reply should appear in that chat.
Example
pip install praisonai
praisonai bot telegram --token $TELEGRAM_BOT_TOKENStop and restart
Stop the process with Ctrl+C before you start another copy with the same token.
If start fails with a polling error, another terminal or gateway may still be using that token.
Reference: documentation