mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-11-25 08:37:07 +01:00
load Updater class only when used
This commit is contained in:
parent
196d1fcc3d
commit
8b196ce71f
1 changed files with 6 additions and 1 deletions
|
@ -52,7 +52,12 @@ from .bot import Bot
|
|||
from .dispatcher import Dispatcher
|
||||
from .jobqueue import JobQueue
|
||||
from .updatequeue import UpdateQueue
|
||||
from .updater import Updater
|
||||
|
||||
|
||||
def Updater(*args, **kwargs):
|
||||
"""Load the updater module on invocation and return an Updater instance."""
|
||||
from .updater import Updater as Up
|
||||
return Up(*args, **kwargs)
|
||||
|
||||
|
||||
__author__ = 'devs@python-telegram-bot.org'
|
||||
|
|
Loading…
Reference in a new issue