fix check for chats in response module
This commit is contained in:
parent
696bf5492b
commit
6da6769c25
1 changed files with 2 additions and 1 deletions
|
@ -101,7 +101,8 @@ class Responder:
|
||||||
event: telethon.events.common.EventBuilder) -> None:
|
event: telethon.events.common.EventBuilder) -> None:
|
||||||
if not self.enabled:
|
if not self.enabled:
|
||||||
return None
|
return None
|
||||||
if event.message.peer_id not in self.chats:
|
chat_id = telethon.utils.get_peer_id(event.message.peer_id)
|
||||||
|
if chat_id not in self.chats:
|
||||||
return None
|
return None
|
||||||
message = event.message.text.lower()
|
message = event.message.text.lower()
|
||||||
tokens = self.tokenize(message)
|
tokens = self.tokenize(message)
|
||||||
|
|
Loading…
Reference in a new issue