From 67271b9ad87501b9d0558d2f6dd8a36e536682e9 Mon Sep 17 00:00:00 2001 From: dymik739 Date: Sun, 23 Oct 2022 17:27:47 +0300 Subject: [PATCH] echo-v1.0 - added check for chat type to avoid group chat spamming --- modules/echo-v1.0/index.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/echo-v1.0/index.py b/modules/echo-v1.0/index.py index ca789de..9d384d9 100644 --- a/modules/echo-v1.0/index.py +++ b/modules/echo-v1.0/index.py @@ -1 +1,2 @@ -self.RESPONCE = self.MESSAGE["text"] +if msg.chat["type"] == "private": + self.RESPONCE = self.MESSAGE["text"]