register_next_step_handler(message, my_func, password)
сурс:
def register_next_step_handler(
            self, message: types.Message, callback: Callable, *args, **kwargs) -> None:
        """
        Registers a callback function to be notified when new message arrives after `message`.
        Warning: In case `callback` as lambda function, saving next step handlers will not work.
        :param message:     The message for which we want to handle new message in the same chat.
        :param callback:    The callback function which next new message arrives.
        :param args:        Args to pass in callback func
        :param kwargs:      Args to pass in callback func
        """
https://github.com/eternnoir/pyTelegramBotAPI/blob...