X Tutup
Skip to content

Commit d1516f6

Browse files
committed
deprecation warning for telegram.Updater
1 parent 739e218 commit d1516f6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

telegram/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@
5353

5454
def Updater(*args, **kwargs):
5555
"""Load the updater module on invocation and return an Updater instance."""
56+
import warnings
57+
warnings.warn("telegram.Updater is being deprecated, please use "
58+
"telegram.ext.Updater from now on.")
5659
from .ext.updater import Updater as Up
5760
return Up(*args, **kwargs)
5861

0 commit comments

Comments
 (0)
X Tutup