mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-08 21:10:29 +00:00
Set _input_chat on custom.Message creation/fixup input_chat
This commit is contained in:
@@ -127,7 +127,8 @@ class EventCommon(abc.ABC):
|
||||
except ValueError:
|
||||
ch = isinstance(self._chat_peer, types.PeerChannel)
|
||||
if not ch and self._message_id is not None:
|
||||
msg = await self._client.get_messages(ids=self._message_id)
|
||||
msg = await self._client.get_messages(
|
||||
None, ids=self._message_id)
|
||||
self._chat = msg._chat
|
||||
self._input_chat = msg._input_chat
|
||||
else:
|
||||
|
Reference in New Issue
Block a user