mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-01-27 09:44:35 +03:00
5ca1edb228
The precedence of the or operator made the check succeed always out of pure luck, since `''.lower()` would never be the chosen username, but a present username is truthy. This presumably worked because Telegram only returns one result from the call, or puts the right entity the first one. |
||
---|---|---|
.. | ||
client | ||
crypto | ||
errors | ||
events | ||
extensions | ||
network | ||
sessions | ||
tl | ||
__init__.py | ||
helpers.py | ||
sync.py | ||
updatestate.py | ||
utils.py | ||
version.py |