mirror of
https://github.com/father-bot/chatgpt_telegram_bot.git
synced 2026-06-13 03:54:57 +03:00
12 lines
327 B
Python
12 lines
327 B
Python
import yaml
|
|
|
|
|
|
with open("config.yml", 'r') as f:
|
|
config = yaml.safe_load(f)
|
|
|
|
telegram_token = config["telegram_token"]
|
|
openai_api_key = config["openai_api_key"]
|
|
allowed_telegram_usernames = config["allowed_telegram_usernames"]
|
|
persistence_path = config["persistence_path"]
|
|
new_dialog_timeout = config["new_dialog_timeout"]
|