Registers a callback function to be notified when a reply to `message` arrives. Warning: In case `callback` as lambda function, saving reply handlers will not work. :param message: The message for which we are awaiting a reply. :type message: :class:`telebot.types.
(self, message: types.Message, callback: Callable, *args, **kwargs)
| 8485 | ) |
| 8486 | |
| 8487 | def register_for_reply(self, message: types.Message, callback: Callable, *args, **kwargs) -> None: |
| 8488 | """ |
| 8489 | Registers a callback function to be notified when a reply to `message` arrives. |
| 8490 | |
| 8491 | Warning: In case `callback` as lambda function, saving reply handlers will not work. |
| 8492 | |
| 8493 | :param message: The message for which we are awaiting a reply. |
| 8494 | :type message: :class:`telebot.types.Message` |
| 8495 | |
| 8496 | :param callback: The callback function to be called when a reply arrives. Must accept one `message` |
| 8497 | parameter, which will contain the replied message. |
| 8498 | :type callback: :obj:`Callable[[telebot.types.Message], None]` |
| 8499 | |
| 8500 | :param args: Optional arguments for the callback function. |
| 8501 | :param kwargs: Optional keyword arguments for the callback function. |
| 8502 | |
| 8503 | :return: None |
| 8504 | """ |
| 8505 | self.register_for_reply_by_message_id(message.message_id, callback, *args, **kwargs) |
| 8506 | |
| 8507 | |
| 8508 | def register_for_reply_by_message_id( |