Code Monkey home page Code Monkey logo

coolq-telegram-bot-x's People

Contributors

joglelew avatar moesoha avatar wtdcode 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  avatar  avatar  avatar  avatar  avatar  avatar

coolq-telegram-bot-x's Issues

Bot在tg群聊中收不到其它bot的消息

CTBX 的版本信息(关键):10.2.1

相关的 Log(请务必抹除敏感信息):
[2018-10-22 05:36:10] [info] [Bot] [Bot开始初始化]
[2018-10-22 05:36:10] [debug] [TGBot] [开始初始化TGBot,根据网络情况需要的时间有较大区别]
[2018-10-22 05:36:10] [debug] [TGBot] [TGBot的Token为:xxxxxxxx:xxxxxxxxxxxxxxxx]
[2018-10-22 05:36:11] [debug] [TGBot] [TGBot初始化完成,TGBot用户名:xxxxxx]
[2018-10-22 05:36:11] [debug] [Cards] [群名片Timer启动,更新间隔:21600s]
[2018-10-22 05:36:11] [info] [Bot] [初始化完毕]
[2018-10-22 05:36:14] [info] [Forward] [从TG群-xxxxxxxx收到消息 : 1,开始转发到QQ群xxxxxxxx]
[2018-10-22 05:36:14] [debug] [MsgDebugInfo] [文本:true]
[2018-10-22 05:36:14] [debug] [MsgDebugInfo] [照片:0]
[2018-10-22 05:36:14] [debug] [MsgDebugInfo] [Forward:0]
[2018-10-22 05:36:14] [debug] [MsgDebugInfo] [Sticker:0]
[2018-10-22 05:36:14] [debug] [MsgDebugInfo] [音频:0]
[2018-10-22 05:36:24] [info] [Forward] [从TG群-xxxxxxxx收到消息 : /rss,开始转发到QQ群xxxxxxxx]
[2018-10-22 05:36:24] [debug] [MsgDebugInfo] [文本:true]
[2018-10-22 05:36:24] [debug] [MsgDebugInfo] [照片:0]
[2018-10-22 05:36:24] [debug] [MsgDebugInfo] [Forward:0]
[2018-10-22 05:36:24] [debug] [MsgDebugInfo] [Sticker:0]
[2018-10-22 05:36:24] [debug] [MsgDebugInfo] [音频:0]
[2018-10-22 05:38:14] [info] [Bot] [Bot即将退出]
[2018-10-22 05:38:19] [debug] [Cards] [群名片Timer停止]

screen shot 2018-10-22 at 01 46 51

是否能复现,如果可以的话怎样复现:能,在tg群聊里由其它bot发消息

其余转发是否正常,出问题的消息是否是个例:仅收不到其它bot的消息,其它消息转发正常

Error enabling.

Config:

{
    "Bot_Token" : "some-token",
    "Bot_QQ" :  99999,
    "Forward_List" :
    [
        {
            "From_Group" : 999999,
            "To_Group" : -99999,
            "Type" : "Q<->T"
        }
    ]
}

image

实现tg和qq的互通时会产生递归问题导致消息x2

消息会重复两次的发送

[2019-02-13 13:07:25] [info] [Forward] [从TG群-*********收到消息 : 长消息照样复读,开始转发到QQ群4*******]
[2019-02-13 13:07:25] [debug] [MsgDebugInfo] [文本:true]
[2019-02-13 13:07:25] [debug] [MsgDebugInfo] [照片:0]
[2019-02-13 13:07:25] [debug] [MsgDebugInfo] [Forward:0]
[2019-02-13 13:07:25] [debug] [MsgDebugInfo] [Sticker:0]
[2019-02-13 13:07:25] [debug] [MsgDebugInfo] [音频:0]
[2019-02-13 13:07:25] [info] [Forward] [从TG群-************收到消息 : 长消息照样复读,开始转发到QQ群4****]
[2019-02-13 13:07:25] [debug] [MsgDebugInfo] [文本:true]
[2019-02-13 13:07:25] [debug] [MsgDebugInfo] [照片:0]
[2019-02-13 13:07:25] [debug] [MsgDebugInfo] [Forward:0]
[2019-02-13 13:07:25] [debug] [MsgDebugInfo] [Sticker:0]
[2019-02-13 13:07:25] [debug] [MsgDebugInfo] [音频:0]

