setUpdateFilter method
Limits which updates are decoded at all. Updates of other types are
dropped in the receive isolate without decoding, which saves CPU when
an app needs only a few kinds. null (the default) delivers all.
Authorization, option and connection-state updates always pass. An
update dropped here is gone: read current state from TDLib (e.g.
getChat) before relying on updates of a newly added type.
Implementation
void setUpdateFilter(Set<String>? updateTypes) {
_updateFilter = updateTypes;
_control?.send({'cmd': 'filter', 'wanted': updateTypes?.toList()});
}