✏️ add switcher for lark

This commit is contained in:
mri-moe
2021-08-14 13:04:15 +08:00
parent c4e3309026
commit 18c6bea451
3 changed files with 9 additions and 0 deletions

View File

@ -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