From 12547efa08ff2d81ed282da91d83cee1b7320abf Mon Sep 17 00:00:00 2001 From: Alexander Tkachev Date: Mon, 9 Mar 2020 17:25:37 +0700 Subject: [PATCH] Fix order for consistency in process_new_updates --- telebot/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/telebot/__init__.py b/telebot/__init__.py index f2f7591..16bfc4a 100644 --- a/telebot/__init__.py +++ b/telebot/__init__.py @@ -327,10 +327,10 @@ class TeleBot: self.process_new_chosen_inline_query(new_chosen_inline_results) if len(new_callback_querys) > 0: self.process_new_callback_query(new_callback_querys) - if len(new_pre_checkout_querys) > 0: - self.process_new_pre_checkout_query(new_pre_checkout_querys) if len(new_shipping_querys) > 0: self.process_new_shipping_query(new_shipping_querys) + if len(new_pre_checkout_querys) > 0: + self.process_new_pre_checkout_query(new_pre_checkout_querys) def process_new_messages(self, new_messages): self._notify_next_handlers(new_messages)