Telegram Bot Notion Helper

Create tasks faster. Anytime. Anywhere.

Source

The Design Productivity Blueprint

Figma content

The Idea

If you're familiar with my other project — Notion Dashboard, you questioned how I will maintain this complicated system. Especially, when I without a laptop.

Of course, you can use the mobile version of Notion, but if you're used to it, you know how it's slow. You can use your notebook, write down your tasks, and when you're with your computer, just move them into Notion.

But rewriting, it's so annoying!

So I came with the idea to make a telegram bot, which will write the tasks into my main Notion table, and when I with my computer I will label them and divide them into projects.

And it's so much faster! You just text the bot and your task is created!

So what I used to create the bot?

First, it's a Telegraf framework for javascript. I know javascript, so it will be so much easier to create the bot.

Second, it's a new Notion API, in which there is a method that helped me to update my big Tasks table.

Create a Notion API and share your table.

Now you need to get to know what is the id of your table. You just need to copy-paste the URL to your table and get an id from the URL.

Then, create a bot using the Bot father. Get the hash and create a sample request using curl or postman.

Write a simple script and text the bot. You will get your Id. Create a constant with your Id. We need this to make your bot personal, so no one can write to the bot, create their tasks into your table.

Create other constants.

And write the final script.

Now you need to get to know what is the id of your table. You just need to copy-paste the URL to your table and get an id from the URL.

Then, create a bot using the Bot father. Get the hash and create a sample request using curl or postman.

Write a simple script and text the bot. You will get your Id. Create a constant with your Id. We need this to make your bot personal, so no one can write to the bot, create their tasks into your table.

Create other constants.

Hosting

Now you need to host it. You can use Amazon, Google, or even host it on your own machine (or on Raspberry Pi, if you have one). Chances you're thinking about Heroku, but it's not a great solution, it can't keep the process on more than 5 minutes.

Conclusion

And now you have a great bot, that made your life a little easier.

You can customize it, add more properties to send to Notion. Read the documentation and see what you can send to Notion.

Thank you! Hope it helps you!