TelegramBot renamed to TelegramReporter

This commit is contained in:
Eriks K 2020-12-09 13:30:18 +02:00
parent 5082855440
commit 084a47b07a
2 changed files with 4 additions and 4 deletions

View File

@ -43,7 +43,7 @@ class BaseCitizen(access_points.CitizenAPI):
reporter: classes.Reporter = None
stop_threads: Event = None
concurrency_available: Event = None
telegram: classes.TelegramBot = None
telegram: classes.TelegramReporter = None
r: Response = None
name: str = "Not logged in!"
@ -61,7 +61,7 @@ class BaseCitizen(access_points.CitizenAPI):
self.stop_threads = Event()
self.concurrency_available = Event()
self.concurrency_available.set()
self.telegram = classes.TelegramBot(stop_event=self.stop_threads)
self.telegram = classes.TelegramReporter(stop_event=self.stop_threads)
self.config.email = email
self.config.password = password

View File

@ -10,7 +10,7 @@ from requests import Response, Session, post
from . import utils, constants
__all__ = ['Battle', 'BattleDivision', 'BattleSide', 'Company', 'Config', 'Details', 'Energy', 'ErepublikException',
'Holding', 'MyCompanies', 'MyJSONEncoder', 'OfferItem', 'Politics', 'Reporter', 'TelegramBot']
'Holding', 'MyCompanies', 'MyJSONEncoder', 'OfferItem', 'Politics', 'Reporter', 'TelegramReporter']
class ErepublikException(Exception):
@ -937,7 +937,7 @@ class EnergyToFight:
return self.energy
class TelegramBot:
class TelegramReporter:
__initialized: bool = False
__queue: List[str]
chat_id: int = 0