🚑️ hotfix: Conversation Parse Chat Id Bug

This commit is contained in:
xtaodada 2022-07-26 15:06:00 +08:00
parent c28eddaa4d
commit d0b25d41b7
Signed by: xtaodada
GPG Key ID: 4CBB3F4FA8C85659

View File

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