Configure Telegram API credentials and launch the bot
masterBefore running the bot, you must provide your Telegram API credentials as environment variables.
- Obtain an
API_IDandAPI_HASHby registering a Telegram application. - Create a bot via @BotFather to obtain a bot token.
- Set the environment variables and run
bot.py. The script will prompt you for your bot token on its first launch.
export API_ID=<your api id>
export API_HASH=<your api hash>
python3 bot.py