This commit is contained in:
aaron 2025-03-04 15:33:25 +08:00
parent b1ce3dc543
commit beadaf8ff7
2 changed files with 2 additions and 1 deletions

View File

@ -135,6 +135,7 @@ async def wechat_corp_callback(
# 处理进群事件
if update_detail == 'add_member':
print(f"发送欢迎消息")
# 发送欢迎消息
await wecom_client.send_welcome_message(chat_id)

View File

@ -112,7 +112,7 @@ class WecomClient:
logging.error(f"unionid_to_external_userid异常: {str(e)}")
return None
async def send_welcome_message(self, user_info: Dict[str, Any], group_id: str) -> bool:
async def send_welcome_message(self, group_id: str) -> bool:
"""发送欢迎消息"""
try:
# 1. 获取 access_token