This repository was archived by the owner on Jul 14, 2026. It is now read-only.
Get message by replyToMsgId #549
Unanswered
marekkirillov
asked this question in
Q&A
Replies: 1 comment
|
You went too far. It is as easy as: const repliedMessage = await event.message.getReplyMessage(); |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi! Does anyone know how to properly get the original message that is being replied to? I tried using the replyToMsgId and API.messages.GetMessages function, but it will always return a MessageEmpty object.
Some code:
Im using this handler to get notified when a new message arrives:
client.addEventHandler(eventPrint, new NewMessage({ chats: [chatIds] }));This is the part from the eventPrint fn that should query the original message:
The result is always something like that:
All reactions