/flickr-telegram-bot

Quickly hacked long-polling TELEGRAM BOT to allow interaction with our huge FLICKR library directly from the group chat.

Primary LanguageRuby

Start by caching the photos locally (in Redis). This saves requests and speeds up response times:

$ ruby cache_photos.rb

To run the bot that responds to commands:

# set "mode" to "live" to use live credentials or leave it out to use test credentials
$ ruby run_bot.rb [mode]

To run the "time hop" service:

# set "mode" to "live" to use live credentials or leave it out to use test credentials
$ ruby timehop_bot_service.rb [mode]