Closed mehtadone closed 2 months ago
@mehtadone, You can see example here where you can handle the case of new message arrived and handle by specific user id or chat.
@mehtadone, You can see example here where you can handle the case of new message arrived and handle by specific user id or chat.
Thank you! This is what I am doing now, but was more wondering if you didn't have to handle every message. I thought that is was IPeerCollector does
IPeerCollector is not a filtering system, it's a collector system. The HasUser/HasChat are used to determine if a user/chat was already collected.
Hi,
Can anyone provide an example of how to use UpdateManager with IPeerCollector? I was under the assumption you could use this to listen to updates from certain chats/users only but if I create one and add chats/users, I still receive messages from all chats.
Thank you in advance