Skip to content

a-frony/instant-pillars

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Instant Pillar

This is a Telegram bot sending random photos to a user. Photos are being taken from Pinterest boards.

Requirements

  • Go language

  • PostgreSQL

Dependencies

Settings

Use config.json to fill settings:

  • Language: preffered language. English and Russian languages included

  • TelegramBotToken: get this token from @BotFather bot in Telegram

  • PinterestToken: get this token from Pinterest application. Check out their getting started guide. Note that your application cannot be submitted, so you will have limitations. You can upload to the bot up to 500 photos per hour.

  • BotAdmin: your Telegram username. This user can upload new photos to the bot

  • DBUser, DBPass, DBName: connect parameters to PostgreSQL

Working with bot

Administrator can use /load command. The bot will wait for a correct Pinterest board link like https://pinterest.com/user/board/ and fetch photos from this board. If you exceed you Pinterest limit job will continue in the background. Also administrator can use /continue command to continue previous load session being stopped accidentally.

Users can use commands /start or /moar to get new random photo.

Check out working instance @instantPillars with photos of cute caterpillars.

License

MIT © 2019 a-frony

About

Telegram bot sending random photos to a user

Resources

License

Stars

Watchers

Forks

Packages

No packages published