takayama-lily / oicq

Tencent QQ Bot Library for Node.js
https://oicqjs.github.io/oicq/
Mozilla Public License 2.0
2.67k stars 401 forks source link

无法发送视频 #464

Open misaki-me opened 1 year ago

misaki-me commented 1 year ago

Node.js Version

v14.16.1

Package(oicq) Version

2.3.1

Login Protocol

aPad

Bug Description (最好截图说明,你的文字描述可能无法准确传达信息)

无法发送视频消息,试过绝对路径和相对路径都不行 QQ截图20221116145230

Log Details (控制台日志,请提供包含前后一段时间内的)

2022-11-16 14:27:59,366 ERROR 22627 nodejs.unhandledRejectionError: ffmpeg获取视频图像帧失败 at Application._unhandledRejectionHandler (/www/wwwroot/telegram/api/node_modules/egg/lib/egg.js:345:24) at process.emit (events.js:315:20) at processPromiseRejections (internal/process/promises.js:245:33) at processTicksAndRejections (internal/process/task_queues.js:94:32) name: "unhandledRejectionError" pid: 22627 hostname: iZt4n1xusptquzfw28d8trZ

misaki-me commented 1 year ago

没事了,原来是我没装 ffmpeg

mobilelifeful commented 1 year ago

没事了,原来是我没装 ffmpeg

可以发一份 发送图片/视频的 代码吗?

misaki-me commented 1 year ago

没事了,原来是我没装 ffmpeg

可以发一份 发送图片/视频的 代码吗?

我公开仓库里面有

mobilelifeful commented 1 year ago

没事了,原来是我没装 ffmpeg

可以发一份 发送图片/视频的 代码吗?

我公开仓库里面有

https://github.com/misaki-me/telegram 是这个吗? 可以说下 appID: '', // 申请机器人时获取到的机器人 BotAppID token: '', // 申请机器人时获取到的机器人 BotToken

在哪里获取吗?

直接填写

config.QQaccount = {
 account: "",
 password: ''

}

来做登陆可以吗? 🙏

misaki-me commented 1 year ago

appID: '', // 申请机器人时获取到的机器人 BotAppID token: '', // 申请机器人时获取到的机器人 BotToken 这两个是电报用的,QQ机器人可以不用管

mobilelifeful commented 1 year ago

appID: '', // 申请机器人时获取到的机器人 BotAppID token: '', // 申请机器人时获取到的机器人 BotToken 这两个是电报用的,QQ机器人可以不用管

config.QQbot = { appID: '', // 申请机器人时获取到的机器人 BotAppID token: '', // 申请机器人时获取到的机器人 BotToken intents: ['GUILDS', 'GUILD_MEMBERS', 'GUILD_MESSAGES', 'GUILD_MESSAGE_REACTIONS', 'DIRECT_MESSAGE', 'INTERACTION', 'MESSAGE_AUDIT', 'FORUMS_EVENT', 'AUDIO_ACTION', 'PUBLIC_GUILD_MESSAGES'], // 事件订阅,用于开启可接收的 消息类型 sandbox: false, // 沙箱支持,可选,默认false. v2.7.0+ } config.v2Ray=''; config.guild = { id: '', channelId: '' } config.telegram = { apiId: " ", apiHash: " ", token: " : " } config.QQaccount = { account: " ", password: ' ' }

大佬不要骗我啊

config.QQbot 里面的啊

misaki-me commented 1 year ago

说错了,config.QQbot是QQ官方的机器人的参数,oicq用不到

mobilelifeful commented 1 year ago

config.telegram = { apiId: " ", apiHash: " ", token: " : " }

那么 config.telegram = { apiId: " ", apiHash: " ", token: " : " } 这里的token是tg bot吗?

  1. 如果是的话, 为什么需要用到bot呢? 这不是调用TDlib 的吗?
  2. 有办法双向 的吗? 就是QQ的消息 也转到TG?
misaki-me commented 1 year ago

1.是tg Bot,为以后拓展其他功能用的,目前没用到 2.文字消息应该可以,媒体消息oicq这边具体有没有提供下载的api,我也不清楚,你可以自己看下