File tree Expand file tree Collapse file tree 2 files changed +0
-42
lines changed
Expand file tree Collapse file tree 2 files changed +0
-42
lines changed Original file line number Diff line number Diff line change 8080from .bot import Bot
8181
8282
83- def Updater (* args , ** kwargs ):
84- """
85- Load the updater module on invocation and return an Updater instance.
86- """
87- import warnings
88- warnings .warn ("telegram.Updater is being deprecated, please use "
89- "telegram.ext.Updater from now on." )
90- from .ext .updater import Updater as Up
91- return Up (* args , ** kwargs )
92-
93-
94- def Dispatcher (* args , ** kwargs ):
95- """
96- Load the dispatcher module on invocation and return an Dispatcher instance.
97- """
98- import warnings
99- warnings .warn ("telegram.Dispatcher is being deprecated, please use "
100- "telegram.ext.Dispatcher from now on." )
101- from .ext .dispatcher import Dispatcher as Dis
102- return Dis (* args , ** kwargs )
103-
104-
105- def JobQueue (* args , ** kwargs ):
106- """
107- Load the jobqueue module on invocation and return a JobQueue instance.
108- """
109- import warnings
110- warnings .warn ("telegram.JobQueue is being deprecated, please use "
111- "telegram.ext.JobQueue from now on." )
112- from .ext .jobqueue import JobQueue as JobQ
113- return JobQ (* args , ** kwargs )
114-
115-
11683__author__ = 'devs@python-telegram-bot.org'
11784__version__ = '3.4'
11885__all__ = ['Audio' ,
Original file line number Diff line number Diff line change @@ -71,15 +71,6 @@ def job1(self, bot):
7171 def job2 (self , bot ):
7272 raise Exception ("Test Error" )
7373
74- def test_legacy_import (self ):
75- from telegram import JobQueue as legacyJobQueue
76-
77- ljq = legacyJobQueue ("Bot" , tick_interval = 0.005 )
78-
79- self .assertIsInstance (ljq , JobQueue )
80-
81- ljq .stop ()
82-
8374 def test_basic (self ):
8475 self .jq .put (self .job1 , 0.1 )
8576 sleep (1.5 )
You can’t perform that action at this time.
0 commit comments