mirror of
https://github.com/TeamPGM/PagerMaid-Pyro.git
synced 2024-11-22 06:33:49 +00:00
🚑️ hotfix: Conversation Parse Chat Id Bug
This commit is contained in:
parent
c28eddaa4d
commit
d0b25d41b7
@ -78,7 +78,7 @@ class Conversation:
|
|||||||
elif isinstance(self._peer_chat, InputPeerChat):
|
elif isinstance(self._peer_chat, InputPeerChat):
|
||||||
self._chat_id = self._peer_chat.chat_id
|
self._chat_id = self._peer_chat.chat_id
|
||||||
elif isinstance(self._peer_chat, InputPeerChannel):
|
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):
|
if self._client.listening.get(self._chat_id, False):
|
||||||
raise AlreadyInConversationError()
|
raise AlreadyInConversationError()
|
||||||
|
Loading…
Reference in New Issue
Block a user