A
A
a2019-10-27 00:42:36
In contact with
a, 2019-10-27 00:42:36

How to check where the user sent the message from, from a PM or a conversation?

I need to check where the message from the LAN or conversation came from.
I use longpool
Thanks in advance)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Stockholm Syndrome, 2019-10-27
@MZOK

if the peer_id field is more than two billion, then from the conversation

J
jolyguf, 2019-10-27
@jolyguf

peer_id = 2000000000 + conversation id. - that's a conversation. If equal to user ID, then private messages

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question