{"id":421,"date":"2024-12-04T16:18:29","date_gmt":"2024-12-04T08:18:29","guid":{"rendered":"https:\/\/blog.laning.org\/?p=421"},"modified":"2025-03-29T17:19:11","modified_gmt":"2025-03-29T09:19:11","slug":"%e4%bd%bf%e7%94%a8-telegram-%e4%bd%9c%e4%b8%ba%e5%ad%98%e5%82%a8%e5%90%8e%e7%ab%af%e7%9a%84%e5%9b%be%e5%ba%8a%e7%a8%8b%e5%ba%8f","status":"publish","type":"post","link":"https:\/\/blog.laning.org\/index.php\/2024\/12\/04\/421\/","title":{"rendered":"\u4f7f\u7528 Telegram \u4f5c\u4e3a\u5b58\u50a8\u540e\u7aef\u7684\u56fe\u5e8a\u7a0b\u5e8f"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">\u9879\u76ee\u5730\u5740<\/h2>\n\n\n\n<p><a href=\"https:\/\/github.com\/nodeseeker\/goImage\">GitHub &#8211; nodeseeker\/goImage: \u57fa\u4e8e Go \u5f00\u53d1\u7684\u56fe\u7247\u6258\u7ba1\u670d\u52a1\uff0c\u4f7f\u7528 Telegram \u4f5c\u4e3a\u5b58\u50a8\u540e\u7aef\u3002<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/github.com\/laningya\/goImage\">GitHub &#8211; laningya\/goImage: \u57fa\u4e8e Go \u5f00\u53d1\u7684\u56fe\u7247\u6258\u7ba1\u670d\u52a1\uff0c\u4f7f\u7528 Telegram \u4f5c\u4e3a\u5b58\u50a8\u540e\u7aef\u3002<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u90e8\u7f72\u6d41\u7a0b<\/h2>\n\n\n\n<ol>\n<li>\u62c9\u53d6Dockerfile\u5e76\u672c\u5730\u6784\u5efa\u955c\u50cf<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>wget https:\/\/raw.githubusercontent.com\/laningya\/goImage\/refs\/heads\/main\/Dockerfile<br>docker build -t image .<\/code><\/pre>\n\n\n\n<ol start=\"2\">\n<li>\u62c9\u53d6docker-compose.yml\u6587\u4ef6<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>wget https:\/\/raw.githubusercontent.com\/laningya\/goImage\/refs\/heads\/main\/docker-compose.yml<\/code><\/pre>\n\n\n\n<ol start=\"3\">\n<li>\u62c9\u53d6config.json\u6587\u4ef6<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>wget https:\/\/raw.githubusercontent.com\/laningya\/goImage\/refs\/heads\/main\/config.json<\/code><\/pre>\n\n\n\n<p>config.json\u6587\u4ef6\u8bf4\u660e\u5982\u4e0b\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{<br>\u00a0 \u00a0\"telegram\": {<br>\u00a0 \u00a0 \u00a0 \u00a0\"token\": \"1234567890:ABCDEFG_ab1-asdfghjkl12345\",<br>\u00a0 \u00a0 \u00a0 \u00a0\"chatId\": -123456789<br>\u00a0 },<br>\u00a0 \u00a0\"admin\": {<br>\u00a0 \u00a0 \u00a0 \u00a0\"username\": \"nodeseeker\",<br>\u00a0 \u00a0 \u00a0 \u00a0\"password\": \"nodeseeker@123456\"<br>\u00a0 },<br>\u00a0 \u00a0\"site\": {<br>\u00a0 \u00a0 \u00a0 \u00a0\"name\": \"NodeSeek\",<br>\u00a0 \u00a0 \u00a0 \u00a0\"maxFileSize\": 10,<br>\u00a0 \u00a0 \u00a0 \u00a0\"port\": 18080,<br>\u00a0 \u00a0 \u00a0 \u00a0\"host\": \"127.0.0.1\"<br>\u00a0 }<br>}<\/code><\/pre>\n\n\n\n<ul>\n<li><code>telegram.token<\/code>\uff1a\u7535\u62a5\u673a\u5668\u4eba\u7684Bot Token<\/li>\n\n\n\n<li><code>telegram.chatId<\/code>\uff1a\u9891\u9053\u7684Chat ID<\/li>\n\n\n\n<li><code>admin.username<\/code>\uff1a\u7f51\u7ad9\u7ba1\u7406\u5458\u7528\u6237\u540d<\/li>\n\n\n\n<li><code>admin.password<\/code>\uff1a\u7f51\u7ad9\u7ba1\u7406\u5458\u5bc6\u7801<\/li>\n\n\n\n<li><code>site.name<\/code>\uff1a\u7f51\u7ad9\u540d\u79f0<\/li>\n\n\n\n<li><code>site.maxFileSize<\/code>\uff1a\u6700\u5927\u4e0a\u4f20\u6587\u4ef6\u5927\u5c0f\uff08\u5355\u4f4d\uff1aMB\uff09\uff0c\u5efa\u8bae10MB<\/li>\n\n\n\n<li><code>site.port<\/code>\uff1a\u670d\u52a1\u7aef\u53e3\uff0c\u9ed8\u8ba418080<\/li>\n\n\n\n<li><code>site.host<\/code>\uff1a\u670d\u52a1\u76d1\u542c\u5730\u5740\uff0c\u9ed8\u8ba4127.0.0.0\u672c\u5730\u76d1\u542c\uff1b\u5982\u679c\u9700\u8981\u8c03\u8bd5\u6216\u5916\u7f51\u8bbf\u95ee\uff0c\u53ef\u4fee\u6539\u4e3a0.0.0.0<\/li>\n<\/ul>\n\n\n\n<p>\u4ee5\u4e0a\u53c2\u6570\u83b7\u53d6\u65b9\u5f0f\uff1a<\/p>\n\n\n\n<ul>\n<li>\u521b\u5efa Telegram Bot\uff08\u901a\u8fc7 @BotFather\uff09<\/li>\n\n\n\n<li>\u8bb0\u5f55\u83b7\u53d6\u7684 Bot Token<\/li>\n\n\n\n<li>\u521b\u5efa\u4e00\u4e2a\u9891\u9053\u7528\u4e8e\u5b58\u50a8\u56fe\u7247<\/li>\n\n\n\n<li>\u5c06 Bot \u6dfb\u52a0\u4e3a\u9891\u9053\u7ba1\u7406\u5458<\/li>\n\n\n\n<li>\u83b7\u53d6\u9891\u9053\u7684 Chat ID\uff08\u53ef\u901a\u8fc7 @getidsbot \u83b7\u53d6\uff09<\/li>\n<\/ul>\n\n\n\n<ol start=\"4\">\n<li>\u542f\u52a8\u5bb9\u5668<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>docker-compose up -d<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u9879\u76ee\u5730\u5740 GitHub &#8211; nodeseeker\/goImage: \u57fa\u4e8e Go \u5f00\u53d1\u7684\u56fe\u7247\u6258\u7ba1\u670d\u52a1 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,3],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v17.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u4f7f\u7528 Telegram \u4f5c\u4e3a\u5b58\u50a8\u540e\u7aef\u7684\u56fe\u5e8a\u7a0b\u5e8f &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\/2024\/12\/04\/421\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u4f7f\u7528 Telegram \u4f5c\u4e3a\u5b58\u50a8\u540e\u7aef\u7684\u56fe\u5e8a\u7a0b\u5e8f &ndash; Laning &#039;s Blog\" \/>\n<meta property=\"og:description\" content=\"\u9879\u76ee\u5730\u5740 GitHub &#8211; nodeseeker\/goImage: \u57fa\u4e8e Go \u5f00\u53d1\u7684\u56fe\u7247\u6258\u7ba1\u670d\u52a1 [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/blog.laning.org\/index.php\/2024\/12\/04\/421\/\" \/>\n<meta property=\"og:site_name\" content=\"Laning &#039;s Blog\" \/>\n<meta property=\"article:published_time\" content=\"2024-12-04T08:18:29+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-03-29T09:19:11+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\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1\u5206\" \/>\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\/2024\/12\/04\/421\/#webpage\",\"url\":\"https:\/\/blog.laning.org\/index.php\/2024\/12\/04\/421\/\",\"name\":\"\\u4f7f\\u7528 Telegram \\u4f5c\\u4e3a\\u5b58\\u50a8\\u540e\\u7aef\\u7684\\u56fe\\u5e8a\\u7a0b\\u5e8f &ndash; Laning &#039;s Blog\",\"isPartOf\":{\"@id\":\"https:\/\/blog.laning.org\/#website\"},\"datePublished\":\"2024-12-04T08:18:29+00:00\",\"dateModified\":\"2025-03-29T09:19:11+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/blog.laning.org\/index.php\/2024\/12\/04\/421\/#breadcrumb\"},\"inLanguage\":\"zh-CN\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/blog.laning.org\/index.php\/2024\/12\/04\/421\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/blog.laning.org\/index.php\/2024\/12\/04\/421\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\\u9996\\u9875\",\"item\":\"https:\/\/blog.laning.org\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\\u4f7f\\u7528 Telegram \\u4f5c\\u4e3a\\u5b58\\u50a8\\u540e\\u7aef\\u7684\\u56fe\\u5e8a\\u7a0b\\u5e8f\"}]},{\"@type\":\"Article\",\"@id\":\"https:\/\/blog.laning.org\/index.php\/2024\/12\/04\/421\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/blog.laning.org\/index.php\/2024\/12\/04\/421\/#webpage\"},\"author\":{\"@id\":\"https:\/\/blog.laning.org\/#\/schema\/person\/040331b403ed00370f2fc1e8eb6e6b93\"},\"headline\":\"\\u4f7f\\u7528 Telegram \\u4f5c\\u4e3a\\u5b58\\u50a8\\u540e\\u7aef\\u7684\\u56fe\\u5e8a\\u7a0b\\u5e8f\",\"datePublished\":\"2024-12-04T08:18:29+00:00\",\"dateModified\":\"2025-03-29T09:19:11+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/blog.laning.org\/index.php\/2024\/12\/04\/421\/#webpage\"},\"wordCount\":35,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/blog.laning.org\/#\/schema\/person\/040331b403ed00370f2fc1e8eb6e6b93\"},\"articleSection\":[\"Docker\",\"Github\"],\"inLanguage\":\"zh-CN\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/blog.laning.org\/index.php\/2024\/12\/04\/421\/#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":"\u4f7f\u7528 Telegram \u4f5c\u4e3a\u5b58\u50a8\u540e\u7aef\u7684\u56fe\u5e8a\u7a0b\u5e8f &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\/2024\/12\/04\/421\/","og_locale":"zh_CN","og_type":"article","og_title":"\u4f7f\u7528 Telegram \u4f5c\u4e3a\u5b58\u50a8\u540e\u7aef\u7684\u56fe\u5e8a\u7a0b\u5e8f &ndash; Laning &#039;s Blog","og_description":"\u9879\u76ee\u5730\u5740 GitHub &#8211; nodeseeker\/goImage: \u57fa\u4e8e Go \u5f00\u53d1\u7684\u56fe\u7247\u6258\u7ba1\u670d\u52a1 [&hellip;]","og_url":"https:\/\/blog.laning.org\/index.php\/2024\/12\/04\/421\/","og_site_name":"Laning &#039;s Blog","article_published_time":"2024-12-04T08:18:29+00:00","article_modified_time":"2025-03-29T09:19:11+00:00","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"laning","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1\u5206"},"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\/2024\/12\/04\/421\/#webpage","url":"https:\/\/blog.laning.org\/index.php\/2024\/12\/04\/421\/","name":"\u4f7f\u7528 Telegram \u4f5c\u4e3a\u5b58\u50a8\u540e\u7aef\u7684\u56fe\u5e8a\u7a0b\u5e8f &ndash; Laning &#039;s Blog","isPartOf":{"@id":"https:\/\/blog.laning.org\/#website"},"datePublished":"2024-12-04T08:18:29+00:00","dateModified":"2025-03-29T09:19:11+00:00","breadcrumb":{"@id":"https:\/\/blog.laning.org\/index.php\/2024\/12\/04\/421\/#breadcrumb"},"inLanguage":"zh-CN","potentialAction":[{"@type":"ReadAction","target":["https:\/\/blog.laning.org\/index.php\/2024\/12\/04\/421\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/blog.laning.org\/index.php\/2024\/12\/04\/421\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/blog.laning.org\/"},{"@type":"ListItem","position":2,"name":"\u4f7f\u7528 Telegram \u4f5c\u4e3a\u5b58\u50a8\u540e\u7aef\u7684\u56fe\u5e8a\u7a0b\u5e8f"}]},{"@type":"Article","@id":"https:\/\/blog.laning.org\/index.php\/2024\/12\/04\/421\/#article","isPartOf":{"@id":"https:\/\/blog.laning.org\/index.php\/2024\/12\/04\/421\/#webpage"},"author":{"@id":"https:\/\/blog.laning.org\/#\/schema\/person\/040331b403ed00370f2fc1e8eb6e6b93"},"headline":"\u4f7f\u7528 Telegram \u4f5c\u4e3a\u5b58\u50a8\u540e\u7aef\u7684\u56fe\u5e8a\u7a0b\u5e8f","datePublished":"2024-12-04T08:18:29+00:00","dateModified":"2025-03-29T09:19:11+00:00","mainEntityOfPage":{"@id":"https:\/\/blog.laning.org\/index.php\/2024\/12\/04\/421\/#webpage"},"wordCount":35,"commentCount":0,"publisher":{"@id":"https:\/\/blog.laning.org\/#\/schema\/person\/040331b403ed00370f2fc1e8eb6e6b93"},"articleSection":["Docker","Github"],"inLanguage":"zh-CN","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/blog.laning.org\/index.php\/2024\/12\/04\/421\/#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\/421"}],"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=421"}],"version-history":[{"count":2,"href":"https:\/\/blog.laning.org\/index.php\/wp-json\/wp\/v2\/posts\/421\/revisions"}],"predecessor-version":[{"id":423,"href":"https:\/\/blog.laning.org\/index.php\/wp-json\/wp\/v2\/posts\/421\/revisions\/423"}],"wp:attachment":[{"href":"https:\/\/blog.laning.org\/index.php\/wp-json\/wp\/v2\/media?parent=421"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.laning.org\/index.php\/wp-json\/wp\/v2\/categories?post=421"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.laning.org\/index.php\/wp-json\/wp\/v2\/tags?post=421"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}