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(); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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:
Beta Was this translation helpful? Give feedback.
All reactions