mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-23 01:46:35 +03:00
Fix wrong check on .send_message (closes #250)
This commit is contained in:
parent
81d4d76d16
commit
9ae4f7f641
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue
Block a user