pan4ratte897 downloadsAllows you to post notes directly to Telegram channels and groups with different presets and advanced posting settings.
English | Русский
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.

Create multiple presets to post to different channels and groups.
Post in different ways: with hotkeys, command palette and context menus.
Attach photos, videos, albums and documents to your posts.
Use advanced publishing settings to:
Publish pre-written commentaries to the post discussion (or as replies to the message if it was posted in a group).
Set up a default preset to post quickly with it or use command palette or hotkeys.
Optionally enable automatic post link saving to the note's properties after publishing.
Publish multiple posts in a row from a single note using a special command that splits the text into separate posts.
Detailed usage instructions, including descriptions of all features, available directly in the plugin settings.
In Obsidian settings open the tab "Community plugins" and click "Browse" button.
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
If you want to test beta-versions of the plugin or use previous versions, you can do that with BRAT plugin:
Install BRAT plugin from the official Obsidian plugin store.
In the BRAT settings, find the “Beta plugin list” section and click on the “Add beta plugin” button.
In the window that appears, paste the link to the Publish to Telegram plugin repository: https://github.com/pan4ratte/obsidian-publish-to-telegram
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.
To publish notes to Telegram, you need to configure a preset.
Use the official Telegram tool @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.
Copy your bot's API key in the app and paste this token into the corresponding field in the plugin settings.
Use the @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).
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.
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.
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 ___ |
─── |
In addition to the formatting that will be reflected in the Telegram post, you can use the comment syntax <!-- hidden text --> or %% hidden text %% to add information to your notes that will not be included in the post content when it is published.
You can also use the special command <!-- \split --> or %% \split %% to split the text of your note into separate posts. If you use this command, the plugin will publish all posts at the same time. Attachments (see below), including pre-written comments, must appear before the special command that marks the end of the post.
Media, album (groups of media) and document attachments are supported. To attach a file to your post, use any of the standard Obsidian embed syntax options:
![[some-book-file.pdf]]

!(some-video-file.mp4)[]
You can also embed files with external web-link embeds:

Currently supported formats:
| Extension | Attachment type |
|---|---|
.jpg, .jpeg, .png, .webp |
Photo / Album |
.gif |
Animation |
.mp4, .mov, .avi, .mkv, .webm |
Video / Album |
.pdf |
Document |
You can pre-write one or more comments for your post that will appear in its discussion right after the publication. To use that feature:
In the plugin settings turn on the option "Treat .md embeds as post comments".
If a comment on a post is published in a channel, the channel must have a discussion chat linked to it, and the bot must be added to this chat with administrator rights. If a comment on a post is published in a group, it will appear as a regular reply to a message.
To prepare a comment for a post, use the ![[comment-file]] embed syntax. Only files with the .md extension are treated comments.
Note that all comments are published with a slight delay.
You can call an advanced publishing settings window with command palette (Ctrl + P) by typing "Publish to Telegram: Publish with advanced settings". In that settings window you can choose to:
telegram_links property, which is filled automatically if the corresponding option is enabled in the settings. You can also create it and fill manually.Standard Telegram posting limits apply to limits of characters per post, limits of attached media size per post, etc. More about that: https://limits.tginfo.me/
My name is Mark Ingram (Ingrem), I am a Religious Studies scholar. Apart from my main area of study (Protestant Political Theology in Russia), I teach the subject "Information Technologies in Scientific Research", a unique course that I developed myself from scratch. This plugin helps me in my studies and I use it in my teaching, as well as other plugins that I develop and that you can find on my GitHub profile.
Hello to every student that came across this page!
Huge thanks to Egor Gvozdikov, who wrote the first lines of code for this project and made numerous valuable commits.