This plugin integrates Telegram with SiYuan, allowing users to manage their Telegram messages directly within SiYuan using a Telegram bot. It supports creating daily notes, managing messages, and more.
- Telegram Integration: Manage your Telegram messages directly from SiYuan.
- Daily Notes Creation: Automatically create daily notes with messages.
- Message Management: Organize and categorize your messages within SiYuan.
- Customizable Settings: Adjust the plugin's behavior to fit your workflow.
-
Create a Telegram Bot: Follow the instructions on Telegram's BotFather page to create a new bot. Use the
/newbot
command to start the process. After choosing a name for your bot, BotFather will provide you with a token. -
Configure the Plugin:
- Paste the Telegram bot token into the plugin settings under
Bot token
. - In the
Notebook
field, select the notebook you want to use. If you don't have any notebooks, please create one first. - Add your Telegram username in the
Authorized username from Telegram
field. This is crucial for security, as your bot is publicly findable, and you don't want unauthorized users sending messages to it. If left empty, all messages from all users will be processed. - Adjust the polling interval under
Polling interval (seconds)
. This interval determines how often the plugin checks for new messages from the Telegram bot. If you want to disable polling, just set the value to 0.
- Paste the Telegram bot token into the plugin settings under
-
Start Using the Plugin:
- Messages will appear in the
Telegram Inbox Plugin
dock, located in the bottom left corner of SiYuan. You can add these messages to your daily journal. - Open a chat with your bot in Telegram and type the
/start
command. - Send any message to this chat, and it will be added to your SiYuan in the
Telegram Inbox Plugin
dock within the polling interval you set (default is 60 seconds).
- Messages will appear in the
- Messages will be pulled from Telegram only if the SiYuan application is running.
- If the SiYuan application is not opened for more than 24 hours, messages from Telegram will be lost, and you will need to resend them.
Contributions are welcome! Please read the contributing guidelines for more information on how to contribute to this project.
- Build the Plugin: Run
pnpm run build
to build the plugin. - Install the Plugin: Copy the
dist
folder to your SiYuan plugins directory.
- Accessing the Plugin: Once installed, access the plugin from the SiYuan sidebar.
- Managing Messages: Use the plugin's UI to manage your Telegram messages within SiYuan.
- Creating Daily Notes: The plugin can automatically create daily notes with your messages.
If you encounter any issues, please check the FAQ section or open an issue on GitHub.
This project is licensed under the MIT License. See the LICENSE file for details.