Telegram bot for Evernote
This bot can save to your Evernote everything that you send.
You can use this bot in Telegram: https://t.me/evernoterobot
Or you can use your own telegram bot and your own server, then see Installation
If you have some reasons do not use my bot deployed on my server, you can use your own installation.
sudo curl https://raw.githubusercontent.com/djudman/evernote-telegram-bot/master/evernotebot-install.sh --output evernotebot-install.sh && sh evernotebot-install.sh
sudo
is needed because there is copying a file to /etc/init.d
directory/etc/init.d/evernotebot start
to start botgit clone https://github.com/djudman/evernote-telegram-bot.git
docker build -t evernote-telegram-bot .
.bashrc
)docker volume create evernotebot-data
docker run \
-e EVERNOTEBOT_DEBUG="$EVERNOTEBOT_DEBUG" \
-e EVERNOTEBOT_HOSTNAME="$EVERNOTEBOT_HOSTNAME" \
-e EVERNOTEBOT_EXPOSE_PORT="$EVERNOTEBOT_EXPOSE_PORT" \
-e TELEGRAM_API_TOKEN="$TELEGRAM_API_TOKEN" \
-e TELEGRAM_BOT_NAME="$TELEGRAM_BOT_NAME" \
-e EVERNOTE_READONLY_KEY="$EVERNOTE_READONLY_KEY" \
-e EVERNOTE_READONLY_SECRET="$EVERNOTE_READONLY_SECRET" \
-e EVERNOTE_READWRITE_KEY="$EVERNOTE_READWRITE_KEY" \
-e EVERNOTE_READWRITE_SECRET="$EVERNOTE_READWRITE_SECRET" \
-d \
-p 127.0.0.1:8000:8000 \
--restart=always \
--name=evernotebot \
-it \
-v ./logs:/app/logs:rw \
--mount source="evernotebot-data",target="/evernotebot-data" \
evernote-telegram-bot
Variable name | Default value | Description |
---|---|---|
EVERNOTEBOT_DIR | $HOME/evernotebot | Install dir for tha bot. Some files there. For example, logs/ dir and .env file |
EVERNOTEBOT_DEBUG | 0 | Enable debug mode (additional logging, use evernote sandbox) |
EVERNOTEBOT_HOSTNAME | evernotebot.djud.site | DNS name of your host. This name will use in such URLs as oauth callback url and webhook url |
EVERNOTEBOT_EXPOSE_PORT | 8000 | Port that the docker container with bot listen on your machine. The bot inside container uses 127.0.0.1:8000 |
TELEGRAM_BOT_NAME | evernoterobot | Name of telegram bot. You used this in BotFather |
TELEGRAM_API_TOKEN | - | Access token for telegram API. You can obtain this by BotFather |
EVERNOTE_READONLY_KEY | - | appKey for your Evernote app (readonly permissions) |
EVERNOTE_READONLY_SECRET | - | secret for your Evernote app (readonly permissions) |
EVERNOTE_READWRITE_KEY | - | appKey for your Evernote app (read/write permissions), required for one_note bot mode |
EVERNOTE_READWRITE_SECRET | - | secret for your Evernote app (read/write permissions), required for one_note bot mode |