Pick one channel

Note: Use a dev bot token. Do not paste tokens into University or into git.

Start with Telegram

Telegram needs one bot token from BotFather. Slack needs a bot token and an app token for Socket Mode.

This course uses Telegram so you only manage one secret.

Export the token

Put the token in the environment for the terminal where the bot runs.

Only one process may poll the same Telegram token at a time.

Example

export TELEGRAM_BOT_TOKEN="123456:ABC-your-token-here"

Tone before Telegram

Shape instructions in Try it Yourself before you poll Telegram.

Example

from praisonai import Agent

agent = Agent(instructions="Reply like a concise Telegram support bot.")
print(agent.start("How do I reset my password?"))

Try it Yourself

Reference: documentation