Fix channel check issue on send_read_acknowledge (#526)

This commit is contained in:
Nikola Vlahović 2018-01-08 12:46:47 +01:00 committed by Lonami
parent 46b088d44c
commit 0c3216cb36

View File

@ -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))