From 5f9cf881e6d6fdeab135445e882ab7de91e85cd7 Mon Sep 17 00:00:00 2001 From: ivan tkachenko Date: Sun, 7 Feb 2016 23:45:54 +0800 Subject: [PATCH] __retrieve_updates split into process_new_updates --- telebot/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/telebot/__init__.py b/telebot/__init__.py index d315af9..3eaaf85 100644 --- a/telebot/__init__.py +++ b/telebot/__init__.py @@ -118,6 +118,9 @@ class TeleBot: logger.debug('Skipped {0} pending messages'.format(self.__skip_updates())) self.skip_pending = False updates = self.get_updates(offset=(self.last_update_id + 1), timeout=timeout) + self.process_new_updates(updates) + + def process_new_updates(self, updates): new_messages = [] new_inline_querys = [] new_chosen_inline_results = []