mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-07-31 18:19:59 +00:00
✏️ add switcher for lark
This commit is contained in:
@ -136,6 +136,9 @@ class Bot(BaseBot):
|
||||
|
||||
@property
|
||||
def api_root(self) -> str:
|
||||
if self.feishu_config.region == "Lark" :
|
||||
return "https://open.larksuite.com/open-apis/"
|
||||
else:
|
||||
return "https://open.feishu.cn/open-apis/"
|
||||
|
||||
@classmethod
|
||||
|
Reference in New Issue
Block a user