This is a telegram bot, that sends text notes to the daily documents (or in a separate folder, just tagging date) in remnote. If the text contains a link, then this link will be extracted and used as a source for rem. Any additional notes, following the created rem, are possible.
The bot is intended to be run from heroku on a free tier. The installation guide below describes how to get the bot running.
For example: The one can share a link to a bot and follow it with several text messages, describing the ideas described in the website. Maybe "##Idea" can be tagged or [[example project]] referenced.
This version is prefered, as you would have all the control behind your data.
/newbot
command and follow the instructionsgit clone https://github.com/pavlohrab/RemNote-bot && cd RemNote-bot
git init
heroku login
<- login to the Heroku CLI. If you don't have an account on Heroku, create one.heroku create
<- create an appbot.py
file in any text editor (in a locally cloned copy of a repo) and add the following fields:
TOKEN = ''
<- This is Telegram bot token. It must have been given from @BotFather bot. To remind it, you can list created bots via /mybots
-> <your-bot-name>
-> API Token
REMNOT_API= ''
<- This is created RemNote API key (in step 6).USER_ID = ''
<- User Id can be obtained from this page, where you have created your RemNote API. Copy the value from User ID
column.HEROKU_NAME = ''
<- is the name of your Heroku app when you typed heroku create
. Paste it in the format https://yourherokuappname.herokuapp.com/
.HOME_DIR = 'Saved Telegram'
<- Name of a directory (rem) where to save content. You can provide any name you want. If no Rem will be found, it will be createdbot.py
file. heroku git:remote -a YourAppName
, where your app name should be obtained from the created link - https://yourherokuappname.herokuapp.com/
git push heroku master
/mybots
-> <your-bot-name>
-> Edit Bot
-> Edit Command
and type stop - stop adding notes
. Then in the same Edit Bot
menu go to the Edit Botpic
and upload the picture you like. I used this official one. All the official materials are available hereThe general version of a bot depends on postgresql database on heroku. After the start you should just provide API key and UserID as a messages to a bot. For how to get API key and User Id please see above guide (step 6 and 7.3). There is a limit of users in one telegram bot (10000 in a free Heroku tier), therefore below is a list of maintained bots
List of telegram bots:
remnote_postgres_1
branch of this repo)The only input, that is needed from the user, is a sent text message. Then the conversation dialogue via incline keyboard will begin:
/stop
command.Everything regarding how to use tags and references is in the Features section. If any API changes will be made, then this bot will change and evolve (:
Because the bot is hosted on a free Heroku tier, it will go asleep after 30 min of inactivity. What that really means is that it can take up to 1 min for the bot to wake up after sending a message (after a long inactivity period). To my mind, it makes no big deal, but if it bothers you, then you can use Kaffeine app. But do not forget then to add some more free dynos (+400) via adding a credit card to your account!