diff --git a/python/Muell/__init__.py b/python/Muell/__init__.py index bfff09c..eb4030c 100644 --- a/python/Muell/__init__.py +++ b/python/Muell/__init__.py @@ -188,7 +188,7 @@ class Muell: if ausgabe is not None: # Jetzt den Telegram Bot ansprechen try: - os.system(f'echo "{ausgabe}" | {config["telegram"]["pathBot"]} -u {config["telegram"]["tgReceiver"]}') + os.system(f'echo "{ausgabe}" | {self.__config["telegram"]["pathBot"]} -u {self.__config["telegram"]["tgReceiver"]}') except Exception as e: os.system(f'logger "Fehler Muellbot Telegram: {e}"') @@ -198,7 +198,7 @@ class Muell: if ausgabe is not None: # Signal Bot try: - os.system(f'{config["signal"]["path"]} -a {config["signal"]["account"]} send -g {config["signal"]["group_id"]} -m "{ausgabe}"') + os.system(f'{self.__config["signal"]["path"]} -a {self.__config["signal"]["account"]} send -g {self.__config["signal"]["group_id"]} -m "{ausgabe}"') except Exception as e: os.system(f'logger "Fehler Muellbot Signal: {e}"')