{"id":430,"date":"2025-02-14T13:05:18","date_gmt":"2025-02-14T05:05:18","guid":{"rendered":"https:\/\/blog.laning.org\/?p=430"},"modified":"2025-03-29T17:18:47","modified_gmt":"2025-03-29T09:18:47","slug":"%e9%80%9a%e8%bf%87langbot%e5%b0%86%e5%a4%a7%e6%a8%a1%e5%9e%8b%e6%8e%a5%e5%85%a5%e5%88%b0telergram","status":"publish","type":"post","link":"https:\/\/blog.laning.org\/index.php\/2025\/02\/14\/430\/","title":{"rendered":"\u901a\u8fc7LangBot\u5c06\u5927\u6a21\u578b\u63a5\u5165\u5230Telergram"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">\u9879\u76ee\u5730\u5740<\/h2>\n\n\n\n<p><a href=\"https:\/\/github.com\/RockChinQ\/LangBot\">GitHub &#8211; RockChinQ\/LangBot: \ud83d\ude0e\u4e30\u5bcc\u751f\u6001\u3001\ud83e\udde9\u652f\u6301\u6269\u5c55\u3001\ud83e\udd84\u591a\u6a21\u6001 &#8211; \u5927\u6a21\u578b\u539f\u751f\u5373\u65f6\u901a\u4fe1\u673a\u5668\u4eba\u5e73\u53f0 | \u9002\u914d QQ \/ \u5fae\u4fe1\uff08\u4f01\u4e1a\u5fae\u4fe1\u3001\u4e2a\u4eba\u5fae\u4fe1\uff09\/ \u98de\u4e66 \/ \u9489\u9489 \/ Discord \/ Telegram \u7b49\u6d88\u606f\u5e73\u53f0 | \u652f\u6301 ChatGPT\u3001DeepSeek\u3001Dify\u3001Claude\u3001Gemini\u3001xAI Grok\u3001Ollama\u3001LM Studio\u3001\u963f\u91cc\u4e91\u767e\u70bc\u3001\u706b\u5c71\u65b9\u821f\u3001SiliconFlow\u3001Qwen\u3001Moonshot\u3001ChatGLM\u3001SillyTraven\u3001MCP \u7b49 LLM \u7684\u673a\u5668\u4eba \/ Agent | LLM-based instant messaging bots platform, supports Discord, Telegram, WeChat, Lark, DingTalk, QQ<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u90e8\u7f72\u8fc7\u7a0b<\/h2>\n\n\n\n<ol>\n<li>Git \u514b\u9686\u9879\u76ee\uff1a<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>git clone https:\/\/github.com\/RockChinQ\/LangBot<br>cd LangBot<\/code><\/pre>\n\n\n\n<ol start=\"2\">\n<li>\u542f\u52a8\u5bb9\u5668\uff1a<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>docker compose up<\/code><\/pre>\n\n\n\n<ol start=\"3\">\n<li>\u5728 LangBot \u4e2d\u586b\u5199\u4fe1\u606f\u5e76\u542f\u52a8<\/li>\n<\/ol>\n\n\n\n<p>\u5c06Telegram Bot\u7684API Token \u586b\u5199\u5230platform.json\u4e2d\u3002 \u00a0 \u00a0<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code> \u00a0 {<br>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \"adapter\": \"telegram\",<br>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \"enable\": true,<br>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \"token\": \"xxxxxxx\"<br>\u00a0 \u00a0 \u00a0 },<\/code><\/pre>\n\n\n\n<p>\u586b\u5199\u5b8c\u6210\u540e\u542f\u52a8 LangBot\uff0c\u82e5\u6210\u529f\u914d\u7f6e\uff0c\u65e5\u5fd7\u4e2d\u4f1a\u51fa\u73b0<code>[02-02 16:48:15.263] manager.py (68) - [INFO] : \u521d\u59cb\u5316\u5e73\u53f0\u9002\u914d\u5668 1: telegram<\/code>\u7684\u5b57\u6837\uff0c\u4fdd\u6301 LangBot \u8fd0\u884c\u3002<\/p>\n\n\n\n<ol start=\"4\">\n<li>provider.json \u4fee\u6539\u6b64\u914d\u7f6e\u6587\u4ef6\u4ee5\u8bbe\u7f6e\u6240\u8fde\u63a5\u7684 AI \u63d0\u4f9b\u5546\u7684\u76f8\u5173\u4fe1\u606f\uff0c\u6b64\u5904\u4f7f\u7528\u963f\u91cc\u4e91\u767e\u70bc\u5927\u6a21\u578b\uff0c\u63d0\u4f9b\u514d\u8d39\u7684API\u989d\u5ea6\u3002<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>\u00a0 \u00a0 \"bailian\": &#91;<br>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \"sk-******\"<br>\u00a0 \u00a0 \u00a0 ] \u00a0 \u00a0 \u00a0 <\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>\"bailian-chat-completions\": {<br>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \"args\": {},<br>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \"base-url\": \"https:\/\/dashscope.aliyuncs.com\/compatible-mode\/v1\",<br>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \"timeout\": 120<br>\u00a0 \u00a0 \u00a0 } \u00a0 <\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>\"model\": \"deepseek-r1\",<br>\u00a0 \"prompt-mode\": \"normal\",<br>\u00a0 \"prompt\": {<br>\u00a0 \u00a0 \u00a0 \"default\": \"\"<br>\u00a0 },<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u9879\u76ee\u5730\u5740 GitHub &#8211; RockChinQ\/LangBot: \ud83d\ude0e\u4e30\u5bcc\u751f\u6001\u3001\ud83e\udde9\u652f\u6301\u6269\u5c55\u3001\ud83e\udd84\u591a\u6a21\u6001 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v17.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u901a\u8fc7LangBot\u5c06\u5927\u6a21\u578b\u63a5\u5165\u5230Telergram &ndash; Laning &#039;s Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/blog.laning.org\/index.php\/2025\/02\/14\/430\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u901a\u8fc7LangBot\u5c06\u5927\u6a21\u578b\u63a5\u5165\u5230Telergram &ndash; Laning &#039;s Blog\" \/>\n<meta property=\"og:description\" content=\"\u9879\u76ee\u5730\u5740 GitHub &#8211; RockChinQ\/LangBot: \ud83d\ude0e\u4e30\u5bcc\u751f\u6001\u3001\ud83e\udde9\u652f\u6301\u6269\u5c55\u3001\ud83e\udd84\u591a\u6a21\u6001 [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/blog.laning.org\/index.php\/2025\/02\/14\/430\/\" \/>\n<meta property=\"og:site_name\" content=\"Laning &#039;s Blog\" \/>\n<meta property=\"article:published_time\" content=\"2025-02-14T05:05:18+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-03-29T09:18:47+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"laning\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/blog.laning.org\/#website\",\"url\":\"https:\/\/blog.laning.org\/\",\"name\":\"\\u8fa3\\u5b81\\u7684\\u535a\\u5ba2\",\"description\":\"Learning on the go\",\"publisher\":{\"@id\":\"https:\/\/blog.laning.org\/#\/schema\/person\/040331b403ed00370f2fc1e8eb6e6b93\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/blog.laning.org\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-CN\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/blog.laning.org\/index.php\/2025\/02\/14\/430\/#webpage\",\"url\":\"https:\/\/blog.laning.org\/index.php\/2025\/02\/14\/430\/\",\"name\":\"\\u901a\\u8fc7LangBot\\u5c06\\u5927\\u6a21\\u578b\\u63a5\\u5165\\u5230Telergram &ndash; Laning &#039;s Blog\",\"isPartOf\":{\"@id\":\"https:\/\/blog.laning.org\/#website\"},\"datePublished\":\"2025-02-14T05:05:18+00:00\",\"dateModified\":\"2025-03-29T09:18:47+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/blog.laning.org\/index.php\/2025\/02\/14\/430\/#breadcrumb\"},\"inLanguage\":\"zh-CN\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/blog.laning.org\/index.php\/2025\/02\/14\/430\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/blog.laning.org\/index.php\/2025\/02\/14\/430\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\\u9996\\u9875\",\"item\":\"https:\/\/blog.laning.org\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\\u901a\\u8fc7LangBot\\u5c06\\u5927\\u6a21\\u578b\\u63a5\\u5165\\u5230Telergram\"}]},{\"@type\":\"Article\",\"@id\":\"https:\/\/blog.laning.org\/index.php\/2025\/02\/14\/430\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/blog.laning.org\/index.php\/2025\/02\/14\/430\/#webpage\"},\"author\":{\"@id\":\"https:\/\/blog.laning.org\/#\/schema\/person\/040331b403ed00370f2fc1e8eb6e6b93\"},\"headline\":\"\\u901a\\u8fc7LangBot\\u5c06\\u5927\\u6a21\\u578b\\u63a5\\u5165\\u5230Telergram\",\"datePublished\":\"2025-02-14T05:05:18+00:00\",\"dateModified\":\"2025-03-29T09:18:47+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/blog.laning.org\/index.php\/2025\/02\/14\/430\/#webpage\"},\"wordCount\":54,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/blog.laning.org\/#\/schema\/person\/040331b403ed00370f2fc1e8eb6e6b93\"},\"articleSection\":[\"Linux\"],\"inLanguage\":\"zh-CN\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/blog.laning.org\/index.php\/2025\/02\/14\/430\/#respond\"]}]},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/blog.laning.org\/#\/schema\/person\/040331b403ed00370f2fc1e8eb6e6b93\",\"name\":\"laning\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/blog.laning.org\/#personlogo\",\"inLanguage\":\"zh-CN\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/17215f328425d53537532588320693a1?s=96&d=retro&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/17215f328425d53537532588320693a1?s=96&d=retro&r=g\",\"caption\":\"laning\"},\"logo\":{\"@id\":\"https:\/\/blog.laning.org\/#personlogo\"},\"sameAs\":[\"https:\/\/blog.laning.org\"],\"url\":\"https:\/\/blog.laning.org\/index.php\/author\/laning\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u901a\u8fc7LangBot\u5c06\u5927\u6a21\u578b\u63a5\u5165\u5230Telergram &ndash; Laning &#039;s Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/blog.laning.org\/index.php\/2025\/02\/14\/430\/","og_locale":"zh_CN","og_type":"article","og_title":"\u901a\u8fc7LangBot\u5c06\u5927\u6a21\u578b\u63a5\u5165\u5230Telergram &ndash; Laning &#039;s Blog","og_description":"\u9879\u76ee\u5730\u5740 GitHub &#8211; RockChinQ\/LangBot: \ud83d\ude0e\u4e30\u5bcc\u751f\u6001\u3001\ud83e\udde9\u652f\u6301\u6269\u5c55\u3001\ud83e\udd84\u591a\u6a21\u6001 [&hellip;]","og_url":"https:\/\/blog.laning.org\/index.php\/2025\/02\/14\/430\/","og_site_name":"Laning &#039;s Blog","article_published_time":"2025-02-14T05:05:18+00:00","article_modified_time":"2025-03-29T09:18:47+00:00","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"laning"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"https:\/\/blog.laning.org\/#website","url":"https:\/\/blog.laning.org\/","name":"\u8fa3\u5b81\u7684\u535a\u5ba2","description":"Learning on the go","publisher":{"@id":"https:\/\/blog.laning.org\/#\/schema\/person\/040331b403ed00370f2fc1e8eb6e6b93"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/blog.laning.org\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-CN"},{"@type":"WebPage","@id":"https:\/\/blog.laning.org\/index.php\/2025\/02\/14\/430\/#webpage","url":"https:\/\/blog.laning.org\/index.php\/2025\/02\/14\/430\/","name":"\u901a\u8fc7LangBot\u5c06\u5927\u6a21\u578b\u63a5\u5165\u5230Telergram &ndash; Laning &#039;s Blog","isPartOf":{"@id":"https:\/\/blog.laning.org\/#website"},"datePublished":"2025-02-14T05:05:18+00:00","dateModified":"2025-03-29T09:18:47+00:00","breadcrumb":{"@id":"https:\/\/blog.laning.org\/index.php\/2025\/02\/14\/430\/#breadcrumb"},"inLanguage":"zh-CN","potentialAction":[{"@type":"ReadAction","target":["https:\/\/blog.laning.org\/index.php\/2025\/02\/14\/430\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/blog.laning.org\/index.php\/2025\/02\/14\/430\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/blog.laning.org\/"},{"@type":"ListItem","position":2,"name":"\u901a\u8fc7LangBot\u5c06\u5927\u6a21\u578b\u63a5\u5165\u5230Telergram"}]},{"@type":"Article","@id":"https:\/\/blog.laning.org\/index.php\/2025\/02\/14\/430\/#article","isPartOf":{"@id":"https:\/\/blog.laning.org\/index.php\/2025\/02\/14\/430\/#webpage"},"author":{"@id":"https:\/\/blog.laning.org\/#\/schema\/person\/040331b403ed00370f2fc1e8eb6e6b93"},"headline":"\u901a\u8fc7LangBot\u5c06\u5927\u6a21\u578b\u63a5\u5165\u5230Telergram","datePublished":"2025-02-14T05:05:18+00:00","dateModified":"2025-03-29T09:18:47+00:00","mainEntityOfPage":{"@id":"https:\/\/blog.laning.org\/index.php\/2025\/02\/14\/430\/#webpage"},"wordCount":54,"commentCount":0,"publisher":{"@id":"https:\/\/blog.laning.org\/#\/schema\/person\/040331b403ed00370f2fc1e8eb6e6b93"},"articleSection":["Linux"],"inLanguage":"zh-CN","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/blog.laning.org\/index.php\/2025\/02\/14\/430\/#respond"]}]},{"@type":["Person","Organization"],"@id":"https:\/\/blog.laning.org\/#\/schema\/person\/040331b403ed00370f2fc1e8eb6e6b93","name":"laning","image":{"@type":"ImageObject","@id":"https:\/\/blog.laning.org\/#personlogo","inLanguage":"zh-CN","url":"https:\/\/secure.gravatar.com\/avatar\/17215f328425d53537532588320693a1?s=96&d=retro&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/17215f328425d53537532588320693a1?s=96&d=retro&r=g","caption":"laning"},"logo":{"@id":"https:\/\/blog.laning.org\/#personlogo"},"sameAs":["https:\/\/blog.laning.org"],"url":"https:\/\/blog.laning.org\/index.php\/author\/laning\/"}]}},"_links":{"self":[{"href":"https:\/\/blog.laning.org\/index.php\/wp-json\/wp\/v2\/posts\/430"}],"collection":[{"href":"https:\/\/blog.laning.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.laning.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.laning.org\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.laning.org\/index.php\/wp-json\/wp\/v2\/comments?post=430"}],"version-history":[{"count":2,"href":"https:\/\/blog.laning.org\/index.php\/wp-json\/wp\/v2\/posts\/430\/revisions"}],"predecessor-version":[{"id":432,"href":"https:\/\/blog.laning.org\/index.php\/wp-json\/wp\/v2\/posts\/430\/revisions\/432"}],"wp:attachment":[{"href":"https:\/\/blog.laning.org\/index.php\/wp-json\/wp\/v2\/media?parent=430"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.laning.org\/index.php\/wp-json\/wp\/v2\/categories?post=430"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.laning.org\/index.php\/wp-json\/wp\/v2\/tags?post=430"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}