Telegram2Notion Quarkus Docs
Telegram2Notion is a small application developed with the Quarkus framework with which it is possible to save links that are sent to a Telegram Bot in a Notion database. It is also possible to tag the links sent to the bot with hashtags to better organize your database.
Here is a small demo of the application:
On the examples page you can find examples of use of the bot.
- TelegramBots: Java library to create bots using Telegram Bots API
- Project Lombok: Spice up your java: Automatic Resource Management, automatic generation of getters, setters, equals, hashCode and toString, and more!
- jsoup: jsoup is a Java library for working with real-world HTML. It provides a very convenient API for fetching URLs and extracting and manipulating data, using the best of HTML5 DOM methods and CSS selectors. jsoup implements the WHATWG HTML5 specification, and parses HTML to the same DOM as modern browsers do
- SmallRye Health: allows applications to provide information about their state to external viewers where automated processes must be able to determine whether the application should be discarded or restarted
As a Quarkus application made with Maven you can build an über-jar with the following command:
./mvnw package -Dquarkus.package.type=uber-jar
and run on a server with Java installed with:
nohup java -jar telegram2notion-*.jar &
more information can be found in the Quarkus docs section of the documentation.
This diagram shows how the application works: