Fix channel check issue on send_read_acknowledge

This commit is contained in:
Nikola Vlahović 2018-01-08 12:46:03 +01:00 committed by GitHub
parent 46b088d44c
commit e94d644298
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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