From 701f65ac775fc5b940d22844acb86eb4f93e1bed Mon Sep 17 00:00:00 2001 From: Jaakko Johansson Date: Mon, 18 Sep 2023 12:54:24 +0300 Subject: [PATCH] Update vaalilakanabot2022.py korjattu filters pieneksi --- vaalilakanabot2022.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vaalilakanabot2022.py b/vaalilakanabot2022.py index 9e6f127..4e95479 100644 --- a/vaalilakanabot2022.py +++ b/vaalilakanabot2022.py @@ -9,7 +9,7 @@ from telegram import Update, InlineKeyboardButton, InlineKeyboardMarkup from telegram.ext import Updater, MessageHandler, CommandHandler, \ - Filters, ConversationHandler, CallbackContext, CallbackQueryHandler + filters, ConversationHandler, CallbackContext, CallbackQueryHandler TOKEN = os.environ['VAALILAKANABOT_TOKEN'] ADMIN_CHAT_ID = os.environ['ADMIN_CHAT_ID'] @@ -573,7 +573,7 @@ def main(): SELECTING_POSITION: [ CallbackQueryHandler(register_position) ], - TYPING_NAME: [MessageHandler(Filters.text & (~Filters.command), enter_applicant_name)], + TYPING_NAME: [MessageHandler(filters.text & (~filters.command), enter_applicant_name)], }, fallbacks=[CommandHandler('cancel', cancel), CommandHandler('lisaa', add_applicant)], )