Skip to content

jakubwaller/catbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published