This is a Telegram bot sending random photos to a user. Photos are being taken from Pinterest boards.
-
Go language
-
PostgreSQL
-
go-telegram-bot-api @Syfaro Go client for Telegram Bot API
-
go-pinterest working fork of @carrot Go client for Pinterest API
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
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.
MIT © 2019 a-frony