bot-node-sdk icon indicating copy to clipboard operation
bot-node-sdk copied to clipboard

QQ频道机器人 NODESDK

Results 15 bot-node-sdk issues
Sort by recently updated
recently updated
newest added

在[官方API文档](https://bot.q.qq.com/wiki/develop/api/openapi/message/post_messages.html)里有说明,可以通过`multipart/form-data`参数里的`file_image`字段,直接通过文件上传的方式发送图片,请求适配

官方API:[https://bot.q.qq.com/wiki/develop/api/openapi/message/post_markdown_messages.html](https://bot.q.qq.com/wiki/develop/api/openapi/message/post_markdown_messages.html)

例如子频道创建监听到的内容与文档中 [示例内容](https://bot.q.qq.com/wiki/develop/api/gateway/channel.html#channel-create) 不同 ![image](https://user-images.githubusercontent.com/38873815/163747321-c9ea71a9-bc2c-4ff8-bdd8-b076c7eaeb63.png) ![image](https://user-images.githubusercontent.com/38873815/163747174-f9892c5a-514d-47bf-a280-c1ea67e8cf0f.png) 能否提供ts类型声明?

部分事件在types/websocket-types.ts中的定义与API文档中的不同,导致部分事件的触发名称为undefined,导致无法接收到事件 已完成fix,Commit:https://github.com/TimeBather/bot-node-sdk/commit/50f9d06c568dccb9a6c3bb5178cd85f174039dc3 等等官方回复以PR 由于本次为Breaking Change(会加入多个已经使用的Event),所以建议更新主版本号以防止依赖旧版SDK的机器人出现意外的逻辑

版本:2.9.1 复现方式: ```ts import { createWebsocket } from 'qq-guild-bot'; class Test { constructor(ws: any) { ws.on('READY', this.test); } test() { console.log(this); } } const test = new Test(createWebsocket(/* 配置文件略 */));...

TS4023: Exported variable 'client' has or is using name 'OpenAPI' from external module "/Users/*****/node_modules/qq-guild-bot/typings/index" but cannot be named. Example code: ```js import {createOpenAPI} from 'qq-guild-bot'; const client = createOpenAPI({...}); export...

例如在[wws消息体](https://bot.q.qq.com/wiki/develop/nodesdk/wss/model.html)文档示例中 有 READY、ERROR、GUILGUILD_MEMBERSDS、AT_MESSAGES 但是在 [事件订阅 intents](https://bot.q.qq.com/wiki/develop/api/gateway/intents.html) 中并没有事件说明 造成此类事件不知道该如何使用

如题,能否增加该鉴权方式,使用旧demo遇到token错误问题 ``` data: { message: 'Token错误', code: 11242, err_code: 40012002, trace_id: '24e24b98770ce35841348c3d040925cb' } ``` ```JavaScript function BotInit(conf) { // console.log(conf); var bot = botObj.createOpenAPI(conf); var bot_ws = botObj.createWebsocket(conf); init_log("机器人实例初始化完成!"); return...