fix: use inputPeer in CallbackQuery#getMessage()

closes #7
This commit is contained in:
alina 🌸 2023-09-24 04:16:43 +03:00
parent 5dcd965934
commit 7a41950632
Signed by: teidesu
SSH key fingerprint: SHA256:uNeCpw6aTSU4aIObXLvHfLkDa82HWH9EiOj9AXOIRpI

View file

@ -166,7 +166,7 @@ export class CallbackQuery {
throw new MtArgumentError('Cannot get a message for inline callback')
}
const msg = await this.client.getMessages(this.raw.peer, this.raw.msgId)
const msg = await this.client.getMessages(this.user.inputPeer, this.raw.msgId)
if (!msg) {
throw new MtMessageNotFoundError(getMarkedPeerId(this.raw.peer), this.raw.msgId, 'with button')