From c33c541cbedbcc124e6949a7604d35e7f1f96549 Mon Sep 17 00:00:00 2001 From: Palaptin <100526200+Palaptin@users.noreply.github.com> Date: Mon, 1 Jan 2024 15:58:50 +0100 Subject: [PATCH] Fix Type Hint for `filters` Parameter of `MessageHandler` (#4039) --- telegram/ext/_messagehandler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telegram/ext/_messagehandler.py b/telegram/ext/_messagehandler.py index 704647436..0e90635c3 100644 --- a/telegram/ext/_messagehandler.py +++ b/telegram/ext/_messagehandler.py @@ -76,7 +76,7 @@ class MessageHandler(BaseHandler[Update, CCT]): def __init__( self, - filters: filters_module.BaseFilter, + filters: Optional[filters_module.BaseFilter], callback: HandlerCallback[Update, CCT, RT], block: DVType[bool] = DEFAULT_TRUE, ):