You can use existing bot @ForwardrBot or run your own.
To start the bot:
- Register your bot. Talk to BotFather and generate an authorization token.
- Register Tumblr app. Go to Tumblr Apps page, create new app and get
OAuth Consumer Key
andSecret Key
- Clone repository
git clone https://github.com/pashutk/forwardr.git && cd forwardr
- Install dependencies
npm install
- Run bot
npm start
and don't forget to specify tokens with environment variables or config file (see section below)
To run your bot you need to specify bot token, tumblr app consumer key and secret key (and optionally oauth redirect host for
oauth authentification callback). You can set keys with Environment variables or write them to config.json
file. In case of using config file, use config_example.json
as an example.
List of keys:
FORWARDR_TELEGRAM_BOT_TOKEN
FORWARDR_TUMBLR_CONSUMER_KEY
FORWARDR_TUMBLR_CONSUMER_SECRET
FORWARDR_SERVER_AUTH_HOST
(default ishttp://localhost
)
Also you can set FORWARDR_SERVER_PORT
key to specify application port.