diff --git a/README.md b/README.md index 394be62..fd66490 100644 --- a/README.md +++ b/README.md @@ -54,7 +54,7 @@ _✨ 支持nonebot2调用 ✨_ 如果你有想法、有能力,欢迎: - [提交 Issue](https://github.com/Charles-Hello/Tg_User_Client/issues) - [提交 Pull request](https://github.com/Charles-Hello/Tg_User_Client/pulls) -- [在交流群内进行反馈](https://t.me/stduynonebot2) +- [在交流群内进行反馈](https://t.me/StudynoneBot2) diff --git a/tgbot_client/action_manager/bot_core.py b/tgbot_client/action_manager/bot_core.py index 2a93fea..4a1d74e 100644 --- a/tgbot_client/action_manager/bot_core.py +++ b/tgbot_client/action_manager/bot_core.py @@ -44,7 +44,7 @@ async def websocket_handler(websocket): class MyBot: def __init__(self, config: Config): self.username = config.tgusername - self.config = Config() + self.config = config if config.tg_proxy: if config.tg_proxy_mode == "socks5": if not config.tg_proxy_user: @@ -187,5 +187,7 @@ async def _run(self): # 创建 MyBot 实例 env = Env() + config = Config(_common_config=env.dict()) +print(config) bot = MyBot(config)