mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-22 09:26:37 +03:00
Fix Conversation not allowing getting responses after ID 0
This commit is contained in:
parent
599a5ac3ff
commit
1ead9757d3
|
@ -369,7 +369,7 @@ class Conversation(ChatGetter):
|
|||
del self._pending_reads[to_remove]
|
||||
|
||||
def _get_message_id(self, message):
|
||||
if message:
|
||||
if message is not None: # 0 is valid but false-y, check for None
|
||||
return message if isinstance(message, int) else message.id
|
||||
elif self._last_outgoing:
|
||||
return self._last_outgoing
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
# Versions should comply with PEP440.
|
||||
# This line is parsed in setup.py:
|
||||
__version__ = '1.7.1'
|
||||
__version__ = '1.7.2'
|
||||
|
|
Loading…
Reference in New Issue
Block a user