Skip to content

Commit

Permalink
fix(qq): fix private chat not being able to send rich media (#299)
Browse files Browse the repository at this point in the history
  • Loading branch information
idranme authored Jul 20, 2024
1 parent f1a1c28 commit d7c681d
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 @@ -324,7 +324,7 @@ export class QQMessageEncoder<C extends Context = Context> extends MessageEncode
let res: QQ.Message.File.Response
try {
if (this.session.isDirect) {
res = await this.bot.internal.sendFilePrivate(this.options.session.event.message.user.id, data)
res = await this.bot.internal.sendFilePrivate(this.options.session.userId, data)
} else {
res = await this.bot.internal.sendFileGuild(this.session.guildId, data)
}
Expand Down

0 comments on commit d7c681d

Please sign in to comment.