update path
Signed-off-by: Omar Sánchez Pizarro <omar.sanchez@pistacero.net>
This commit is contained in:
@@ -3,6 +3,7 @@ import yaml
|
||||
import telegram
|
||||
import html
|
||||
import telegram.ext
|
||||
import os
|
||||
|
||||
ITEM_HTML = """
|
||||
<b>Resultados para:</b> {search_name}
|
||||
@@ -37,7 +38,8 @@ class TelegramManager:
|
||||
asyncio.set_event_loop(self._loop)
|
||||
|
||||
def get_config(self):
|
||||
config_file = 'config.yaml'
|
||||
base_dir = os.path.dirname(os.path.abspath(__file__))
|
||||
config_file = os.path.join(base_dir, 'config.yaml')
|
||||
with open(config_file, 'r') as file:
|
||||
config = yaml.safe_load(file)
|
||||
token = config['telegram_token']
|
||||
|
||||
Reference in New Issue
Block a user