Code Monkey home page Code Monkey logo

q2tg's Introduction

Q2TG

QQ 群与 Telegram 群相互转发的 bot

交流 https://t.me/+XkF-96lLnFU3ZTM1

安装方法

请看 Wiki

v2.x 版本同时需要机器人账号以及登录 Telegram 个人账号,需要自己注册 Telegram API ID,并且还需要配置一些辅助服务。

如果你主要使用群组模式并且不想使用个人账号登录 UserBot,可以使用去除 UserBot 的 Nofated095/Q2TG 版本。一些功能例如撤回检测将无法使用

支持的消息类型

  • 文字(双向)

  • 图片(双向)

    • GIF

    • 闪照

      闪照每个 TG 用户也只能查看 5 秒

  • 图文混排消息(双向)

  • 大表情(双向)

  • 视频(双向)

  • 语音(双向)

  • 小表情(可显示为文字)

  • 链接(双向)

  • JSON/XML 卡片

    (包括部分转化为小程序的链接)

  • 位置(TG -> QQ)

  • 群公告

  • 回复(双平台原生回复)

  • 文件

    QQ -> TG 按需获取下载地址

    TG -> QQ 将自动转发 20M 以下的小文件

  • 转发多条消息记录

  • TG 编辑消息(撤回再重发)

  • 双向撤回消息

  • 戳一戳

关于模式

群组模式

群组模式就是 1.x 版本唯一的模式,是给群主使用的。如果群组想要使自己的 QQ 群和 Telegram 群联通起来,就使用这个模式。群组模式只可以给群聊配置转发,并且转发消息时会带上用户在当前平台的发送者名称。

个人模式

个人模式适合 QQ 轻度使用者,TG 重度使用者。可以把 QQ 的好友和群聊搬到 Telegram 中。个人模式一定要登录机器人主人自己的 Telegram 账号作为 UserBot。可以自动为 QQ 中的好友和群组创建对应的 Telegram 群组,并同步头像简介等信息。当有没有创建关联的好友发起私聊的时候会自动创建 Telegram 中的对应群组。个人模式在初始化的时候会自动在 Telegram 个人账号中创建一个文件夹来存储所有来自 QQ 的对应群组。消息在从 TG 转发到 QQ 时不会带上发送者昵称,因为默认发送者只有一个人。

如何撤回消息

在 QQ 中,直接撤回相应的消息,撤回操作会同步到 TG

在 TG 中,可以选择以下操作之一:

  • 将消息内容编辑为 /rm
  • 回复要撤回的消息,内容为 /rm。如果操作者在 TG 群组中没有「删除消息」权限,则只能撤回自己的消息
  • 如果正确配置了个人账号的 User Bot,可以直接删除消息

为了使撤回功能正常工作,TG 机器人需要具有「删除消息」权限,QQ 机器人需要为管理员或群主

即使 QQ 机器人为管理员,也无法撤回其他管理员在 QQ 中发送的消息

免责声明

一切开发旨在学习,请勿用于非法用途。本项目完全免费开源,不会收取任何费用,无任何担保。请勿将本项目用于商业用途。由于使用本程序造成的任何问题,由使用者自行承担,项目开发者不承担任何责任。

本项目基于 AGPL 发行。修改、再发行和运行服务需要遵守 AGPL 许可证,源码需要和服务一起提供。

许可证

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.

q2tg's People

Contributors

71e6fd52 avatar alpiiine avatar beiyanyunyi avatar big-cake-jpg avatar ccmuyuu avatar clansty avatar dependabot[bot] avatar magisk317 avatar menci avatar nofated095 avatar richard-redtail avatar sakarie9 avatar xiexilin2 avatar zsbai avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

q2tg's Issues

at QQ用户

在QQ那面似乎只要对着tg那面的用户名at 就可以at到人 但似乎无法在tg 来at QQ用户?不知道是不是我使用方法有问题
如果确实不能的话 希望能够添加这个功能的支持 谢谢

