mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-12-01 12:41:48 +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 .dispatcher import Dispatcher
|
||||||
from .jobqueue import JobQueue
|
from .jobqueue import JobQueue
|
||||||
from .updatequeue import UpdateQueue
|
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'
|
__author__ = 'devs@python-telegram-bot.org'
|
||||||
|
|
Loading…
Reference in a new issue