Closed David-MKoch closed 5 years ago
Well, currently tdl
just emits all received updates. It is assumed that the user will filter all unneeded updates themselves.
For example, using RxJS:
const updates$ = Rx.fromEvent(client, 'update')
.filter(u => u._ === 'updateDeleteMessages' ? !u.from_cache : true)
I set the
tdlibParameters
fields in this way.But after a period of time, messages are cleared and an
updateDeleteMessages
event is sent with the value offrom_cache == true
. I want to ignore theupdateDeleteMessages
with the value offrom_cache == true
by the client.