{"id":15034934,"url":"https://github.com/archive-go/archivebot","last_synced_at":"2025-04-09T23:04:38.941Z","repository":{"id":53833760,"uuid":"286079391","full_name":"archive-go/ArchiveBot","owner":"archive-go","description":"一个用来备份链接内容的 Telegram Bot ","archived":false,"fork":false,"pushed_at":"2021-04-10T15:05:54.000Z","size":137,"stargazers_count":8,"open_issues_count":1,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-09T23:04:29.631Z","etag":null,"topics":["bot","go","golang","golang-application","golang-examples","telegram","telegram-bot","telegram-bots","telegraph","telegraph-api","telegraph-publishing"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/archive-go.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-08-08T16:30:18.000Z","updated_at":"2024-02-14T06:14:56.000Z","dependencies_parsed_at":"2022-08-22T13:10:18.033Z","dependency_job_id":null,"html_url":"https://github.com/archive-go/ArchiveBot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/archive-go%2FArchiveBot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/archive-go%2FArchiveBot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/archive-go%2FArchiveBot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/archive-go%2FArchiveBot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/archive-go","download_url":"https://codeload.github.com/archive-go/ArchiveBot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248125628,"owners_count":21051770,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bot","go","golang","golang-application","golang-examples","telegram","telegram-bot","telegram-bots","telegraph","telegraph-api","telegraph-publishing"],"created_at":"2024-09-24T20:26:52.474Z","updated_at":"2025-04-09T23:04:38.909Z","avatar_url":"https://github.com/archive-go.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 备份 Bot\n\n\u003e 一个用来备份链接内容的 Telegram Bot\n\n发给 Bot 一个链接/包含链接的文本，它将检测其中的链接，并启动爬虫程序将链接中的信息抓下来然后上传到 Telegraph 平台上，最后给你一个可在线访问的 Telegraph（Telegram 出品）链接。\n\n\n\n### 预览\n\n---\n\n![preview](./preview/archivebot.jpg)\n\n### 如何本地运行？\n\n---\n\n**准备工作：**\n\n1. 你需要在本地配置好`Golang`的环境\n2. 下载好项目代码\n3. 你需要在项目根目录创建一个`config.json`文件，并且输入下面几个信息：\n\n```json\n{\n    \"botToken\": \"111111111:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\", // Telegraph Bot Token 请找 @BotFather 获取 https://t.me/@BotFather\n    \"telegraphToken\": \"b968da509bb76866c35425099bc0989a5ec3b32997d55286c657e6994bbb\", // Telegraph Token，可以用这个测试 Token ，也可以自行注册一个Telegraph Account 然后会得到一个 Token，请阅读 https://telegra.ph/api#createAccount\n    \"socks5\": \"socks5://localhost:1085\" // 如果你在国内等无法直连 Telegraph 的环境中，那么就需要配置下，让程序走代理（端口不一定是1085，看你电脑代理软件配置的是啥）。如果你不明白这里在说什么，请先上网找翻墙教程，把墙翻了再说。\n}\n```\n\n\n\n**运行程序：**\n\n在项目根目录下执行`go run *.go`，看到命令行输出`Authorized on account ...`这样的信息就说明项目跑起来了。\n\n然后去 Telegram，找到你创建的那个测试Bot，试着发一段文本给它，同时留意命令行的输出。\n\n\n\n有问题请反馈到 [issues区](https://github.com/MakeGolangGreat/ArchiveBot/issues)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farchive-go%2Farchivebot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farchive-go%2Farchivebot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farchive-go%2Farchivebot/lists"}