mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-06-05 22:23:15 +03:00
Fix channel check issue on send_read_acknowledge (#526)
This commit is contained in:
parent
46b088d44c
commit
0c3216cb36
|
@ -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))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user