{"id":709,"date":"2022-05-24T09:44:01","date_gmt":"2022-05-24T01:44:01","guid":{"rendered":"http:\/\/qssjx.com\/?p=709"},"modified":"2023-03-01T16:47:08","modified_gmt":"2023-03-01T08:47:08","slug":"%e4%bd%bf%e7%94%a8tg%e6%9c%ba%e5%99%a8%e4%ba%ba%e8%87%aa%e5%8a%a8%e4%b8%8b%e8%bd%bd%e5%b9%b6%e4%b8%8a%e4%bc%a0%e9%a2%91%e9%81%93%e5%86%85%e6%96%87%e4%bb%b6","status":"publish","type":"post","link":"http:\/\/qssjx.com\/?p=709","title":{"rendered":"\u4f7f\u7528tg\u673a\u5668\u4eba\u81ea\u52a8\u4e0b\u8f7d\u5e76\u4e0a\u4f20\u9891\u9053\u5185\u6587\u4ef6"},"content":{"rendered":"<p>\u56e0\u4e3a\u9700\u8981\u7ecf\u5e38\u8f6c\u5b58tg\u7fa4\u91cc\u7684\u6587\u4ef6\uff0c\u4e00\u65e6\u591a\u8d77\u6765\u5c31\u5f97\u7ecf\u5e38\u624b\u52a8\u8f6c\u5b58\uff0c\u4e8e\u662f\u5728GitHub\u627e\u5230\u4e86\u4e00\u4e2a\u81ea\u52a8\u4e0b\u8f7d\u5e76\u4e0a\u4f20\u5230OD\u3001GD\u7684tg\u673a\u5668\u4eba\u6e90\u7801\u3002\u642d\u5efa\u8fc7\u7a0b\u4e2d\uff0c\u535a\u4e3b\u4f7f\u7528\u7684\u662fDebian9\u7cfb\u7edf\uff0c\u811a\u672c\u4f5c\u8005\u4f7f\u7528\u7684\u662fUbuntu 18.04.5\u3002\u5176\u4ed6\u7cfb\u7edf\u81ea\u6d4b\u3002\u540c\u65f6\uff0c\u642d\u5efa\u8fc7\u7a0b\u9700\u8981 python3.6.9 \u73af\u5883\uff0c\u7ecf\u8fc7\u5b9e\u6d4b\uff0c\u901a\u8fc7apt-get\u81ea\u52a8\u5b89\u88c5\u7684\u662f python3.5\uff0c\u8fd0\u884c\u8be5\u811a\u672c\u4f1a\u62a5\u9519\u3002<\/p>\n<p>\u5982\u679c\u8fd0\u884c\u8fd0\u884c\u811a\u672c\u65f6\u51fa\u73b0164\u884c\u62a5\u9519\uff0c\u90a3\u53ef\u80fd\u5c31\u662f\u4f60\u7684\u7cfb\u7edf\u6216\u662f\u73af\u5883\u95ee\u9898\uff0c\u8fd9\u4e00\u70b9\u8981\u6ce8\u610f\u3002<\/p>\n<p><strong>GitHub\u5730\u5740\uff1a<\/strong><a href=\"https:\/\/cnboy.org\/go.php?aHR0cHM6Ly9naXRodWIuY29tL3Nub3c5MjI4NDEvdGVsZWdyYW1fY2hhbm5lbF9kb3dubG9hZGVy\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" rel=\"nofollow\" >telegram_channel_downloader<\/a><\/p>\n<h1><strong>\u4e00. Telegram API \u7533\u8bf7<\/strong><\/h1>\n<p>\u8fdb\u5165\u00a0<a href=\"https:\/\/cnboy.org\/go.php?aHR0cHM6Ly9teS50ZWxlZ3JhbS5vcmcvYXBwcw==\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" rel=\"nofollow\" >https:\/\/my.telegram.org\/apps<\/a>\u00a0\uff0c\u767b\u5f55\u540e\u9009\u62e9 Apps \uff0c\u586b\u5199\u76f8\u5173\u4fe1\u606f\u540e\u81ea\u52a8\u751f\u6210 apiId \u548c apiHash \u7b49\u4fe1\u606f\u3002\u5982\u679c\u4e4b\u524d\u7533\u8bf7\u8fc7\uff0c\u8fdb\u5165 Apps \u540e\u5373\u53ef\u770b\u5230\u3002<\/p>\n<p>\u8fd9\u4e2a\u5f88\u7b80\u5355\uff0c\u8fd9\u91cc\u5c31\u4e0d\u5570\u55e6\u4e86\u3002<\/p>\n<h1><strong>\u4e8c. \u5b89\u88c5 python3.6.9<\/strong><\/h1>\n<p>1. \u5b89\u88c5 aptitude \u53ca \u4f9d\u8d56\u5305<\/p>\n<pre class=\"prettyprint\">&lt;span class=&quot;pln&quot;&gt;sudo apt&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;-&lt;\/span&gt;&lt;span class=&quot;kwd&quot;&gt;get&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt; install aptitude\r\nsudo aptitude &lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;-&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;y install gcc make zlib1g&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;-&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;dev libffi&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;-&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;dev libssl&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;-&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;dev&lt;\/span&gt;<\/pre>\n<p>2. \u4e0b\u8f7d Python 3.6.9\uff0c\u89e3\u538b\u5e76\u6388\u4e88\u6743\u9650<\/p>\n<pre class=\"prettyprint\">&lt;span class=&quot;pln&quot;&gt;wget https&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;:&lt;\/span&gt;&lt;span class=&quot;com&quot;&gt;\/\/www.python.org\/ftp\/python\/3.6.9\/Python-3.6.9.tgz&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;\r\ntar &lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;-&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;xzvf &lt;\/span&gt;&lt;span class=&quot;typ&quot;&gt;Python&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;-&lt;\/span&gt;&lt;span class=&quot;lit&quot;&gt;3.6&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;\/span&gt;&lt;span class=&quot;lit&quot;&gt;9.tgz&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;\r\nchmod &lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;-&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;R &lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;+&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;x &lt;\/span&gt;&lt;span class=&quot;typ&quot;&gt;Python&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;-&lt;\/span&gt;&lt;span class=&quot;lit&quot;&gt;3.6&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;\/span&gt;&lt;span class=&quot;lit&quot;&gt;9&lt;\/span&gt;<\/pre>\n<p>3. \u8fdb\u5165\u6587\u4ef6\u5939\uff0c\u6267\u884c\u5b89\u88c5\u914d\u7f6e\uff0c\u5f00\u59cb\u7f16\u8bd1\u5b89\u88c5<\/p>\n<pre class=\"prettyprint\">&lt;span class=&quot;pln&quot;&gt;cd &lt;\/span&gt;&lt;span class=&quot;typ&quot;&gt;Python&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;-&lt;\/span&gt;&lt;span class=&quot;lit&quot;&gt;3.6&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;\/span&gt;&lt;span class=&quot;lit&quot;&gt;9&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;\/&lt;\/span&gt;\r\n&lt;span class=&quot;pun&quot;&gt;.\/&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;configure &lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;--&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;prefix&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;\/span&gt;&lt;span class=&quot;str&quot;&gt;\/usr\/&lt;\/span&gt;&lt;span class=&quot;kwd&quot;&gt;local&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;\/&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;python36\r\nmake &lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;&amp;&amp;&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt; make install&lt;\/span&gt;<\/pre>\n<p>4. \u5bf9 python \u8fd0\u8425\u6587\u4ef6\u5939\u8d4b\u4e88\u6743\u9650<\/p>\n<pre class=\"prettyprint\">&lt;span class=&quot;pln&quot;&gt;sudo chmod &lt;\/span&gt;&lt;span class=&quot;lit&quot;&gt;777&lt;\/span&gt; &lt;span class=&quot;pun&quot;&gt;-&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;R &lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;\/&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;usr&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;\/&lt;\/span&gt;&lt;span class=&quot;kwd&quot;&gt;local&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;\/&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;python36&lt;\/span&gt;<\/pre>\n<p>5. \u6dfb\u52a0PATH\u73af\u5883\u53d8\u91cf<\/p>\n<pre class=\"prettyprint\">&lt;span class=&quot;pln&quot;&gt;vim &lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;~&lt;\/span&gt;&lt;span class=&quot;str&quot;&gt;\/.bashrc\r\n\r\n\u5728\u6587\u4ef6\u672b\u5c3e\u6dfb\u52a0\uff1aexport PATH=\/&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;usr&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;\/&lt;\/span&gt;&lt;span class=&quot;kwd&quot;&gt;local&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;\/&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;python36&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;\/&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;bin&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;:&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;$PATH\r\n\r\nsource &lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;~\/.&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;bashrc&lt;\/span&gt;<\/pre>\n<p>6. \u6dfb\u52a0\u5feb\u6377\u65b9\u5f0f<\/p>\n<pre class=\"prettyprint\">&lt;span class=&quot;pln&quot;&gt;ln &lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;-&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;s &lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;\/&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;usr&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;\/&lt;\/span&gt;&lt;span class=&quot;kwd&quot;&gt;local&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;\/&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;python36&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;\/&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;bin&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;\/&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;python3&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;\/span&gt;&lt;span class=&quot;lit&quot;&gt;6&lt;\/span&gt; &lt;span class=&quot;pun&quot;&gt;\/&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;usr&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;\/&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;bin&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;\/&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;python3\r\nln &lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;-&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;s &lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;\/&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;usr&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;\/&lt;\/span&gt;&lt;span class=&quot;kwd&quot;&gt;local&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;\/&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;python36&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;\/&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;bin&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;\/&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;pip3&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;\/span&gt;&lt;span class=&quot;lit&quot;&gt;6&lt;\/span&gt; &lt;span class=&quot;pun&quot;&gt;\/&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;usr&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;\/&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;bin&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;\/&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;pip3&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;\/span&gt;&lt;span class=&quot;lit&quot;&gt;6&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;\r\nln &lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;-&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;s &lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;\/&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;usr&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;\/&lt;\/span&gt;&lt;span class=&quot;kwd&quot;&gt;local&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;\/&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;python36&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;\/&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;bin&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;\/&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;pip3 &lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;\/&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;usr&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;\/&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;bin&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;\/&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;pip3\r\nln &lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;-&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;s &lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;\/&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;usr&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;\/&lt;\/span&gt;&lt;span class=&quot;kwd&quot;&gt;local&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;\/&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;python36&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;\/&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;bin&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;\/&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;pyvenv&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;-&lt;\/span&gt;&lt;span class=&quot;lit&quot;&gt;3.6&lt;\/span&gt; &lt;span class=&quot;pun&quot;&gt;\/&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;usr&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;\/&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;bin&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;\/&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;pyvenv&lt;\/span&gt;<\/pre>\n<p>7. \u68c0\u67e5\u5b89\u88c5\u662f\u5426\u6210\u529f\uff1a\u8fd4\u56de\u7248\u672c\u4fe1\u606f\u5373\u4ee3\u8868\u5b89\u88c5\u6210\u529f<\/p>\n<pre class=\"prettyprint\">&lt;span class=&quot;pln&quot;&gt;python3 &lt;span class=&quot;pun&quot;&gt;-&lt;\/span&gt;V\r\npip &lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;-&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;V&lt;\/span&gt;<\/pre>\n<p>8. \u5347\u7ea7pip3\u3001\u67e5\u8be2python\u5e93\u9700\u8981\u5347\u7ea7\u7684\u6587\u4ef6\uff0c\u5347\u7ea7\u5e93\u6587\u4ef6\uff08\u8fd9\u4e00\u6b65\u53ef\u505a\u53ef\u4e0d\u505a\uff09<\/p>\n<pre class=\"prettyprint\">&lt;span class=&quot;pln&quot;&gt;python3 &lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;-&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;m pip install &lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;--&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;upgrade pip&lt;\/span&gt;\r\n&lt;span class=&quot;pln&quot;&gt;pip3 list &lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;--&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;outdated&lt;\/span&gt;\r\n&lt;span class=&quot;pln&quot;&gt;pip3 install &lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;--&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;upgrade &lt;span class=&quot;pun&quot;&gt;\u9700\u5347\u7ea7\u7684&lt;\/span&gt;&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;\u5e93\u540d&lt;\/span&gt;<\/pre>\n<h1><strong>\u4e09. \u5f00\u59cb\u6b63\u5f0f\u642d\u5efatg\u673a\u5668\u4eba<\/strong><\/h1>\n<p>1. \u4e0b\u8f7d\u811a\u672c<\/p>\n<pre class=\"wp-block-code prettyprint\">&lt;code&gt;&lt;span class=&quot;pln&quot;&gt;git clone https&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;:&lt;\/span&gt;&lt;span class=&quot;com&quot;&gt;\/\/github.com\/snow922841\/telegram_channel_downloader.git&lt;\/span&gt;&lt;\/code&gt;<\/pre>\n<p>2. \u5b89\u88c5 rclone \/ gclone \u6216\u662f fclone\uff1a\u8fd9\u4e09\u4e2a\u90fd\u53ef\u4ee5\u7528\u4e8e\u4e0a\u4f20GD\uff0crclone\u3001gclone\u4ec5\u80fd\u7528\u4e8e\u4e0a\u4f20\u81f3OD\u3002\u5982\u679c\u53ea\u9700\u8981\u4e0b\u8f7d\u5230\u672c\u5730\uff0c\u5219\u65e0\u9700\u5b89\u88c5\u8fd9\u4e00\u6b65<\/p>\n<pre class=\"prettyprint\">&lt;span class=&quot;typ&quot;&gt;Rclone&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;\u5b89\u88c5\u53ca\u68c0\u67e5\u547d\u4ee4\uff1a&lt;\/span&gt;\r\n&lt;span class=&quot;pln&quot;&gt;curl https&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;:&lt;\/span&gt;&lt;span class=&quot;com&quot;&gt;\/\/rclone.org\/install.sh | sudo bash&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;\r\nrclone &lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;--&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;version\r\n\r\n&lt;\/span&gt;&lt;span class=&quot;typ&quot;&gt;Gclone&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;\u5b89\u88c5\u53ca\u68c0\u67e5\u547d\u4ee4\uff1a&lt;\/span&gt;\r\n&lt;span class=&quot;pln&quot;&gt;bash &lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;&lt;(&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;wget &lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;-&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;qO&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;-&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt; https&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;:&lt;\/span&gt;&lt;span class=&quot;com&quot;&gt;\/\/git.io\/gclone.sh) &lt;\/span&gt;\r\n&lt;span class=&quot;pln&quot;&gt;gclone &lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;--&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;version&lt;\/span&gt;\r\n\r\n&lt;span class=&quot;typ&quot;&gt;Fclone&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;\u5b89\u88c5\u529e\u6cd5\uff1a&lt;\/span&gt;\r\n&lt;span class=&quot;lit&quot;&gt;1&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;\u3001\u8fdb\u5165\u9879\u76ee\u9875\uff1a&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;https&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;:&lt;\/span&gt;&lt;span class=&quot;com&quot;&gt;\/\/github.com\/mawaya\/rclone\/releases\uff0c\u4e0b\u8f7d\u5bf9\u5e94\u7cfb\u7edf\u7248\u672c\u7684zip\u6587\u4ef6&lt;\/span&gt;\r\n&lt;span class=&quot;lit&quot;&gt;2&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;\u3001\u5728\u672c\u5730\u89e3\u538b\u83b7\u5f97&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;fclone&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;\u6587\u4ef6&lt;\/span&gt;\r\n&lt;span class=&quot;lit&quot;&gt;3&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;\u3001\u4e0a\u4f20\u81f3\/&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;usr&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;\/&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;bin&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;\u76ee\u5f55\u91cc&lt;\/span&gt;\r\n&lt;span class=&quot;lit&quot;&gt;4&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;\u3001&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;chmod &lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;+&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;x &lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;\/&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;usr&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;\/&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;bin&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;\/&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;fclone&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;\u6765\u8d4b\u4e88\u6743\u9650&lt;\/span&gt;\r\n\r\n\r\n&lt;strong&gt;&lt;span class=&quot;pun&quot;&gt;***&lt;\/span&gt; &lt;span class=&quot;pun&quot;&gt;\u5b89\u88c5\u5b8c\u4e4b\u540e\u4e00\u5b9a\u8981\u8bb0\u5f97\u914d\u7f6e\u597d\u9700\u8981\u4e0a\u4f20\u7684\u7f51\u76d8\u3002&lt;\/span&gt;&lt;\/strong&gt;<\/pre>\n<p>3. \u8fdb\u5165\u811a\u672c\u76ee\u5f55<\/p>\n<pre class=\"wp-block-code prettyprint\">&lt;code&gt;&lt;span class=&quot;pln&quot;&gt;cd telegram_channel_downloader&lt;\/span&gt;&lt;\/code&gt;<\/pre>\n<p>4. \u5b89\u88c5\u4f9d\u8d56<\/p>\n<pre class=\"wp-block-code prettyprint\">&lt;code&gt;&lt;span class=&quot;pln&quot;&gt;pip3 install &lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;-&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;r requirements&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;txt&lt;\/span&gt;&lt;\/code&gt;<\/pre>\n<p>5. \u4fee\u6539\u00a0<span class=\"wpcom_keyword_link\">telegram<\/span>_channel_downloader.py \u6587\u4ef6\u5185\u7684\u76f8\u5173\u4fe1\u606f\uff1a<\/p>\n<blockquote><p>api_id\u3001api_hash\uff1a\u7b2c\u4e00\u6b65\u83b7\u53d6\u5230\u7684\u5bf9\u5e94\u4fe1\u606f\uff0c\u5206\u522b\u586b\u5165\u5bf9\u5e94\u4f4d\u7f6e\uff1b<\/p>\n<p>bot_token\uff1a@BotFather \u7533\u8bf7\u4e00\u4e2a\u65b0\u7684bot\u673a\u5668\u4eba\uff08\u5fc5\u987b\u662f\u672a\u4f7f\u7528\u7684\uff09\uff0c\u5c06\u83b7\u5f97\u4e00\u4e32\u5b57\u7b26\u3002\u586b\u5165\u5176\u4e2d\uff1b<\/p>\n<p>admin_id\uff1a\u53ef\u4ee5\u5728\u7535\u62a5\u4e2d\u7ed9 @get_id_bot \u53d1\u9001\u968f\u610f\u6d88\u606f\u83b7\u53d6\uff1b<\/p>\n<p>\u5982\u679c\u9700\u8981\u4e0a\u4f20\u5230OD\uff1a\u5e94\u4fee\u6539\u811a\u672c\u4e2d\u4ee5\u4e0b\u53c2\u6570\uff1adrive_id=\u201d\uff0cdrive_name=\u2019onedrive\u2019\uff0conedrive \u5c31\u662f\u4f60\u914d\u7f6e rclone \u7684\u65f6\u5019\u586b\u7684\u7f51\u76d8\u540d\u79f0\uff0c\u8fd8\u6709\u7b2c102\u884c\u7684\u201cfclone\u201d\u66ff\u6362\u4e3a\u201crclone\u201d\uff1b<\/p>\n<p>\u6240\u6709\u914d\u7f6e\u90fd\u6709\u76f8\u5e94\u5907\u6ce8\uff0c\u6839\u636e\u9700\u8981\u4fee\u6539\u3002<\/p><\/blockquote>\n<p>6. \u8fd0\u884c\u811a\u672c\uff1a\u811a\u672c\u53ea\u8981\u5728\u8fd0\u884c\u8fc7\u7a0b\u4e2d\u624d\u80fd\u4f7f\u7528\uff0c\u53ef\u4ee5\u4f7f\u7528screen\u4fdd\u6301\u4e0d\u65ad\u7ebf<\/p>\n<pre class=\"prettyprint\">&lt;code&gt;&lt;span class=&quot;pln&quot;&gt;python3 tg_channel_downloader&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;py\r\n&lt;\/span&gt;&lt;\/code&gt; &lt;span class=&quot;com&quot;&gt;# \u6309\u7167\u63d0\u793a\u8f93\u5165\u4f60\u7684 telegram \u6240\u7ed1\u5b9a\u7684\u624b\u673a\u53f7\uff0c\u83b7\u53d6\u9a8c\u8bc1\u7801\u5e76\u8f93\u5165\u540e\u5373\u53ef&lt;\/span&gt;<\/pre>\n<blockquote><p>screen\u7684\u4e00\u4e9b\u76f8\u5173\u547d\u4ee4\uff1a<\/p>\n<pre class=\"prettyprint\">&lt;span class=&quot;com&quot;&gt;# \u521b\u5efa\u4e00\u4e2ascreen\u4f1a\u8bdd\uff1a&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;\r\nscreen &lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;-&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;S xx      &lt;\/span&gt;&lt;span class=&quot;com&quot;&gt;#xx\u4e3a\u521b\u5efa\u4f1a\u8bdd\u7684\u540d\u79f0 &lt;\/span&gt;\r\n\r\n&lt;span class=&quot;com&quot;&gt;# \u9690\u85cf\u5e76\u4fdd\u7559\u5f53\u524d\u4f1a\u8bdd\u7a97\u53e3: &lt;\/span&gt;\r\n&lt;span class=&quot;pun&quot;&gt;\u6309&lt;\/span&gt;&lt;span class=&quot;typ&quot;&gt;Ctrl&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;+&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;A&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;\uff0c\u518d\u6309&lt;\/span&gt;&lt;span class=&quot;str&quot;&gt;&quot;D&quot;&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;\u952e&lt;\/span&gt; \r\n\r\n&lt;span class=&quot;com&quot;&gt;# \u6062\u590d\u4f1a\u8bdd\u7a97\u53e3: &lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;\r\nscreen &lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;-&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;r xx      &lt;\/span&gt;&lt;span class=&quot;com&quot;&gt;#\u6062\u590d\u540d\u5b57\u4e3axx\u7684\u4f1a\u8bdd\u00a0&lt;\/span&gt;\r\n\r\n&lt;span class=&quot;com&quot;&gt;# \u5982\u679c\u5fd8\u8bb0\u6216\u8005\u6ca1\u6709\u8bbe\u5b9a\u4f1a\u8bdd\u540d\u79f0: &lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;\r\nscreen &lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;-&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;ls      &lt;\/span&gt;&lt;span class=&quot;com&quot;&gt;#\u5217\u51fa\u6240\u6709\u4f1a\u8bdd\uff0c\u627e\u5230\u5e76\u4f7f\u7528\u6062\u590d\u547d\u4ee4\u5373\u53ef &lt;\/span&gt;\r\n\r\n&lt;span class=&quot;com&quot;&gt;# \u5173\u95ed\u4f1a\u8bdd\u7a97\u53e3 &lt;\/span&gt;\r\n&lt;span class=&quot;kwd&quot;&gt;exit&lt;\/span&gt;<\/pre>\n<\/blockquote>\n<p>7.\u00a0\u914d\u7f6e\u5b8c\u6210\u540e\uff0c\u7ed9\u4f60\u7684bot\u673a\u5668\u4eba\u53d1\u9001\uff1a \/start \u9891\u9053\u7684\u94fe\u63a5 0 \uff0c\u5c31\u53ef\u4ee5\u6b63\u5f0f\u5f00\u59cb\u8fd0\u884c\u811a\u672c\uff0c\u4e0b\u8f7d\u6587\u4ef6\u4e86\u3002<\/p>\n<blockquote><p>\u9891\u9053\u7684\u94fe\u63a5\uff1a\u70b9\u51fb\u4f60\u7684\u9891\u9053\u540d\u5c31\u80fd\u770b\u5230\u9891\u9053\u94fe\u63a5\uff1b<\/p>\n<p>0\uff1a\u8fd9\u662f\u6d88\u606fID\uff0c\u53ef\u4ee5\u81ea\u5df1\u5b9a\u4e49\uff0c0\u4ee3\u8868\u7684\u662f\u6700\u65e9\u7684\u4fe1\u606f\u3002\u5982\u679c\u8981\u4ece\u7279\u5b9a\u67d0\u6761\u4fe1\u606f\u5f80\u540e\u4e0b\u8f7d\uff0c\u9f20\u6807\u53f3\u952e\u70b9\u51fb\u8be5\u6761\u6d88\u606f\uff0c\u9009\u62e9\u590d\u5236\u8be5\u6d88\u606f\u76f4\u94fe\uff0c\u5c31\u80fd\u4ece\u94fe\u63a5\u672b\u5c3e\u770b\u5230\u6d88\u606fID\u6570\u5b57\u3002<\/p><\/blockquote>\n<p>&nbsp;<\/p>\n<p><em><strong>\u597d\u4e86\uff0c\u5230\u6b64\u5c31\u5f00\u59cb\u6109\u5feb\u7684\u4e0b\u8f7d\u5427\uff01<\/strong><\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u56e0\u4e3a\u9700\u8981\u7ecf\u5e38\u8f6c\u5b58tg\u7fa4\u91cc\u7684\u6587\u4ef6\uff0c\u4e00\u65e6\u591a\u8d77\u6765\u5c31\u5f97\u7ecf\u5e38\u624b\u52a8\u8f6c\u5b58\uff0c\u4e8e\u662f\u5728GitHub\u627e\u5230\u4e86\u4e00\u4e2a\u81ea\u52a8\u4e0b\u8f7d\u5e76\u4e0a\u4f20\u5230OD\u3001 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[39,3],"tags":[41],"_links":{"self":[{"href":"http:\/\/qssjx.com\/index.php?rest_route=\/wp\/v2\/posts\/709"}],"collection":[{"href":"http:\/\/qssjx.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/qssjx.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/qssjx.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/qssjx.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=709"}],"version-history":[{"count":1,"href":"http:\/\/qssjx.com\/index.php?rest_route=\/wp\/v2\/posts\/709\/revisions"}],"predecessor-version":[{"id":710,"href":"http:\/\/qssjx.com\/index.php?rest_route=\/wp\/v2\/posts\/709\/revisions\/710"}],"wp:attachment":[{"href":"http:\/\/qssjx.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=709"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/qssjx.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=709"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/qssjx.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=709"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}