Reformat
This commit is contained in:
@@ -13,11 +13,11 @@ class ChatType(IntEnum):
|
|||||||
@staticmethod
|
@staticmethod
|
||||||
def is_in_chat_types(chat_type: int) -> bool:
|
def is_in_chat_types(chat_type: int) -> bool:
|
||||||
if chat_type in [ChatType.TIGER_BOT.value, ChatType.CHATGPT.value,
|
if chat_type in [ChatType.TIGER_BOT.value, ChatType.CHATGPT.value,
|
||||||
ChatType.XINGHUO_WEB.value, ChatType.CHATGLM.value,ChatType.BardAssistant.value]:
|
ChatType.XINGHUO_WEB.value, ChatType.CHATGLM.value,
|
||||||
|
ChatType.BardAssistant.value]:
|
||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def help_hint() -> str:
|
def help_hint() -> str:
|
||||||
return str({member.value: member.name for member in ChatType}).replace('{', '').replace('}', '')
|
return str({member.value: member.name for member in ChatType}).replace('{', '').replace('}', '')
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user