代理无法连接

image
如图,我的代理基于Xray搭建,同时支持HTTP和SOCKS5
与此同时服务器上其他依赖这个代理的软件可以正常运行
但是Q2TG的代理死活提示连接被拒绝
确认了无类似的issue存在而且在网络上也找不到相关的解决方案
请问我应该怎么办

创建TG文件夹时失败

设置文件夹失败 RPCError: 400: DIALOG_FILTERS_TOO_MUCH (caused by messages.UpdateDialogFilter)
main_q2tg | at Object.RPCMessageToError (/app/node_modules/telegram/errors/index.js:24:12)
main_q2tg | at MTProtoSender._handleRPCResult (/app/node_modules/telegram/network/MTProtoSender.js:483:36)
main_q2tg | at MTProtoSender._processMessage (/app/node_modules/telegram/network/MTProtoSender.js:408:15)
main_q2tg | at processTicksAndRejections (node:internal/process/task_queues:96:5)
main_q2tg | at async MTProtoSender._recvLoop (/app/node_modules/telegram/network/MTProtoSender.js:384:17) {
main_q2tg | code: 400,
main_q2tg | errorMessage: 'DIALOG_FILTERS_TOO_MUCH'
main_q2tg | }

复读qq发送的sticker表情包时只发送图片

#55 相关的表情包改进在转发时会一并转发按钮内的文字

tg视角 转发接收到的表情:
photo_2022-10-13_11-31-29(1)

qq视角 转发的表情带有文字:
photo_2022-10-13_11-31-33(1)

有没有方法可以实现转发sticker表情包只发送图片呢

可选择是否转发tg侧入群通知

IMG_20220806_080216_368

因tg侧有违规用户名用户入群,导致QQ账号多次被冻结🤔
这种的用人机验证也拦不住啊...
所以希望添加一个选项,是否转发tg侧的入群通知。

可以开一个wechat的吗?

现在有一些项目,wechat的hook或者web方案,但是都没有绑定直接登录telegram帐号,导致没有办法直接建群。

扫码按钮没有被关闭

在网络环境不正常的时候启动,出现要求QQ重新验证,点扫码无反应。
经过数次重启后恢复正常,但扫码按钮依然存在,无法被关闭。如图所示。
即使重启 Telegram Desktop 也未能得到解决。
IMG_20221003_223630_800.jpg

如何实现Q2TG v2个人模式的群聊消息转发

已经按照wiki配置好了bot,并已实现私聊消息的转发(自动创建tg群组并转发消息)。但是qq群的消息没能自动转发到telegram上。未找到应该如何配置。求解答,感谢!

程序卡住,占用率很高

image
没找到相关日志,在31号8点44分的时候正常,接收到最后一条图片消息,31号9点41分我在tg发的图片消息已经没有转发到qq了,在9月1号早上在探针发现nodejs占用极高,服务器一直是满载,kill掉重启后恢复正常
不知道问题出在哪里,日志里这段时间里什么都没有,tg机器人没有消息,导致我昨天晚上和空气聊了半天

部署后的设置转发步骤是否未写出?

我参照 wiki 中的部署方式正确部署了一个实例并进行了 /setup
选择群组模式上线后,我想配置一个新转发,但我发现 wiki 中并没有写出如何配置一个新转发。
而机器人私聊中也没有出现命令列表,如下图
image
image

群内也没有出现命令列表。
这是否是由于疏忽导致没有在 wiki 中写出设置转发的步骤,或是一个偶发性 bug 导致机器人没有正确配置显示指令列表?

arm64 支持

