Code Monkey home page Code Monkey logo

Comments (6)

xcosmosbox avatar xcosmosbox commented on May 18, 2024

请问自定义收发个人名片这块好实现么

好实现,本项目所依赖的wechaty包中存在 Message.Contact 类,可以轻松实现收发个人名片。不论是人与人之间的还是聊天小组的。如果是个人可以设置为只要有新好友或者触发某种关键词就转发个人名片。

from wechaty-paimonbot.

JingRen790838213 avatar JingRen790838213 commented on May 18, 2024

请问自定义收发个人名片这块好实现么

好实现,本项目所依赖的wechaty包中存在 Message.Contact 类,可以轻松实现收发个人名片。不论是人与人之间的还是聊天小组的。如果是个人可以设置为只要有新好友或者触发某种关键词就转发个人名片。

能说具体点么,
我看源码里面有这么一句
msgId = await puppet.messageSendContact(conversationId, sayable.id),
是要diy一个provider才可以么,但diy provider文档内容好少,不知道如何下手

from wechaty-paimonbot.

xcosmosbox avatar xcosmosbox commented on May 18, 2024

请问自定义收发个人名片这块好实现么

好实现,本项目所依赖的wechaty包中存在 Message.Contact 类,可以轻松实现收发个人名片。不论是人与人之间的还是聊天小组的。如果是个人可以设置为只要有新好友或者触发某种关键词就转发个人名片。

能说具体点么, 我看源码里面有这么一句 msgId = await puppet.messageSendContact(conversationId, sayable.id), 是要diy一个provider才可以么,但diy provider文档内容好少,不知道如何下手

不需要diy,只需要通过获取(或者提前配置好)你想要发送的个人名片(不论是自己的还是别人的)。
通过 bot.Contact.find({name: '联系人名字'}) 就能找到个人名片。然后使用 say 函数发送就行。
这是我找到的官方文档给的例子:
image
更多内容你可以看看这个文档:https://wechaty.gitbook.io/wechaty/api/message#Message

from wechaty-paimonbot.

JingRen790838213 avatar JingRen790838213 commented on May 18, 2024

请问自定义收发个人名片这块好实现么

好实现,本项目所依赖的wechaty包中存在 Message.Contact 类,可以轻松实现收发个人名片。不论是人与人之间的还是聊天小组的。如果是个人可以设置为只要有新好友或者触发某种关键词就转发个人名片。

能说具体点么, 我看源码里面有这么一句 msgId = await puppet.messageSendContact(conversationId, sayable.id), 是要diy一个provider才可以么,但diy provider文档内容好少,不知道如何下手

不需要diy,只需要通过获取(或者提前配置好)你想要发送的个人名片(不论是自己的还是别人的)。 通过 bot.Contact.find({name: '联系人名字'}) 就能找到个人名片。然后使用 say 函数发送就行。 这是我找到的官方文档给的例子: image 更多内容你可以看看这个文档:https://wechaty.gitbook.io/wechaty/api/message#Message

这个功能早不支持了,都收费了

from wechaty-paimonbot.

xcosmosbox avatar xcosmosbox commented on May 18, 2024

请问自定义收发个人名片这块好实现么

好实现,本项目所依赖的wechaty包中存在 Message.Contact 类,可以轻松实现收发个人名片。不论是人与人之间的还是聊天小组的。如果是个人可以设置为只要有新好友或者触发某种关键词就转发个人名片。

能说具体点么, 我看源码里面有这么一句 msgId = await puppet.messageSendContact(conversationId, sayable.id), 是要diy一个provider才可以么,但diy provider文档内容好少,不知道如何下手

不需要diy,只需要通过获取(或者提前配置好)你想要发送的个人名片(不论是自己的还是别人的)。 通过 bot.Contact.find({name: '联系人名字'}) 就能找到个人名片。然后使用 say 函数发送就行。 这是我找到的官方文档给的例子: image 更多内容你可以看看这个文档:https://wechaty.gitbook.io/wechaty/api/message#Message

这个功能早不支持了,都收费了

我看了下我自己写的代码,message.talker()可以获得Contact对象,你可以找找talker这个function现在有没有变成别的。

from wechaty-paimonbot.

JingRen790838213 avatar JingRen790838213 commented on May 18, 2024

contactCard可以拿到,貌似是msg.say()这块已经不能传卡片了,用他们的provider,那些token还是挺贵的

from wechaty-paimonbot.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.