-
I observe only 1 specific tg-channel. As soon as a message appears in it, I catch it in the handleMessage and write it into my Redis database via amp\redis. Why am I seeing multiple copies of the same message in my DB? In the EventHandler, I decided to create fields to control the queue of messages, so that in case of a duplicate, I would return from the handleMessage, but this did not help. It seems that, for each message, the library works with its own unique instance of EventHandler, but obviously this is impossible. Could you help me please? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You probably need to filter for non-edited messages, &IsNotEdited |
Beta Was this translation helpful? Give feedback.
You probably need to filter for non-edited messages, &IsNotEdited