Telethon/telethon
Lonami Exo 5ca1edb228 Return the correct entity from .get_entity(username)
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.
2018-08-26 12:00:17 +02:00
..
client Return the correct entity from .get_entity(username) 2018-08-26 12:00:17 +02:00
crypto Revert 030f292 (use libssl if available) 2018-07-25 12:11:58 +02:00
errors Fix-up previous commit f17d7e9 (#967) 2018-08-24 19:50:55 +02:00
events Use loop.create_future instead asyncio.Future 2018-08-21 12:22:06 +02:00
extensions Fix exception ignored warnings and invalid state #935 2018-08-04 15:06:11 +02:00
network Use loop.create_future instead asyncio.Future 2018-08-21 12:22:06 +02:00
sessions Fix MemorySession file caching 2018-08-22 16:21:22 +02:00
tl Use loop.create_future instead asyncio.Future 2018-08-21 12:22:06 +02:00
__init__.py Include TAKEOUT_INIT_DELAY_X in the available errors 2018-06-27 09:46:14 +02:00
helpers.py Return helpers.TotalList instances on client.get_ methods 2018-08-02 23:00:10 +02:00
sync.py Add Conversation to the sync magic module 2018-08-05 11:05:01 +02:00
updatestate.py Remove underscore from module names 2018-06-18 21:02:42 +02:00
utils.py Add utils.resolve_bot_file_id inverse 2018-08-06 17:54:07 +02:00
version.py Update to v1.2 2018-08-14 18:48:56 +02:00