This cool Telegram CatBot can send images/gifs of cats. Either randomly or by breed.
The bot is running on my Raspberry Pi and can be found here https://t.me/send_random_cat_bot
source setup-local-venv.sh
- Create a Telegram Bot using the BotFather
- Create a chat where the bot will send logs and errors
- Create a Cat Api key here
- Create a file
env.json
in thecatbot
subdirectory with the developer_chat_id and the bot_token
{
"developer_chat_id": "<REPLACE WITH DEVELOPER CHAT ID>",
"bot_token": "<REPLACE WITH BOT TOKEN>",
"cat_api_key": "<REPLACE WITH CAT API KEY>"
}
./docker-build-raspberry-pi.sh
./docker-build-linux.sh
./docker-run.sh
Inspired by https://github.com/python-telegram-bot/python-telegram-bot/wiki/InlineKeyboard-Example