Files
Memoh/assets/zh_channels_telegram.md.aog6LT57.js
2026-04-24 06:37:27 +00:00

2 lines
3.0 KiB
JavaScript
Raw Permalink Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import{_ as o,o as r,c as t,ag as a}from"./chunks/framework.CAXxHpAX.js";const c=JSON.parse('{"title":"Telegram","description":"","frontmatter":{},"headers":[],"relativePath":"zh/channels/telegram.md","filePath":"zh/channels/telegram.md","lastUpdated":1777012567000}'),l={name:"zh/channels/telegram.md"};function n(s,e,i,g,m,h){return r(),t("div",null,[...e[0]||(e[0]=[a('<h1 id="telegram" tabindex="-1">Telegram <a class="header-anchor" href="#telegram" aria-label="Permalink to &quot;Telegram&quot;"></a></h1><p>把 Memoh 机器人接到 Telegram。Memoh 对 TG 支持较全:流式、Markdown、附件等。</p><h2 id="_1-在-telegram-建-bot" tabindex="-1">1. 在 Telegram 建 Bot <a class="header-anchor" href="#_1-在-telegram-建-bot" aria-label="Permalink to &quot;1. 在 Telegram 建 Bot&quot;"></a></h2><p>先要有一个 <strong>API Token</strong>。</p><ol><li>在 Telegram 里搜官方 <strong>@BotFather</strong>。</li><li>发 <code>/newbot</code>。</li><li>按提示填: <ul><li><strong>Name</strong>:展示名,如 <code>My Memoh Bot</code>。</li><li><strong>Username</strong>:全局唯一、以 <code>bot</code> 结尾,如 <code>my_memoh_bot</code>。</li></ul></li><li>BotFather 会给 <strong>API Token</strong>(形如 <code>123456789:ABC...</code>)。<strong>不要泄露。</strong></li></ol><blockquote><p>官方说明:<a href="https://core.telegram.org/bots/tutorial" target="_blank" rel="noreferrer">Telegram Bot Tutorial</a></p></blockquote><h2 id="_2-在-memoh-里填" tabindex="-1">2. 在 Memoh 里填 <a class="header-anchor" href="#_2-在-memoh-里填" aria-label="Permalink to &quot;2. 在 Memoh 里填&quot;"></a></h2><ol><li>网页里打开机器人 <strong>详情</strong> → <strong>Platforms</strong>。</li><li><strong>Add Channel</strong> → 选 <strong>Telegram</strong>。</li><li>把 <strong>API Token</strong> 填进凭据。</li><li><strong>Save and Enable</strong>。</li></ol><h2 id="_3-绑定身份-可选" tabindex="-1">3. 绑定身份(可选) <a class="header-anchor" href="#_3-绑定身份-可选" aria-label="Permalink to &quot;3. 绑定身份(可选)&quot;"></a></h2><p>把 Telegram 身份绑到 Memoh 账号后,跨渠道也能认出同一个人。</p><ol><li>网页 <strong>Profile</strong> → <strong>Bind Code</strong>。</li><li>选 <strong>Telegram</strong>,点 <strong>Generate</strong>,复制码。</li><li>在 Telegram 里跟你的机器人私聊,把绑定码发过去。</li><li>机器人应回复绑定成功。</li></ol><h2 id="支持的能力" tabindex="-1">支持的能力 <a class="header-anchor" href="#支持的能力" aria-label="Permalink to &quot;支持的能力&quot;"></a></h2><ul><li><strong>流式</strong>:边生成边出字。</li><li><strong>Markdown</strong>:粗体、斜体、代码块、链接等。</li><li><strong>附件</strong>:收图/文件,机器人也可发文件。</li><li><strong>回复链</strong>:跟贴上下文能用于推理。</li></ul>',13)])])}const _=o(l,[["render",n]]);export{c as __pageData,_ as default};