MCPcopy Create free account
hub / github.com/eternnoir/pyTelegramBotAPI / _notify_reply_handlers

Method _notify_reply_handlers

telebot/__init__.py:8530–8542  ·  view source on GitHub ↗

Notify handlers of the answers :param new_messages: :return:

(self, new_messages)

Source from the content-addressed store, hash-verified

8528
8529
8530 def _notify_reply_handlers(self, new_messages) -> None:
8531 """
8532 Notify handlers of the answers
8533
8534 :param new_messages:
8535 :return:
8536 """
8537 for message in new_messages:
8538 if hasattr(message, "reply_to_message") and message.reply_to_message is not None:
8539 handlers = self.reply_backend.get_handlers(message.reply_to_message.message_id)
8540 if handlers:
8541 for handler in handlers:
8542 self._exec_task(handler["callback"], message, *handler["args"], **handler["kwargs"])
8543
8544
8545 def register_next_step_handler(self, message: types.Message, callback: Callable, *args, **kwargs) -> None:

Callers 1

process_new_messagesMethod · 0.95

Calls 2

_exec_taskMethod · 0.95
get_handlersMethod · 0.45

Tested by

no test coverage detected