dup
This commit is contained in:
parent
b1ce3dc543
commit
beadaf8ff7
@ -135,6 +135,7 @@ async def wechat_corp_callback(
|
||||
# 处理进群事件
|
||||
|
||||
if update_detail == 'add_member':
|
||||
print(f"发送欢迎消息")
|
||||
# 发送欢迎消息
|
||||
await wecom_client.send_welcome_message(chat_id)
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user