Fix wrong check on .send_message (closes #250)

This commit is contained in:
jiang gau 2017-09-19 22:27:10 +08:00 committed by Lonami
parent 81d4d76d16
commit 9ae4f7f641

View File

@ -427,7 +427,7 @@ class TelegramClient(TelegramBareClient):
reply_to_msg_id=self._get_reply_to(reply_to)
)
result = self(request)
if isinstance(request, UpdateShortSentMessage):
if isinstance(result, UpdateShortSentMessage):
return Message(
id=result.id,
to_id=entity,