From e89acc8ba635fd4e7fdac41c9e0acdcfef6e0242 Mon Sep 17 00:00:00 2001 From: coder2020official Date: Sun, 12 Sep 2021 00:27:04 +0500 Subject: [PATCH] Update custom_filters.py --- examples/custom_filters.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/custom_filters.py b/examples/custom_filters.py index 0294468..e9e40e8 100644 --- a/examples/custom_filters.py +++ b/examples/custom_filters.py @@ -40,7 +40,7 @@ def bye_user(message): # Do not forget to register filters -bot.add_custom_filter(MainFilter) -bot.add_custom_filter(IsAdmin) +bot.add_custom_filter(MainFilter()) +bot.add_custom_filter(IsAdmin()) bot.polling(skip_pending=True,non_stop=True) # Skip old updates \ No newline at end of file