mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-02-26 08:20:50 +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
|
||||
|
||||
entity = self.get_input_entity(entity)
|
||||
if entity == InputPeerChannel:
|
||||
if isinstance(entity, InputPeerChannel):
|
||||
return self(channels.ReadHistoryRequest(entity, max_id=max_id))
|
||||
else:
|
||||
return self(messages.ReadHistoryRequest(entity, max_id=max_id))
|
||||
|
|
Loading…
Reference in New Issue
Block a user