- Notifications
You must be signed in to change notification settings - Fork5.7k
Description
Consider changing this condition
ifnot (bool(user_id)^bool(username)): |
to something like
if (user_idisNone)== (usernameisNone):
To avoid throwing theValueError
"One and only one of user_id or username must be used" when an empty list ofuser_id
sorusername
s is issued.
Similarly forFilters.chat
.
PS This should also be 3 to 4 times faster.
Metadata
Metadata
Assignees
Labels
No labels