Coder Social home page Coder Social logo

Comments (36)

jqqqqqqqqqq avatar jqqqqqqqqqq commented on May 31, 2024

你分别测试以下两个内容

在 telegram 群组中发送 !!id ,看看有没有反应
如果没有反应需要检查到 telegram 的网络连接

在 qq 中发送消息 !!id ,看看有没有反应
如果没有反应需要检查 cq-http-api 是否已启用

你的 log 没有看到异常,说明不是执行的时候出问题了,而是环境有些问题

from unifiedmessagerelay.

seiuneko avatar seiuneko commented on May 31, 2024

tg 有反应且可以正常转发
qq 无反应且不能转发

所以是 cq-http-api 的问题了?

from unifiedmessagerelay.

jqqqqqqqqqq avatar jqqqqqqqqqq commented on May 31, 2024

什么叫正常转发,是指 tg 发送文本能发到 qq 吗
如果你的意思只是发送 !!id 能收到回复,那么就是 cq-http-api 出现了问题,例如没启用啥的

docker 版不是我创建的,所以我不确定会不会是这个问题

你先去 coolq 的面板里检查下cq-http-api 是否已启用,以及 coolq 的日志页面能否看到 cq-http-api 的加载日志

from unifiedmessagerelay.

seiuneko avatar seiuneko commented on May 31, 2024

什么叫正常转发,是指 tg 发送文本能发到 qq 吗

对的


如果你的意思只是发送 !!id 能收到回复,那么就是 cq-http-api 出现了问题,例如没启用啥的

在 QQ 发送 !!id 无反应

from unifiedmessagerelay.

jqqqqqqqqqq avatar jqqqqqqqqqq commented on May 31, 2024

@xyf1219 那就是了,先检查 cq-http-api 的部署吧

from unifiedmessagerelay.

JogleLew avatar JogleLew commented on May 31, 2024

suggest: add common problem list and trouble shooting to README :)

from unifiedmessagerelay.

jqqqqqqqqqq avatar jqqqqqqqqqq commented on May 31, 2024

@JogleLew 交给你了,这个锅

from unifiedmessagerelay.

seiuneko avatar seiuneko commented on May 31, 2024

感觉 cq-http-api 已经安装并启用了的……

from unifiedmessagerelay.

jqqqqqqqqqq avatar jqqqqqqqqqq commented on May 31, 2024

@xyf1219 那请问你是在docker 内部执行的bot主程序吗,如果不是会连不上

from unifiedmessagerelay.

seiuneko avatar seiuneko commented on May 31, 2024

对的
我还可以提供什么信息呢?

from unifiedmessagerelay.

jqqqqqqqqqq avatar jqqqqqqqqqq commented on May 31, 2024

@xyf1219 问得好,让我想想

from unifiedmessagerelay.

Z4HD avatar Z4HD commented on May 31, 2024

@xyf1219 你或许应当看看酷Q的日志,检查一下你的Bot能否收到你发送的消息。


@jqqqqqqqqqq 只要做好端口映射,对于HTTP API来说容器外访问应该不成问题罢。

from unifiedmessagerelay.

jqqqqqqqqqq avatar jqqqqqqqqqq commented on May 31, 2024

@Z4HD 我没有对http api的本地资源映射做兼容,所以发图什么的还得在里边执行

from unifiedmessagerelay.

seiuneko avatar seiuneko commented on May 31, 2024

@Z4HDcoolq 的日志吗?
都是有消息的

from unifiedmessagerelay.

seiuneko avatar seiuneko commented on May 31, 2024

@Z4HD 请问你的「粗」分割线是怎么实现的呢?
试了下 <hr> & *** 都不行

from unifiedmessagerelay.

Z4HD avatar Z4HD commented on May 31, 2024

@xyf1219
https://www.appinn.com/markdown/index.html#hr

from unifiedmessagerelay.

Z4HD avatar Z4HD commented on May 31, 2024

@xyf1219

Bot配置文件

请检查ACCESS_TOKENSECRET两项是否与config.cfg中对应一致。

酷Q

  1. 检查日志中是否有HTTP API插件已启用字样,如无,则说明CQ HTTP API未正确启动。
  2. 通过QQ向Bot发送消息后,检查日志中是否有API服务类型的消息,如无,则说明Bot与CQ HTTP API之间的通信存在问题或Bot本身的运行存在问题。

from unifiedmessagerelay.

seiuneko avatar seiuneko commented on May 31, 2024

等等玄学 忽然又可以了……
在查看 coolq 日志时快速重启 然后 居然可以了喵

from unifiedmessagerelay.

jqqqqqqqqqq avatar jqqqqqqqqqq commented on May 31, 2024

@xyf1219 那你很喵喵喵啊

from unifiedmessagerelay.

seiuneko avatar seiuneko commented on May 31, 2024

(:зゝ∠)
麻烦你们了 这么晚
谢谢!

from unifiedmessagerelay.

jqqqqqqqqqq avatar jqqqqqqqqqq commented on May 31, 2024

@xyf1219 没事,我在用一个 github bot 回复你

from unifiedmessagerelay.

Z4HD avatar Z4HD commented on May 31, 2024

@xyf1219 那你很喵喵喵啊

@xyf1219 没事,我在用 github.com 网页 回复你

from unifiedmessagerelay.

seiuneko avatar seiuneko commented on May 31, 2024

你们……


@Z4HD +1


@jqqqqqqqqqq 是 tg 机器人?

