Comments (36)
你分别测试以下两个内容
在 telegram 群组中发送 !!id ,看看有没有反应
如果没有反应需要检查到 telegram 的网络连接
在 qq 中发送消息 !!id ,看看有没有反应
如果没有反应需要检查 cq-http-api 是否已启用
你的 log 没有看到异常,说明不是执行的时候出问题了,而是环境有些问题
from unifiedmessagerelay.
tg 有反应且可以正常转发
qq 无反应且不能转发
所以是 cq-http-api
的问题了?
from unifiedmessagerelay.
什么叫正常转发,是指 tg 发送文本能发到 qq 吗
如果你的意思只是发送 !!id 能收到回复,那么就是 cq-http-api 出现了问题,例如没启用啥的
docker 版不是我创建的,所以我不确定会不会是这个问题
你先去 coolq 的面板里检查下cq-http-api 是否已启用,以及 coolq 的日志页面能否看到 cq-http-api 的加载日志
from unifiedmessagerelay.
什么叫正常转发,是指 tg 发送文本能发到 qq 吗
对的
如果你的意思只是发送 !!id 能收到回复,那么就是 cq-http-api 出现了问题,例如没启用啥的
在 QQ 发送 !!id
无反应
from unifiedmessagerelay.
@xyf1219 那就是了,先检查 cq-http-api 的部署吧
from unifiedmessagerelay.
suggest: add common problem list and trouble shooting to README :)
from unifiedmessagerelay.
@JogleLew 交给你了,这个锅
from unifiedmessagerelay.
感觉 cq-http-api
已经安装并启用了的……
from unifiedmessagerelay.
@xyf1219 那请问你是在docker 内部执行的bot主程序吗,如果不是会连不上
from unifiedmessagerelay.
对的
我还可以提供什么信息呢?
from unifiedmessagerelay.
@xyf1219 问得好,让我想想
from unifiedmessagerelay.
@xyf1219 你或许应当看看酷Q的日志,检查一下你的Bot能否收到你发送的消息。
@jqqqqqqqqqq 只要做好端口映射,对于HTTP API来说容器外访问应该不成问题罢。
from unifiedmessagerelay.
@Z4HD 我没有对http api的本地资源映射做兼容,所以发图什么的还得在里边执行
from unifiedmessagerelay.
@Z4HD 是 coolq
的日志吗?
都是有消息的
from unifiedmessagerelay.
@Z4HD 请问你的「粗」分割线是怎么实现的呢?
试了下 <hr>
& ***
都不行
from unifiedmessagerelay.
@xyf1219
https://www.appinn.com/markdown/index.html#hr
from unifiedmessagerelay.
@xyf1219
Bot配置文件
请检查ACCESS_TOKEN
和 SECRET
两项是否与config.cfg
中对应一致。
酷Q
- 检查日志中是否有
HTTP API插件已启用
字样,如无,则说明CQ HTTP API未正确启动。 - 通过QQ向Bot发送消息后,检查日志中是否有
API服务
类型的消息,如无,则说明Bot与CQ HTTP API之间的通信存在问题或Bot本身的运行存在问题。
from unifiedmessagerelay.
等等玄学 忽然又可以了……
在查看 coolq 日志时快速重启 然后 居然可以了喵
from unifiedmessagerelay.
@xyf1219 那你很喵喵喵啊
from unifiedmessagerelay.
(:зゝ∠)
麻烦你们了 这么晚
谢谢!
from unifiedmessagerelay.
@xyf1219 没事,我在用一个 github bot 回复你
from unifiedmessagerelay.
@xyf1219 那你很喵喵喵啊
@xyf1219 没事,我在用 github.com 网页 回复你
from unifiedmessagerelay.
你们……
@Z4HD +1
@jqqqqqqqqqq 是 tg 机器人?
from unifiedmessagerelay.
@xyf1219 不是啊,我只是懒得开网页了
from unifiedmessagerelay.
@xyf1219 加入粉丝用户群,该了
from unifiedmessagerelay.
23333
那个 可能捕获枚野生 bug
QQ 的 @ 转发到 tg 后没有空格
@2333 喵?
=> @2333喵?
# 就不开新 issue 了喵……
from unifiedmessagerelay.
那个 发现 tg 不能转发图片到 QQ
from unifiedmessagerelay.
@xyf1219 好问题,我回头会改一下的,这个空格确实是疏忽了
from unifiedmessagerelay.
@xyf1219 图片转发不过去?看看发图片的时候的日志,以及试试qq能不能发到tg。日志看coolq的日志和bot的
from unifiedmessagerelay.
@xyf1219
- 是否使用Coolq Air 但设置了
"JQ_MODE": true
? - 如使用CQA,那是否正确配置了图片静态访问?
from unifiedmessagerelay.
@Z4HD 氪金的啦
from unifiedmessagerelay.
@xyf1219 据说CQP本身发图就比较玄学,突然不能用了或许应当换个姿势重启CQP。
from unifiedmessagerelay.
@Z4HD 重启过了说……
from unifiedmessagerelay.
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.
如果 qq 到 tg 图片转发正常,反过来不行,就加那个 hosts
from unifiedmessagerelay.
gchat.qpic.cn,找一个国内记录扔过去
可以试试用网上工具多找点地址用 vps 试试哪个快
以及 docker 重启会清 hosts,建议找个开机脚本写命令加
from unifiedmessagerelay.
Related Issues (20)
- 希望加入联系人互转 HOT 4
- Update Licence HOT 12
- debian 7 wheezy下同时转发多个群聊出现unhandled exception HOT 4
- QQ能到TG,TG不能到QQ HOT 6
- docker 方案部署时报错 HOT 3
- [WARNING](daemon.py:128): Could not reach Coolq-http-api, keep waiting... HOT 13
- Code to delete @usernames and links of forwarder messages?? HOT 1
- Telegram 群组中发送的图片不能被转发到 QQ 群 HOT 3
- 转发的消息中机器人自动添加的冒号在 Android Pie 下无法显示 HOT 8
- 关键词的功能如何使用 HOT 4
- QQ无法转发到TG HOT 1
- 双边无法传输图片 HOT 1
- Readme rot HOT 1
- 建议加个单向模式 HOT 4
- tg到qq: 无法转发群组中机器人发的消息channel_post HOT 11
- Telegram 转发到 QQ 参数错误 -20 HOT 9
- 希望增加多Topology参数的支持 HOT 6
- [FR]有支持XMPP和IRC协议的计划吗? HOT 1
- [Enhancement]Docker部署 HOT 1
- [help wanted]mirai2tg 无法运行 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from unifiedmessagerelay.