Giter Site home page Giter Site logo

victorchilari / telegram-notion-saver Goto Github PK

View Code? Open in Web Editor NEW

This project forked from luigimasini/telegram-notion-saver

1.0 0.0 0.0 101 KB

Telegram bot to save content to notion database

License: GNU General Public License v3.0

JavaScript 100.00%

telegram-notion-saver's Introduction

telegram-notion-saver

Telegram bot to save content to notion database

Yet Another?

Yes, but this bot is both very flexible and powerful: from a single message it can fill properties and content of a new database page, so that you no longer have to come back later to notion and adjust the saved content. Just set the rules once.

IMPORTANT currently only has good supports for adding pages to a database

adding block to pages works but not very flexible, if you find it not suitable for you send a pull request or switch to another telegram to notion bot

How it works

First you /start the bot, it will show you a brief version ofthis guide. You will have to authorize the bot as a public integration in Notion, grant access to your workspace and select as many pages as you want.

Then you will have to /config a template: it is just a collection of rules on how the bot will read and split the information in the messages you send to it, and where to put these informations, like properties, content or even icon or cover for images. You can also configure the extraction of metatata from one or more urls. You can even configure default values for properties or content.

You can also configure more than one templates (set of rules) to be able to switch quickly between pages, databases and rules. You can switch between templates with chat buttons or with /use n where n is template number.

Future improvements

  • Workspaces & templates can be shared between users
  • support for files, audio, stikers etc
  • support for url buttons in forwarded messages
  • multiple templates active at the same time, automatically determine which one to use looking at formats, link domains, forwarded from, is / contains file
  • a template can modify multiple pages (save same content to more than one location with more than one rule)
  • notion properties default value for url metadata
  • in TemplateRule have different order for parsing and writing (may be useful when writing blocks)
  • add possibility to add a sub page block with certain title and content
  • regex support for text splitting (instead of endsWith) and text filtering, like having ABC and you want AB in a prop

Still a Work In Progress

telegram-notion-saver's People

Contributors

luigimasini avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.