# Publish to Telegram plugin English | [Русский](https://github.com/pan4ratte/obsidian-publish-to-telegram/blob/main/README_RU.md) This plugin allows you to post notes directly to Telegram channels and groups with different presets. The plugin works through your personal bot, sending to it contents of an active note and information about the channel/group to post to. All standard Telegram formatting options are supported, as well as photo, album and document uploads, plus some advanced publishing settings are available.  ## Features 1. Create multiple presets to post to different channels and groups. 2. Post in different ways: with hotkeys, command palette and context menus. 3. Attach photos, videos, albums and documents to your posts. 4. Use advanced publishing settings to: * Post to multiple channels/groups at once. * Post without sound. * Post with attached media under the text. * Edit already existing post. 5. Publish pre-written commentaries to the post discussion (or as replies to the message if it was posted in a group). 6. Set up a default preset to post quickly with it or use command palette or hotkeys. 7. Optionally enable automatic post link saving to the note's properties after publishing. 8. Publish multiple posts in a row from a single note using a special command that splits the text into separate posts. 9. Detailed usage instructions, including descriptions of all features, available directly in the plugin settings. ## Installation ### Option 1: Obsidian plugin store 1. In Obsidian settings open the tab "Community plugins" and click "Browse" button. 2. In the search bar type `Publish to Telegram`, click on the result, then "Install" and "Enable" buttons. Alternatively, you can install the plugin by following the link to the community website: [https://community.obsidian.md/plugins/publish-to-telegram](https://community.obsidian.md/plugins/publish-to-telegram) ### Option 2: BRAT plugin If you want to test beta-versions of the plugin or use previous versions, you can do that with `BRAT` plugin: 1. Install `BRAT` plugin from the official Obsidian plugin store. 2. In the `BRAT` settings, find the “Beta plugin list” section and click on the “Add beta plugin” button. 3. In the window that appears, paste the link to the `Publish to Telegram` plugin repository: [https://github.com/pan4ratte/obsidian-publish-to-telegram](https://github.com/pan4ratte/obsidian-publish-to-telegram) 4. Under “Select a version” choose the desired version and click the “Add plugin” button. The plugin will be automatically installed and will be ready to use. ## Usage ### Presets To publish notes to Telegram, you need to configure a preset. 1. Use the official Telegram tool [@BotFather](https://t.me/BotFather) to create your own bot, following the instructions in the app. If you plan to post to group or make pre-written commentaries for posts, in the bot settings go to the "Bot Settings" menu, find the section "Groups and Channels" and turn of the "Group Privacy" option. 2. Copy your bot's API key in the app and paste this token into the corresponding field in the plugin settings. 3. Use the [@userinfobot](https://t.me/userinfobot) tool to get the ID of the channel/group where you plan to post. You can also get your account ID if you want to use the preset to send messages to yourself (the bot will send you messages to you personally — do not forget to start a conversation with the bot first). 4. Copy the ID of the target channel/group and paste it into the corresponding field in the plugin settings. Alternatively, if you will post to the *public* channel, you can paste to that field the link to the channel in the format `@channel_name`. 5. While in Telegram, add the bot you created to the target channel/group and assign it the role of administrator. Give the bot permission to only publish messages. Now you can publish notes in Telegram using your preset name via the command palette or the note's context menu. ### Formatting All standard Telegram formatting elements are supported as well as some additional:
| Obsidian Input | Telegram Result |
|---|---|
**Bold** |
Bold |
*Italic* |
Italic |
<u>Underline</u> |
Underline |
~~Strikethrough~~ |
|
<span class="tg-spoiler">Spoiler</span> |
Spoiler |
`Inline code` |
Inline code |
[Link](url) |
Link |
> Quote |
Quote |
Code block ``` |
|
- List |
|
# Heading |
Heading |
--- or *** or ___ |
─── |