mirror of
https://github.com/eternnoir/pyTelegramBotAPI.git
synced 2023-08-10 21:12:57 +03:00
parent
c1bb900d91
commit
6c8d30b063
@ -112,8 +112,11 @@ class TeleBot:
|
|||||||
new_messages.append(msg)
|
new_messages.append(msg)
|
||||||
|
|
||||||
if len(new_messages) > 0:
|
if len(new_messages) > 0:
|
||||||
self.__notify_update(new_messages)
|
self.process_new_messages(new_messages)
|
||||||
self._notify_command_handlers(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):
|
def __notify_update(self, new_messages):
|
||||||
for listener in self.update_listener:
|
for listener in self.update_listener:
|
||||||
|
Loading…
Reference in New Issue
Block a user