示例#1
0
 def __init__(self, bot=None, config=None):
     TelegramHandler.__init__(self, bot, config)
     self.announceListFile = "announce.dat"
     self.announceList = {}
     self._loadAnnounce()
     try:
         self.sources = self.config['admins'] + self.config['sources']
     except KeyError:
         self.sources = ()
示例#2
0
 def __init__(self, bot=None, config=None):
     TelegramHandler.__init__(self, bot, config)
     
     try:
         self.sources = config['sources']
     except KeyError:
         self.sources = ()
     self.filelistfile = "files.txt"
     self.filelist = {}
     self._loadFileList()