Updated type hint of the handler in the register_state function
This commit is contained in:
parent
e29eefe40b
commit
ae88fccf13
@ -18,7 +18,7 @@ states: dict[tuple[int, int], Handler] = {}
|
||||
|
||||
def register_state(
|
||||
message: Message,
|
||||
handler: Callable[[Message], Any],
|
||||
handler: Handler,
|
||||
) -> None:
|
||||
states[(message.chat.id, message.from_user.id)] = handler
|
||||
|
||||
|
Reference in New Issue
Block a user