K
K
kikibyk2019-12-09 23:25:17
In contact with
kikibyk, 2019-12-09 23:25:17

How to get information about the user when his message is answered?

It turns out that if I reply to a user's message with the !id command, it is his ID that should be sent to me. How can I do that?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pigeon1235, 2019-12-10
@Pigeon1235

Forwarded message:

let ID = msg.hasForwards ? msg.forwards[0].senderId : 'Нет пересланого сообщения'
return msg.send(`${ID}`);

If the answer is:
let ID =msg.hasReplyMessage ? msg.replyMessage.senderId : 'Нет ответа на сообщение';
return msg.send(`${ID}`);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question