aboutsummaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
Diffstat (limited to 'utils')
-rw-r--r--utils/filters.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/filters.py b/utils/filters.py
index 5dc280b..9b8ce5c 100644
--- a/utils/filters.py
+++ b/utils/filters.py
@@ -13,7 +13,7 @@ class message:
13 13
14 @staticmethod 14 @staticmethod
15 def chance(msg: t.Message): 15 def chance(msg: t.Message):
16 return config.chances.get(msg.chat.id, 10) >= randint(1, 100) 16 return config.chances.get(str(msg.chat.id), 10) >= randint(1, 100)
17 17
18 @staticmethod 18 @staticmethod
19 def has_text(msg: t.Message): 19 def has_text(msg: t.Message):