Skip to content

yaroslav-klimuk/telegram-notion-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

My girlfriend and I were arguing about where to keep a wishlist with gift ideas for each other. I suggested notion because I really like it, but my girlfriend wanted to do it in a telegram chat. One day I thought "why choose?" and wrote this bot + webapp.
This bot accepts gift object on POST request from webapp then formats data and sends to chat + notion database.
The bot also has the /update command to synchronize last changes from notion db to chat. (You need set up webhook to telegram API with /webhook endpoint).

Notion database must have fields of the following types:

  • Product name: Title
  • Link: URL
  • Image: Files & media
  • Price: Number
  • Description: Text
  • Last edited time

Example:
Screenshot 2023-05-07 at 23 55 29

The bot only supports two specific users. If desired, you can easily add support for more users.
Each user must have their own database. In this example, the databases of both users are in the same account and notion integration. You can update the project for sync databases from different accounts.
To run the bot, you need to set up integration in Notion, create a telegram bot and chat and enter your values into environment variables.

The project was written for the most part for fun and may contain errors. Anyway PR are welcome 🙂

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published