{"id":13815824,"url":"https://github.com/clansty/Q2TG","last_synced_at":"2025-05-15T09:34:02.157Z","repository":{"id":37488010,"uuid":"387791844","full_name":"clansty/Q2TG","owner":"clansty","description":"QQ 与 Telegram 群相互转发的 bot","archived":false,"fork":false,"pushed_at":"2024-11-11T13:25:45.000Z","size":8055,"stargazers_count":751,"open_issues_count":41,"forks_count":77,"subscribers_count":7,"default_branch":"sleepyfox","last_synced_at":"2024-11-11T14:27:06.508Z","etag":null,"topics":["efb","qqbot","telegram"],"latest_commit_sha":null,"homepage":"https://t.me/Q2TGbot","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/clansty.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-07-20T12:55:04.000Z","updated_at":"2024-11-11T13:25:48.000Z","dependencies_parsed_at":"2023-11-26T02:28:30.089Z","dependency_job_id":"f02203c4-dca2-4632-b355-01fc8275ec1a","html_url":"https://github.com/clansty/Q2TG","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/clansty%2FQ2TG","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clansty%2FQ2TG/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clansty%2FQ2TG/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clansty%2FQ2TG/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/clansty","download_url":"https://codeload.github.com/clansty/Q2TG/tar.gz/refs/heads/sleepyfox","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225342861,"owners_count":17459487,"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":["efb","qqbot","telegram"],"created_at":"2024-08-04T04:04:09.166Z","updated_at":"2024-11-19T11:31:12.945Z","avatar_url":"https://github.com/clansty.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# Q2TG\nQQ 群与 Telegram 群相互转发的 bot\n\n交流 https://t.me/+XkF-96lLnFU3ZTM1\n\n## 安装方法\n\n请看 [手册](https://kb.0w.al/文档/Q2TG/安装部署)，[从 V3 更新到 V4](https://kb.0w.al/文档/Q2TG/从%20V3%20更新到%20V4)\n\nv2.x 及以上版本同时需要机器人账号以及登录 Telegram 个人账号，需要自己注册 Telegram API ID，并且还需要配置一些辅助服务。\n\n如果你主要使用群组模式并且不想使用个人账号登录 UserBot，可以使用去除 UserBot 的 [Nofated095/Q2TG](https://github.com/Nofated095/Q2TG) 版本。一些功能例如撤回检测将无法使用\n\n## 支持的消息类型\n\n- [x] 文字（双向）\n- [x] 图片（双向）\n  - [x] GIF\n  - [x] 闪照\n    闪照每个 TG 用户也只能查看 5 秒\n- [x] 图文混排消息（双向）\n- [x] 大表情（双向）\n  - [x] TG 中的动态 Sticker\u003cbr\u003e\n    目前是[转换成 GIF](https://github.com/ed-asriyan/tgs-to-gif) 发送的，并且可能有些[问题](https://github.com/ed-asriyan/tgs-to-gif/issues/13#issuecomment-633244547)\n- [x] 视频（双向）\n- [x] 语音（双向）\n- [x] 小表情（可显示为文字）\n- [x] 链接（双向）\n- [x] JSON/XML 卡片\u003cbr\u003e\n  （包括部分转化为小程序的链接）\n- [x] 位置（TG -\u003e QQ）\n- [x] 群公告\n- [x] 回复（双平台原生回复）\n- [x] 文件\u003cbr\u003e\n  QQ -\u003e TG 按需获取下载地址\u003cbr\u003e\n  TG -\u003e QQ 将自动转发 20M 以下的小文件\n- [x] 转发多条消息记录\n- [x] TG 编辑消息（撤回再重发）\n- [x] 双向撤回消息\n- [x] 戳一戳\n\n## 关于模式\n\n### 群组模式\n\n群组模式就是 1.x 版本唯一的模式，是给群主使用的。如果群组想要使自己的 QQ 群和 Telegram 群联通起来，就使用这个模式。群组模式只可以给群聊配置转发，并且转发消息时会带上用户在当前平台的发送者名称。\n\n### 个人模式\n\n个人模式适合 QQ 轻度使用者，TG 重度使用者。可以把 QQ 的好友和群聊搬到 Telegram 中。个人模式一定要登录机器人主人自己的 Telegram 账号作为 UserBot。可以自动为 QQ 中的好友和群组创建对应的 Telegram 群组，并同步头像简介等信息。当有没有创建关联的好友发起私聊的时候会自动创建 Telegram 中的对应群组。个人模式在初始化的时候会自动在 Telegram 个人账号中创建一个文件夹来存储所有来自 QQ 的对应群组。消息在从 TG 转发到 QQ 时不会带上发送者昵称，因为默认发送者只有一个人。\n\n## 如何撤回消息\n\n在 QQ 中，直接撤回相应的消息，撤回操作会同步到 TG\n\n在 TG 中，可以选择以下操作之一：\n\n- 将消息内容编辑为 `/rm`\n- 回复要撤回的消息，内容为 `/rm`。如果操作者在 TG 群组中没有「删除消息」权限，则只能撤回自己的消息\n- 如果正确配置了个人账号的 User Bot，可以直接删除消息\n\n为了使撤回功能正常工作，TG 机器人需要具有「删除消息」权限，QQ 机器人需要为管理员或群主\n\n即使 QQ 机器人为管理员，也无法撤回其他管理员在 QQ 中发送的消息\n\n## 免责声明\n\n一切开发旨在学习，请勿用于非法用途。本项目完全免费开源，不会收取任何费用，无任何担保。请勿将本项目用于商业用途。由于使用本程序造成的任何问题，由使用者自行承担，项目开发者不承担任何责任。\n\n本项目基于 AGPL 发行。修改、再发行和运行服务需要遵守 AGPL 许可证，源码需要和服务一起提供。\n\n## 许可证\n\n```\nThis program is free software: you can redistribute it and/or modify\nit under the terms of the GNU Affero General Public License as\npublished by the Free Software Foundation, either version 3 of the\nLicense, or (at your option) any later version.\n\nThis program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\nGNU Affero General Public License for more details.\n\nYou should have received a copy of the GNU Affero General Public License\nalong with this program.  If not, see \u003chttp://www.gnu.org/licenses/\u003e.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclansty%2FQ2TG","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fclansty%2FQ2TG","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclansty%2FQ2TG/lists"}