1
0
mirror of https://github.com/eternnoir/pyTelegramBotAPI.git synced 2023-08-10 21:12:57 +03:00

Add process_new_message public method for webhook.

issue #36
This commit is contained in:
eternnoir 2015-07-14 13:28:39 +08:00
parent c1bb900d91
commit 6c8d30b063

View File

@ -112,8 +112,11 @@ class TeleBot:
new_messages.append(msg)
if len(new_messages) > 0:
self.__notify_update(new_messages)
self._notify_command_handlers(new_messages)
self.process_new_messages(new_messages)
def process_new_messages(self, new_messages):
self.__notify_update(new_messages)
self._notify_command_handlers(new_messages)
def __notify_update(self, new_messages):
for listener in self.update_listener: