0 0 0

软件完善

糖豆
1天前 25

针对于一些打粉人群的痛点,就是私信回复不及时导致客户的流失,所以需要在蝴蝶号写入一个私信自动回复,或者是那种dma小程序,自己摸索了一个代码,觉得不够完善

import requests

 

def reply_message(user_id, content):

    url = "https://qyapi.weixin.qq.com/cgi-bin/message/send"

    params = {

        "access_token": "YOUR_ACCESS_TOKEN"

    }

    data = {

        "touser": user_id,

        "msgtype": "text",

        "agentid": YOUR_AGENT_ID,

        "text": {

            "content": f"收到您的留言:{content}\n我们将尽快回复!"

        }

    }

    response = requests.post(url, params=params, json=data)

    return response.json()

```

 

最新回复 (0)

    暂无评论

请先登录后发表评论!

返回
请先登录后发表评论!