from unifiedmessagerelay.

jqqqqqqqqqq avatar jqqqqqqqqqq commented on May 31, 2024

@xyf1219 不是啊,我只是懒得开网页了

from unifiedmessagerelay.

Z4HD avatar Z4HD commented on May 31, 2024

@xyf1219 加入粉丝用户群,该了

from unifiedmessagerelay.

seiuneko avatar seiuneko commented on May 31, 2024

23333
那个 可能捕获枚野生 bug
QQ 的 @ 转发到 tg 后没有空格

@2333 喵? => @2333喵?

# 就不开新 issue 了喵……

from unifiedmessagerelay.

seiuneko avatar seiuneko commented on May 31, 2024

那个 发现 tg 不能转发图片到 QQ

from unifiedmessagerelay.

jqqqqqqqqqq avatar jqqqqqqqqqq commented on May 31, 2024

@xyf1219 好问题,我回头会改一下的,这个空格确实是疏忽了

from unifiedmessagerelay.

jqqqqqqqqqq avatar jqqqqqqqqqq commented on May 31, 2024

@xyf1219 图片转发不过去?看看发图片的时候的日志,以及试试qq能不能发到tg。日志看coolq的日志和bot的

from unifiedmessagerelay.

Z4HD avatar Z4HD commented on May 31, 2024

@xyf1219

  1. 是否使用Coolq Air 但设置了"JQ_MODE": true
  2. 如使用CQA,那是否正确配置了图片静态访问

from unifiedmessagerelay.

seiuneko avatar seiuneko commented on May 31, 2024

@Z4HD 氪金的啦

from unifiedmessagerelay.

Z4HD avatar Z4HD commented on May 31, 2024

@xyf1219 据说CQP本身发图就比较玄学,突然不能用了或许应当换个姿势重启CQP。

from unifiedmessagerelay.

seiuneko avatar seiuneko commented on May 31, 2024

@Z4HD 重启过了说……

from unifiedmessagerelay.

seiuneko avatar seiuneko commented on May 31, 2024

ctb 的日志

2017-12-23 16:30:22,309 [DEBUG] telegram.vendor.ptb_urllib3.urllib3.connectionpool - connectionpool(connectionpool.py) : https://api.telegram.org:443 "POST /bot**************************/getUpdates HTTP/1.1" 200 842
2017-12-23 16:30:22,311 [DEBUG] telegram.bot - bot(bot.py) : Getting updates: [828910873]
2017-12-23 16:30:22,312 [DEBUG] telegram.bot - bot(bot.py) : [<telegram.update.Update object at 0x7f5dc574cf28>]
2017-12-23 16:30:22,312 [DEBUG] telegram.bot - bot(bot.py) : Exiting: get_updates
2017-12-23 16:30:22,313 [DEBUG] telegram.ext.dispatcher - dispatcher(dispatcher.py) : Processing Update: **************************
2017-12-23 16:30:22,314 [DEBUG] telegram.ext.conversationhandler - conversationhandler(conversationhandler.py) : selecting conversation (-2333333333, 233333333333) with state None
2017-12-23 16:30:22,314 [DEBUG] CTBPlugin.plugins._1006_water_meter_filter - _1006_water_meter_filter(_1006_water_meter_filter.py) : Water meter processing
2017-12-23 16:30:22,315 [DEBUG] telegram.bot - bot(bot.py) : Entering: get_file
2017-12-23 16:30:22,471 [DEBUG] telegram.vendor.ptb_urllib3.urllib3.connectionpool - connectionpool(connectionpool.py) : https://api.telegram.org:443 "POST /bot********************/getFile HTTP/1.1" 200 142
2017-12-23 16:30:22,472 [DEBUG] telegram.bot - bot(bot.py) : {'file_id': '******************************', 'file_size': 204330, 'file_path': 'https://api.telegram.org/file/bot**********************************************************/photos/file_72.jpg'}
2017-12-23 16:30:22,473 [DEBUG] telegram.bot - bot(bot.py) : Exiting: get_file
2017-12-23 16:30:22,782 [DEBUG] telegram.vendor.ptb_urllib3.urllib3.connectionpool - connectionpool(connectionpool.py) : https://api.telegram.org:443 "GET /file/bot**********************************************************/photos/file_72.jpg HTTP/1.1" 200 204330
2017-12-23 16:30:23,318 [DEBUG] telegram.bot - bot(bot.py) : Entering: get_updates
2017-12-23 16:30:24,062 [DEBUG] CTBMain.utils - utils(utils.py) : tg -> qq: [{'type': 'image', 'data': {'file': '******************************************.jpg'}}]
2017-12-23 16:30:24,788 [DEBUG] CTBMain.message_persistence - message_persistence(message_persistence.py) : append tg_msg_id:726, qq_msg_id:395, qq_num:0, time:1514046624 to _0

感觉并没有问题的说

# coolq 的日志死活打不开

from unifiedmessagerelay.

jqqqqqqqqqq avatar jqqqqqqqqqq commented on May 31, 2024

如果 qq 到 tg 图片转发正常,反过来不行,就加那个 hosts

from unifiedmessagerelay.

jqqqqqqqqqq avatar jqqqqqqqqqq commented on May 31, 2024

gchat.qpic.cn,找一个国内记录扔过去
可以试试用网上工具多找点地址用 vps 试试哪个快
以及 docker 重启会清 hosts,建议找个开机脚本写命令加

from unifiedmessagerelay.

Related Issues (20)

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.