mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-08 12:59:46 +00:00
Add comment_to parameter to more easily post comments
This commit is contained in:
@@ -235,6 +235,7 @@ class _Message(ChatGetter, SenderGetter):
|
||||
self._via_bot = None
|
||||
self._via_input_bot = None
|
||||
self._action_entities = None
|
||||
self._linked_chat = None
|
||||
|
||||
sender_id = None
|
||||
if from_id is not None:
|
||||
@@ -295,6 +296,11 @@ class _Message(ChatGetter, SenderGetter):
|
||||
self._action_entities = [entities.get(utils.get_peer_id(
|
||||
types.PeerChat(self.action.chat_id)))]
|
||||
|
||||
if self.replies and self.replies.channel_id:
|
||||
self._linked_chat = entities.get(utils.get_peer_id(
|
||||
types.PeerChannel(self.replies.channel_id)))
|
||||
|
||||
|
||||
# endregion Initialization
|
||||
|
||||
# region Public Properties
|
||||
|
Reference in New Issue
Block a user