mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2025-03-16 12:25:45 +01:00
deprecation warning for telegram.Updater
This commit is contained in:
parent
739e218eb7
commit
d1516f66ac
1 changed files with 3 additions and 0 deletions
|
@ -53,6 +53,9 @@ from .bot import Bot
|
|||
|
||||
def Updater(*args, **kwargs):
|
||||
"""Load the updater module on invocation and return an Updater instance."""
|
||||
import warnings
|
||||
warnings.warn("telegram.Updater is being deprecated, please use "
|
||||
"telegram.ext.Updater from now on.")
|
||||
from .ext.updater import Updater as Up
|
||||
return Up(*args, **kwargs)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue