Skip to content

Commit

Permalink
fix(qq): cannot send files in proactive messages (#302)
Browse files Browse the repository at this point in the history
  • Loading branch information
bili-22 committed Jul 31, 2024
1 parent 5854fed commit d9f87d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adapters/qq/src/message.ts
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ export class QQMessageEncoder<C extends Context = Context> extends MessageEncode
if (this.session.isDirect) {
res = await this.bot.internal.sendFilePrivate(this.options.session.userId, data)
} else {
res = await this.bot.internal.sendFileGuild(this.session.guildId, data)
res = await this.bot.internal.sendFileGuild(this.session.channelId, data)
}
} catch (e) {
if (!this.bot.http.isError(e)) throw e
Expand Down

0 comments on commit d9f87d9

Please sign in to comment.