How do I link to wechat from a webpage?

后端 未结 4 1059
有刺的猬
有刺的猬 2020-12-08 17:31

Whatsapp allows you to link to a new message via



        
4条回答
  •  伪装坚强ぢ
    2020-12-08 17:33

    WeChat does have a URI scheme that can be used from a browser. The scheme prefix is weixin://.

    There are a few URIs that can be used with this:

    weixin://dl/stickers
    weixin://dl/settings
    weixin://dl/posts
    weixin://dl/moments
    

    However, in answer to your question specifically, there is one where you can chat to a contact specifically:

    weixin://dl/chat?{toID}

    You will need to replace {toID} with whatever the destination user's WeChat ID is.

    For reference's sake, these are the URLs that I've found this information from previously:

    • https://www.quora.com/Does-WeChat-support-posting-text-to-chat-via-a-url-scheme-for-mobile
    • https://www.zhihu.com/question/30616809?sort=created (will require translation, unless you are fluent in Chinese)

提交回复
热议问题