Skip to content

Latest commit

 

History

History
55 lines (37 loc) · 1.01 KB

README.md

File metadata and controls

55 lines (37 loc) · 1.01 KB

Cat Bot

trailer

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

Development

Setup

source setup-local-venv.sh

Deployment

Setup Environment

  • 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 the catbot 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>"
}

Build docker

Raspberry Pi

./docker-build-raspberry-pi.sh

Linux/Mac

./docker-build-linux.sh

Run docker

./docker-run.sh

Sources

Inspired by https://github.com/python-telegram-bot/python-telegram-bot/wiki/InlineKeyboard-Example