Consider changing this condition https://github.com/python-telegram-bot/python-telegram-bot/blob/88eccc6608d141004d231b38df76492e1c5f5b93/telegram/ext/filters.py#L796 to something like ```python if (user_id is None) == (username is None): ``` To avoid throwing the `ValueError` _"One and only one of user_id or username must be used"_ when an empty list of `user_id`s **or** `username`s is issued. Similarly for `Filters.chat`. PS This should also be 3 to 4 times faster.