|
52 | 52 |
|
53 | 53 |
|
54 | 54 | def Updater(*args, **kwargs): |
55 | | - """Load the updater module on invocation and return an Updater instance.""" |
| 55 | + """ |
| 56 | + Load the updater module on invocation and return an Updater instance. |
| 57 | + """ |
56 | 58 | import warnings |
57 | 59 | warnings.warn("telegram.Updater is being deprecated, please use " |
58 | 60 | "telegram.ext.Updater from now on.") |
59 | 61 | from .ext.updater import Updater as Up |
60 | 62 | return Up(*args, **kwargs) |
61 | 63 |
|
62 | 64 |
|
| 65 | +def Dispatcher(*args, **kwargs): |
| 66 | + """ |
| 67 | + Load the dispatcher module on invocation and return an Dispatcher instance. |
| 68 | + """ |
| 69 | + import warnings |
| 70 | + warnings.warn("telegram.Dispatcher is being deprecated, please use " |
| 71 | + "telegram.ext.Dispatcher from now on.") |
| 72 | + from .ext.dispatcher import Dispatcher as Dis |
| 73 | + return Dis(*args, **kwargs) |
| 74 | + |
| 75 | + |
| 76 | +def JobQueue(*args, **kwargs): |
| 77 | + """ |
| 78 | + Load the jobqueue module on invocation and return a JobQueue instance. |
| 79 | + """ |
| 80 | + import warnings |
| 81 | + warnings.warn("telegram.JobQueue is being deprecated, please use " |
| 82 | + "telegram.ext.JobQueue from now on.") |
| 83 | + from .ext.jobqueue import JobQueue as JobQ |
| 84 | + return JobQ(*args, **kwargs) |
| 85 | + |
| 86 | + |
63 | 87 | __author__ = 'devs@python-telegram-bot.org' |
64 | | -__version__ = '3.3' |
| 88 | +__version__ = '3.4' |
65 | 89 | __all__ = ('Audio', 'Bot', 'Chat', 'Emoji', 'TelegramError', 'InputFile', |
66 | 90 | 'Contact', 'ForceReply', 'ReplyKeyboardHide', 'ReplyKeyboardMarkup', |
67 | 91 | 'UserProfilePhotos', 'ChatAction', 'Location', 'Video', 'Document', |
|
0 commit comments