最终效果导致:
temp.JPG

回复消息

向bot回复某条消息时,另外一端显示的回复对象是bot,并非原始发送者。

程序访问失败

您好请问出现这个问题怎么解决

[2019-02-11 21:22:57] [info] [Bot] [Bot开始初始化]
[2019-02-11 21:22:57] [debug] [TGBot] [开始初始化TGBot,根据网络情况需要的时间有较大区别]
[2019-02-11 21:22:57] [debug] [TGBot] [TGBot的Token为:6***********:AA*******************************************]
[2019-02-11 21:23:19] [debug] [TGBot] [初始化失败,原因:connect: 由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败。]
[2019-02-11 21:23:19] [info] [TGBot] [初始化失败,请尝试重新启动Bot。]

请问这里的发送API的网址是不是api.telegram.org
api.telegram.org我用firefox测试的
发送

https://api.telegram.org/bot66******16:AA*********************************A/sendMessage?chat_id=-1****************&text=%E6%B5%8B%E8%AF%95%E6%B6%88%E6%81%AF

效果截图
temp.JPG

TODO LIST

按照优先级排列

  • 解决CQ的原生log严重的thread-unsafe问题
  • 配置读取独立出来,用jsoncpp读取
  • 修改说明文档,说明新的安装/配置/参与开发的方法
  • 支持解析TG中Forward的信息
  • 支持静态图片互转
  • 不要字符串拼接了,用格式化字符串
  • 点对点,点对组转发
  • 联系人转发
  • 支持解析QQ中特殊类型信息
  • 优化只有TG->TG或者QQ->QQ时候的逻辑
    And more....
    如果有更急的feature可以在下面回复 :)

QQ可以转发到TG,反过来不行

QQ普通聊天可以转发到TG上,但TG上普通聊天转发不到QQ上,但是很奇葩的操作是,在TG上回复TG bot转发出来的消息就能转发到QQ上,但常规聊天不转发

集成Telegram与QQ的回复功能

除了 #18 提到的文字指示的回复对象是 Bot 外,可否集成 Telegram 和 QQ 本身的回复功能?
因为 Telegram 和 QQ 本身的回复能够带有上下文信息而且可以跳转,避免另一端的用户知道回复了谁,却不知道回复的是哪条消息的情况。

Can't forward images from QQ to QQ

snipaste_2018-06-11_21-15-49

Log

[2018-06-11 21:13:10] [info] [MsgDebugInfo] [从QQ群xx收到消息 : [CQ:image,file=CBA88277B4556C799361503A3D7FA56A.jpg],开始转发到QQ群xxx]
[2018-06-11 21:13:10] [debug] [MsgDebugInfo] [raw:[CQ:image,file=CBA88277B4556C799361503A3D7FA56A.jpg]]
[2018-06-11 21:13:10] [debug] [MsgDebugInfo] [Type:image]
[2018-06-11 21:13:10] [debug] [MsgDebugInfo] [first:filesecond:CBA88277B4556C799361503A3D7FA56A.jpg]
[2018-06-11 21:13:10] [info] [Image] [开始发送id为的图片]
[2018-06-11 21:13:10] [debug] [Image] [开始下载md5为CBA88277B4556C799361503A3D7FA56A的QQ图片]
[2018-06-11 21:13:10] [debug] [Image] [完整文件路径:C:\Users\soha\Desktop\coolQpro\data\image\CBA88277B4556C799361503A3D7FA56A.jpg]

Problem with spdlog and under Windows 7

Problem

  1. When the permission is not enough, spdlog will throw an error and cause the plugin exit unexpectedly.
  2. Unknown error when enabling the plugin while using Windows 7 with CoolQ developer mode. Caused by non-ASCII chars.

snipaste_2018-06-11_16-04-35

Version

CoolQ Pro 5.11.14

The latest ctbx(10.1.0, master branch).

readme typo

替代品->音频转发,中文版的 Readme 里写的是支持,英文版是 Unsupport

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.