
Publish From Telegram: Forward a File, Get a Link Back
The dochost Telegram bot turns a forwarded Markdown or HTML file into a public link without leaving the chat. No account needed, and you can connect one later.
Sharing a document inside a chat has an awkward shape. You have a .md file from an AI assistant or a colleague, and the person you want to show it to cannot read it as a file — they need a page. So the file goes to a laptop, gets uploaded somewhere, and a link comes back the long way round.
@dochost_bot removes that detour. Forward the file to the bot, or paste the text straight into the chat, and it replies with a public link.
What it does
- Forward a file. Send a
.mdor.htmlfile to the bot and it publishes it, then replies with the URL. - Or just paste. Paste Markdown or HTML as a message and it does the same thing.
- No account required. Anonymous links work exactly like anonymous links on the site: free, and they expire after 7 days.
- Connect an account when you want one.
/linkattaches the chat to a dochost account, so pages published from Telegram land in the same dashboard as everything else and follow your plan's limits.
Commands: /start, /link, /account, /unlink, /about.
Why forwarding rather than copy-paste
On a phone, "copy this Markdown out of one app, open a browser, paste it into a form, publish, copy the link, go back" is five app switches. Forwarding is three taps and never leaves Telegram. That difference is the whole reason the bot exists — the underlying publish is the same one the website uses.
It also handles the case where the document is genuinely a file rather than text you can select. A .md attachment in a group chat cannot be copy-pasted on mobile in any pleasant way; it can be forwarded.
What stays the same
Pages published from Telegram are ordinary dochost pages. They are served from the cookieless content host with scripts disabled, exactly like pages published from the web, the browser extension or the MCP server. Nothing an author sends can execute in a reader's session.
The 7-day expiry on anonymous links also applies. If a page is meant to stick around, sign in and it becomes permanent — see pricing.
Try it
Open @dochost_bot, send /start, then forward it a Markdown file. If you want the pages tied to your account afterwards, send /link and follow the one-time flow.
更多文章

How to Share a Formatted Document Without Sending an Attachment
Attachments break formatting, trigger download warnings, and die on phones — here's how to put a Markdown or HTML document at a link instead.

GitHub Gist vs dochost for Sharing Rendered Markdown
Gist is great for code snippets, but it wraps your Markdown in GitHub chrome and won't render HTML at all — when a clean standalone page is the better send.

How to Share a Mermaid Diagram as a Link
The fastest way to turn Mermaid code into a rendered diagram anyone can open in a browser — no screenshots, no repo, and no account required.
邮件列表
加入我们的社区
订阅邮件列表,及时获取最新消息和更新