@@ -699,7 +699,7 @@ async def linked_channel_filter(_, __, m: Message):
699699# endregion
700700
701701
702- def command (commands : str or List [str ], prefixes : str or List [str ] = "/" , case_sensitive : bool = False ):
702+ def command (commands : Union [ str , List [str ]] , prefixes : Union [ str , List [str ] ] = "/" , case_sensitive : bool = False ):
703703 """Filter commands, i.e.: text messages starting with "/" or any other custom prefix.
704704
705705 Parameters:
@@ -824,7 +824,7 @@ class user(Filter, set):
824824 Defaults to None (no users).
825825 """
826826
827- def __init__ (self , users : int or str or list = None ):
827+ def __init__ (self , users : Union [ int , str , List [ Union [ int , str ]]] = None ):
828828 users = [] if users is None else users if isinstance (users , list ) else [users ]
829829
830830 super ().__init__ (
@@ -856,7 +856,7 @@ class chat(Filter, set):
856856 Defaults to None (no chats).
857857 """
858858
859- def __init__ (self , chats : int or str or list = None ):
859+ def __init__ (self , chats : Union [ int , str , List [ Union [ int , str ]]] = None ):
860860 chats = [] if chats is None else chats if isinstance (chats , list ) else [chats ]
861861
862862 super ().__init__ (
0 commit comments