I'll try to help explain
There is logic in this, because you can create chats for a group of people and communicate with them there, but now in boxing it’s just messy and it’s not clear who wrote where, I used to test this thing, it works somehow every other time, then falls off, in general As far as I understand, when a user writes to a chat, the messages come, as it were, not within the chat, but from a specific user.
And I see solutions for myself in such a way that it is necessary to take chat_id to search for a process with us
since it is different for a personal message and for a message to a group
And now it's all in one pack
Here is an example of a personal chat in the box
https://prosto-shop.pp.ua/admin/customorder/lead/1605/edit/Here is the bot
https://prosto-shop.pp.ua/admin/customorder/lead/53/edit/the last two messages flew into a private chat