From d0b25d41b7fe8ed91004148e8aedf8ca11244f80 Mon Sep 17 00:00:00 2001 From: xtaodada Date: Tue, 26 Jul 2022 15:06:00 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=91=EF=B8=8F=20hotfix:=20Conversation?= =?UTF-8?q?=20Parse=20Chat=20Id=20Bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pyromod/utils/conversation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyromod/utils/conversation.py b/pyromod/utils/conversation.py index bcaf795..f2f3101 100644 --- a/pyromod/utils/conversation.py +++ b/pyromod/utils/conversation.py @@ -78,7 +78,7 @@ class Conversation: elif isinstance(self._peer_chat, InputPeerChat): self._chat_id = self._peer_chat.chat_id elif isinstance(self._peer_chat, InputPeerChannel): - self._chat_id = self._peer_chat.channel_id + self._chat_id = -1000000000000 - self._peer_chat.channel_id if self._client.listening.get(self._chat_id, False): raise AlreadyInConversationError()