#docker logs -f q2tg
Prisma schema loaded from prisma/schema.prisma
Error: Unable to require(/app/node_modules/@prisma/engines/libquery_engine-linux-arm64-openssl-1.1.x.so.node)
Error relocating /app/node_modules/@prisma/engines/libquery_engine-linux-arm64-openssl-1.1.x.so.node: __res_init: symbol not found
Prisma schema loaded from prisma/schema.prisma
Error: Unable to require(/app/node_modules/@prisma/engines/libquery_engine-linux-arm64-openssl-1.1.x.so.node)
Error relocating /app/node_modules/@prisma/engines/libquery_engine-linux-arm64-openssl-1.1.x.so.node: __res_init: symbol not found

#my dockerfile:
cat q2tg/dockerfile
FROM ghcr.io/clansty/q2tg:raincandy
RUN apk add --no-cache openssl libc6-compat

#my compose file:
q2tg:
build: ./q2tg
#image: ghcr.io/clansty/q2tg:raincandy
#image: ghcr.io/clansty/q2tg:sha-aacc155@sha256:719cbf06b0eca6be04c7b8e73a25528f9710a1b072582aaf631186abd5975169
container_name: q2tg
restart: unless-stopped
depends_on:
- db
volumes:
- ./q2tg/data:/app/data
environment:
- TG_API_ID=7

wiki末尾启动命令问题

wiki的最末尾,启动命令有点问题,问题不大但是新手可能弄不明白

这里应该是 'docker-compose up -d'

被踢出群后机器人无法转发消息

被踢出群后机器人就无法转发消息了,其他的转发都可以用,就是那个群不能转发
日志

