Add comment_to parameter to more easily post comments

This commit is contained in:
Lonami Exo
2021-01-28 21:05:00 +01:00
parent 6f7640af18
commit ea57db7aad
3 changed files with 47 additions and 4 deletions

View File

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