TelegramFastNotesToWikiJs 📝
TelegramFastNotesToWikiJs is a tool designed to quickly write notes from Telegram to Wiki.js. The project allows users to send photos and text messages to a Telegram bot, which automatically processes and writes this data to Wiki.js.
Follow these steps to start a project using Docker Compose:
TelegramConfiguration__OwnerId
: Your Telegram chat ID.TelegramConfiguration__Token
: Your API key for the Telegram bot.WikiJsConfiguration__BaseUri
: The address where the GraphQl api WikiJs is available.WikiJsConfiguration__Token
: Your token that is used to access the GraphQl api WikiJs.WikiJsPageTemplateConfiguration__Locale
: Localization of the quick note in WikiJs.WikiJsPageTemplateConfiguration__Description
: Description of the quick note.WikiJsPageTemplateConfiguration__Editor
: Editor for the quick note.markdown
: The application is designed for Markdown markup.
WikiJsJsPageTemplateConfiguration__IsPrivate
: Whether the quick note will be private.WikiJsJsPageTemplateConfiguration__IsPublished
: Whether the quick note will be published.WikiJsJsPageTemplateConfiguration__Path
: Path for storing quick notes.WikiJsJsPageTemplateConfiguration__Title
: The title of the quick note.WikiJsJsPageTemplateConfiguration__Tags__0
: Tag to be assigned to the quick note.
Env example
TelegramConfiguration__OwnerId=0
TelegramConfiguration__Token=XX
WikiJsConfiguration__BaseUri=http://XXX/graphql
WikiJsConfiguration__Token=XX
WikiJsPageTemplateConfiguration__Locale=en
WikiJsPageTemplateConfiguration__Description=Fast note
WikiJsPageTemplateConfiguration__Editor=markdown
WikiJsPageTemplateConfiguration__IsPrivate=true
WikiJsPageTemplateConfiguration__IsPublished=true
WikiJsPageTemplateConfiguration__Path=fast-note/
WikiJsPageTemplateConfiguration__Title=Fast note
WikiJsPageTemplateConfiguration__Tags__0=fast-note
Server address http://XXX/graphql
To get your Telegram bot token and your personal ID, follow the steps below:
- Create a new bot via @BotFather in Telegram and get the token.
- To find out your Telegram ID, write to a special bot in Telegram, for example @userinfobot.
git clone https://github.com/DreamsAreReal/TelegramFastNotesToWikiJS
- Go to the TelegramFastNotesToWikiJS folder.
- Run the project.
docker-compose build
docker-compose --env-file env.env up -d
docker-compose --env-file env.env.env down
- Project only accepts photos and text messages.
- The application is designed for Markdown markup.