main_q2tg   |
main_q2tg   | Running generate... (Use --skip-generate to skip the generators✔ Generated Prisma Client (3.10.0 | library) to ./node_modules/@prisma/client in
main_q2tg   |  273ms
main_q2tg   |
main_q2tg   | ┌─────────────────────────────────────────────────────────┐
main_q2tg   | │  Update available 3.10.0 -> 3.14.0                      │
main_q2tg   | │  Run the following to update                            │
main_q2tg   | │    yarn add --dev prisma@latest                         │
main_q2tg   | │    yarn add @prisma/client@latest                       │
main_q2tg   | └─────────────────────────────────────────────────────────┘
main_q2tg   | [2022-05-23T14:55:55.958] [DEBUG] Instance - 0 - 正在登录 TG Bot
main_q2tg   | [2022-05-23T14:55:55.961Z] [INFO] - [Running gramJS version 2.5.0]
main_q2tg   | [2022-05-23T14:55:57.158] [INFO] Instance - 0 - TG Bot 登录完成
main_q2tg   | [2022-05-23T14:55:57.158] [DEBUG] Instance - 0 - 正在登录 TG UserBot
main_q2tg   | [2022-05-23T14:55:57.159Z] [INFO] - [Running gramJS version 2.5.0]
main_q2tg   | [2022-05-23T14:55:57.286] [DEBUG] Instance - 1 - 正在登录 TG Bot
main_q2tg   | [2022-05-23T14:55:57.287Z] [INFO] - [Running gramJS version 2.5.0]
main_q2tg   | [2022-05-23T14:55:58.647] [INFO] Instance - 1 - TG Bot 登录完成
main_q2tg   | [2022-05-23T14:55:58.648] [DEBUG] Instance - 1 - 正在登录 TG UserBot
main_q2tg   | [2022-05-23T14:55:58.649Z] [INFO] - [Running gramJS version 2.5.0]
main_q2tg   | [2022-05-23T14:55:58.697] [INFO] Instance - 0 - TG UserBot 登录完成
main_q2tg   | [2022-05-23T14:55:58.697] [DEBUG] Instance - 0 - 正在登录 OICQ
main_q2tg   | [2022-05-23T14:55:58.704] [MARK] [iPad:3080014127] - ----------main_q2tg   | [2022-05-23T14:55:58.709] [MARK] [iPad:3080014127] - Package Version: [email protected] (Released on 2021/3/16)
main_q2tg   | [2022-05-23T14:55:58.710] [MARK] [iPad:3080014127] - View Changelogs:https://github.com/takayama-lily/oicq/releases
main_q2tg   | [2022-05-23T14:55:58.710] [MARK] [iPad:3080014127] - ----------main_q2tg   | [2022-05-23T14:55:59.171] [MARK] [iPad:3080014127] - 43.154.240.13:8080 connected
main_q2tg   | [2022-05-23T14:55:59.671] [MARK] [iPad:3080014127] - Welcome,  あ ! 正在加载资源...
main_q2tg   | [2022-05-23T14:55:59.961] [INFO] Instance - 1 - TG UserBot 登录完成
main_q2tg   | [2022-05-23T14:55:59.962] [DEBUG] Instance - 1 - 正在登录 OICQ
main_q2tg   | [2022-05-23T14:55:59.967] [MARK] [iMac:3080014127] - ----------main_q2tg   | [2022-05-23T14:55:59.967] [MARK] [iMac:3080014127] - Package Version: [email protected] (Released on 2021/3/16)
main_q2tg   | [2022-05-23T14:55:59.968] [MARK] [iMac:3080014127] - View Changelogs:https://github.com/takayama-lily/oicq/releases
main_q2tg   | [2022-05-23T14:55:59.968] [MARK] [iMac:3080014127] - ----------main_q2tg   | [2022-05-23T14:56:00.160] [MARK] [iMac:3080014127] - 43.135.106.161:8080 connected
main_q2tg   | [2022-05-23T14:56:00.658] [MARK] [iPad:3080014127] - 加载了6个 好友,5个群,0个陌生人
main_q2tg   | [2022-05-23T14:56:00.659] [INFO] Instance - 0 - OICQ 登录完成
main_q2tg   | [2022-05-23T14:56:00.715] [MARK] [iMac:3080014127] - Welcome,  あ ! 正在加载资源...
main_q2tg   | [2022-05-23T14:56:01.542] [MARK] [iMac:3080014127] - 加载了6个 好友,5个群,0个陌生人
main_q2tg   | [2022-05-23T14:56:01.543] [INFO] Instance - 1 - OICQ 登录完成
main_q2tg   | [2022-05-23T14:56:01.873] [INFO] Instance - 0 - 初始化已完成
main_q2tg   | [2022-05-23T14:56:03.352] [INFO] Instance - 1 - 初始化已完成```

发送原图的支持

如题 目前无论是QQ发tg还是tg发QQ 都无法发送原图 会被压缩的非常糊 希望能添加对发送原图的支持

添加机器人到群时的报错

看起来是概率性出现的报错,因为在出现这个报错之后再添加机器人一次就会正常

image

顺带一提,出现这个报错的时候,机器人不会给出任何回复,只有控制台有输出

控制台的输出
main_q2tg        | Error: Could not find the input entity for {"userId":"******1138","className":"PeerUser"}.
main_q2tg        |          Please read https://docs.telethon.dev/en/latest/concepts/entities.html to find out more details.
main_q2tg        |     at Object.getInputEntity (/app/node_modules/telegram/client/users.js:297:11)
main_q2tg        |     at processTicksAndRejections (node:internal/process/task_queues:96:5)
main_q2tg        |     at async Object.getEntity (/app/node_modules/telegram/client/users.js:130:25)
main_q2tg        |     at async Telegram.getChat (/app/build/client/Telegram.js:119:62)
main_q2tg        |     at async ConfigService.createLinkGroup (/app/build/services/ConfigService.js:244:26)
main_q2tg        |     at async handleMessage (/app/build/controllers/ConfigController.js:41:17)
main_q2tg        |     at async onMessage (/app/build/client/Telegram.js:66:25)
main_q2tg        |     at async _dispatchUpdate (/app/node_modules/telegram/client/updates.js:141:21)

无法使用 host.docker.internal 连接到 host ?

不是 docker 高手,不知道怎么做了

[2022-07-01T13:43:30.701Z] [ERROR] - [WebSocket connection failed attempt: 5]
SocksClientError: getaddrinfo ENOTFOUND host.docker.internal
    at SocksClient.closeSocket (/app/node_modules/socks/build/client/socksclient.js:388:32)
    at SocksClient.onErrorHandler (/app/node_modules/socks/build/client/socksclient.js:361:14)
    at Socket.onError (/app/node_modules/socks/build/client/socksclient.js:223:38)
    at Object.onceWrapper (node:events:642:26)
    at Socket.emit (node:events:527:28)
    at emitErrorNT (node:internal/streams/destroy:164:8)
    at emitErrorCloseNT (node:internal/streams/destroy:129:3)
    at processTicksAndRejections (node:internal/process/task_queues:83:21) {
  options: {
    proxy: {
      host: 'host.docker.internal',
      port: 1080,
      type: 5,
      userId: undefined,
      password: undefined
    },
    command: 'connect',
    timeout: 5000,
    destination: { host: '149.154.167.91', port: 80 }
  }
}

是我对这玩意有误解吗,求指教,或者有别的什么方法连到host?

只有带斜杠的消息才会被转发

图片
图片
如图 只有最前面带斜杠的消息才能被机器人从tg转发到qq
所以图片 贴纸等等也都不能被转发
请问这可能是哪里的问题?应该如何解决?

添加实例之后如何删除

在开了机器人之后,看到有添加其他实例的功能,于是就添加了两个

image

但后面发现机子好像负载不了三个实例,于是就想要删掉,请问是否有办法来删掉通过这种方式添加的实例?

[BUG] OICQ 断线重连后导致重复发送消息

环境:
Debian 10,Docker 启动 Q2TG

问题描述:
由于搭建在国外网络环境,有时抽风会导致断线重连。
重连后 TG 群将无法接收到 QQ 群发送的新消息,且 TG 群发送的消息将被重复发送到 QQ 群。
此时重启容器后问题消失。

配置:
docker-compose.yaml 按原样填写。

日志:

main_q2tg | [2021-12-17T*] [WARN] [Android:*] - GetMsg timeout!
main_q2tg | [2021-12-17T*] [MARK] [Android:*] - 220.196.132.225:443 closed
main_q2tg | [2021-12-17T*] [MARK] [Android:*] - connecting to 220.196.132.225:443
main_q2tg | [2021-12-17T*] [MARK] [Android:*] - 220.196.132.225:443 connected
main_q2tg | [2021-12-17T*] [WARN] [Android:*] - GetMsg timeout!
main_q2tg | [2021-12-17T*] [MARK] [Android:*] - 220.196.132.225:443 closed
main_q2tg | [2021-12-17T*] [MARK] [Android:*] - connecting to 203.205.255.224:8080
main_q2tg | [2021-12-17T*] [MARK] [Android:*] - 203.205.255.224:8080 connected
main_q2tg | [2021-12-17T*] [WARN] [Android:*] - 群消息被风控,将尝试使用分片发送。
main_q2tg | [2021-12-17T*] [ERROR] [Android:*] - send failed: [Group: *] 群消息可能发送失败,请检查消息内容。
main_q2tg | { code: -1, message: '群消息可能发送失败,请检查消息内容。' }

如何登录QQ

卡到二维码验证登录哪里了,开始选择的二维码,后面提示登录不安全不让我登录,想返回去选择密码登录,发现不能回退

机器人在TG上被踢后无法重新加入原群

复现:在将机器人在 TG 上踢出群后,重启一次机器人,然后使用 /addgroup 命令来重新转发该 QQ 群,创建转发时选择的方法为 手动选择现有群组,选择在 TG 上被踢出的群,成功将机器人添加到这个群之后,出现报错

在 TG 上的报错
Leao的Q2TG机器人, [2022/8/22 22:49]
创建群组并关联失败
Error: 
Invalid `db_1.default.forwardPair.create()` invocation in
/app/build/models/ForwardPairs.js:42:56

  39     return instance;
  40 }
  41 async add(qq, tg) {
→ 42     const dbEntry = await db_1.default.forwardPair.create(
  Unique constraint failed on the fields: (`qqRoomId`,`instanceId`)

Leao的Q2TG机器人, [2022/8/22 22:50]
创建群组并关联失败
Error: 
Invalid `db_1.default.forwardPair.create()` invocation in
/app/build/models/ForwardPairs.js:42:56

  39     return instance;
  40 }
  41 async add(qq, tg) {
→ 42     const dbEntry = await db_1.default.forwardPair.create(
  Unique constraint failed on the fields: (`qqRoomId`,`instanceId`)
在控制台上的报错
main_q2tg        | [2022-08-22T14:47:17.133] [INFO] Instance - 0 - OICQ 登录完成   
main_q2tg        | [2022-08-22T14:47:24.187] [WARN] ForwardPairs - 0 - 初始化遇到问题,QQ: -*****0696 TG: ******3648
main_q2tg        | [2022-08-22T14:47:34.800] [INFO] Instance - 0 - 初始化已完成
main_q2tg        | [2022-08-22T14:47:35.706] [INFO] Instance - 0 - 命令设置成功
main_q2tg        | [2022-08-22T14:49:23.042] [INFO] ConfigService - 0 - 创建群组并关 联:-*****0696
postgresql_q2tg  | 2022-08-22 14:49:26.852 UTC [37] ERROR:  duplicate key value violates unique constraint "ForwardPair_qqRoomId_instanceId_key"
postgresql_q2tg  | 2022-08-22 14:49:26.852 UTC [37] DETAIL:  Key ("qqRoomId", "instanceId")=(-*****0696, 0) already exists.
postgresql_q2tg  | 2022-08-22 14:49:26.852 UTC [37] STATEMENT:  INSERT INTO "public"."ForwardPair" ("qqRoomId","tgChatId","instanceId","joinNotice","poke","enable") VALUES ($1,$2,$3,$4,$5,$6) RETURNING "public"."ForwardPair"."id"
main_q2tg        | [2022-08-22T14:49:26.869] [ERROR] ConfigService - 0 - 创建群组并关联失败 PrismaClientKnownRequestError:
main_q2tg        | Invalid `db_1.default.forwardPair.create()` invocation in
main_q2tg        | /app/build/models/ForwardPairs.js:42:56
main_q2tg        | 
main_q2tg        |   39     return instance;
main_q2tg        |   40 }
main_q2tg        |   41 async add(qq, tg) {
main_q2tg        | → 42     const dbEntry = await db_1.default.forwardPair.create(
main_q2tg        |   Unique constraint failed on the fields: (`qqRoomId`,`instanceId`)
main_q2tg        |     at RequestHandler.handleRequestError (/app/node_modules/@prisma/client/runtime/index.js:28658:13)
main_q2tg        |     at RequestHandler.request (/app/node_modules/@prisma/client/runtime/index.js:28640:12)
main_q2tg        |     at async consumer (/app/node_modules/@prisma/client/runtime/index.js:29618:18)
main_q2tg        |     at async PrismaClient._request (/app/node_modules/@prisma/client/runtime/index.js:29639:16)
main_q2tg        |     at async ForwardPairs.add (/app/build/models/ForwardPairs.js:42:25)
main_q2tg        |     at async ConfigService.createGroupAndLink (/app/build/services/ConfigService.js:178:28)
main_q2tg        |     at async ConfigService.createLinkGroup (/app/build/services/ConfigService.js:245:13)
main_q2tg        |     at async handleMessage (/app/build/controllers/ConfigController.js:41:17)
main_q2tg        |     at async onMessage (/app/build/client/Telegram.js:66:25)
main_q2tg        |     at async _dispatchUpdate (/app/node_modules/telegram/client/updates.js:141:21) {
main_q2tg        |   code: 'P2002',
main_q2tg        |   clientVersion: '4.1.1',
main_q2tg        |   meta: { target: [ 'qqRoomId', 'instanceId' ] }
main_q2tg        | }
main_q2tg        | [2022-08-22T14:50:05.980] [INFO] ConfigService - 0 - 创建群组并关 联:-*****0696
postgresql_q2tg  | 2022-08-22 14:50:10.686 UTC [36] ERROR:  duplicate key value violates unique constraint "ForwardPair_qqRoomId_instanceId_key"
postgresql_q2tg  | 2022-08-22 14:50:10.686 UTC [36] DETAIL:  Key ("qqRoomId", "instanceId")=(-*****0696, 0) already exists.
postgresql_q2tg  | 2022-08-22 14:50:10.686 UTC [36] STATEMENT:  INSERT INTO "public"."ForwardPair" ("qqRoomId","tgChatId","instanceId","joinNotice","poke","enable") VALUES ($1,$2,$3,$4,$5,$6) RETURNING "public"."ForwardPair"."id"
main_q2tg        | [2022-08-22T14:50:10.693] [ERROR] ConfigService - 0 - 创建群组并关联失败 PrismaClientKnownRequestError:
main_q2tg        | Invalid `db_1.default.forwardPair.create()` invocation in
main_q2tg        | /app/build/models/ForwardPairs.js:42:56
main_q2tg        | 
main_q2tg        |   39     return instance;
main_q2tg        |   40 }
main_q2tg        |   41 async add(qq, tg) {
main_q2tg        | → 42     const dbEntry = await db_1.default.forwardPair.create(
main_q2tg        |   Unique constraint failed on the fields: (`qqRoomId`,`instanceId`)
main_q2tg        |     at RequestHandler.handleRequestError (/app/node_modules/@prisma/client/runtime/index.js:28658:13)
main_q2tg        |     at RequestHandler.request (/app/node_modules/@prisma/client/runtime/index.js:28640:12)
main_q2tg        |     at async consumer (/app/node_modules/@prisma/client/runtime/index.js:29618:18)
main_q2tg        |     at async PrismaClient._request (/app/node_modules/@prisma/client/runtime/index.js:29639:16)
main_q2tg        |     at async ForwardPairs.add (/app/build/models/ForwardPairs.js:42:25)
main_q2tg        |     at async ConfigService.createGroupAndLink (/app/build/services/ConfigService.js:178:28)
main_q2tg        |     at async ConfigService.createLinkGroup (/app/build/services/ConfigService.js:245:13)
main_q2tg        |     at async handleMessage (/app/build/controllers/ConfigController.js:41:17)
main_q2tg        |     at async onMessage (/app/build/client/Telegram.js:66:25)
main_q2tg        |     at async _dispatchUpdate (/app/node_modules/telegram/client/updates.js:141:21) {
main_q2tg        |   code: 'P2002',
main_q2tg        |   clientVersion: '4.1.1',
main_q2tg        |   meta: { target: [ 'qqRoomId', 'instanceId' ] }
main_q2tg        | }

登录过期后无法再次登录

登录过期后无法再次登录,使用命令 docker logs -f main_q2tg 查看日志,日志一直输出

[2022-04-XXT08:53:58.896] [MARK] [Watch:672998436] - 请用手机QQ扫描二维码,若打印出错请打开:/app/data/672998436/qrcode.png
[2022-04-XXT08:53:59.027] [ERROR] [Watch:672998436] - 二维码扫码遇到错误: 48 (二维码尚未扫描)

TG -> QQ 文件发送异常

发送文件对方显示为

文件:DNSBench.exe
类型:application/x-ms-dos-executable
大小:162848

无法下载文件

可能需要升级OICQ。

RT.

2022-09-03T14:11:57.404741067Z [温馨提示]当前QQ版本过低,请升级至最新版本后再登录。点击进入下载页面

图片

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.