mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-09 05:19:41 +00:00
Fix channel check issue on send_read_acknowledge (#526)
This commit is contained in:
@@ -662,7 +662,7 @@ class TelegramClient(TelegramBareClient):
|
|||||||
max_id = message.id
|
max_id = message.id
|
||||||
|
|
||||||
entity = self.get_input_entity(entity)
|
entity = self.get_input_entity(entity)
|
||||||
if entity == InputPeerChannel:
|
if isinstance(entity, InputPeerChannel):
|
||||||
return self(channels.ReadHistoryRequest(entity, max_id=max_id))
|
return self(channels.ReadHistoryRequest(entity, max_id=max_id))
|
||||||
else:
|
else:
|
||||||
return self(messages.ReadHistoryRequest(entity, max_id=max_id))
|
return self(messages.ReadHistoryRequest(entity, max_id=max_id))
|
||||||
|
Reference in New Issue
Block a user