From e353572c03a9233f20513979aaa2f4563d2f747c Mon Sep 17 00:00:00 2001 From: _run Date: Thu, 7 Jul 2022 15:09:02 +0500 Subject: [PATCH] Update webhooks listeners. --- telebot/__init__.py | 2 +- telebot/extensions/__init__.py | 7 +++++++ telebot/{bababa => extensions}/webhooks.py | 0 3 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 telebot/extensions/__init__.py rename telebot/{bababa => extensions}/webhooks.py (100%) diff --git a/telebot/__init__.py b/telebot/__init__.py index 6c793af..6c63667 100644 --- a/telebot/__init__.py +++ b/telebot/__init__.py @@ -24,7 +24,7 @@ import string # webhooks module -from telebot.extensions.webhooks import SyncWebhookListener +from telebot.extensions import SyncWebhookListener logger = logging.getLogger('TeleBot') diff --git a/telebot/extensions/__init__.py b/telebot/extensions/__init__.py new file mode 100644 index 0000000..8fc3bc3 --- /dev/null +++ b/telebot/extensions/__init__.py @@ -0,0 +1,7 @@ +from .webhooks import SyncWebhookListener + + + +__all__ = [ + 'SyncWebhookListener' +] \ No newline at end of file diff --git a/telebot/bababa/webhooks.py b/telebot/extensions/webhooks.py similarity index 100% rename from telebot/bababa/webhooks.py rename to telebot/extensions/webhooks.py