Comments (1)
🤖
Hello @jacsice! 👋
Just a quick intro: I'm Dosu, a friendly bot here to offer some assistance while you're waiting for a human maintainer. I'm equipped to help with bug-solving, answer your questions, and guide you if you're interested in contributing to the wechaty repository.
Feel free to ask anything, I'm here to make your experience smoother! Let's tackle this together. 😊
是的,企业微信确实支持向用户发送语音消息。这可以从提供的代码片段中推断出来。在type()
函数中,有一个PUPPET.types.Message.Audio
的情况,这表明支持音频消息(语音消息)。
以下是相关代码:
/**
* Get the type from the message.
* > Tips: PUPPET.types.Message is Enum here. </br>
* - PUPPET.types.Message.Unknown </br>
* - PUPPET.types.Message.Attachment </br>
* - PUPPET.types.Message.Audio </br>
* - PUPPET.types.Message.Contact </br>
* - PUPPET.types.Message.Emoticon </br>
* - PUPPET.types.Message.Image </br>
* - PUPPET.types.Message.Text </br>
* - PUPPET.types.Message.Video </br>
* - PUPPET.types.Message.Url </br>
* @returns {PUPPET.types.Message}
*
* @example
* const bot = new Wechaty()
* if (message.type() === bot.Message.Type.Text) {
* console.log('This is a text message')
* }
*/
type (): PUPPET.types.Message {
if (!this.payload) {
throw new Error('no payload')
}
return this.payload.type || PUPPET.types.Message.Unknown
}
然而,发送语音消息的具体方法在给定的上下文中并未提供。关于在Wechaty代码库中使用企业微信发送语音消息的具体方法或函数,以及发送语音消息所需的参数,我在仓库中没有找到答案,但答案可能在其他地方,或者我可能错过了。如果您能提供更多信息,我可能能更好地帮助您。
Sources
This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.
Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.
If you want to continue the conversation, start your reply with @dosu-bot.
from wechaty.
Related Issues (20)
- ERR:filterValue not found for filterKey: id HOT 4
- Exception while handling wechat request HOT 5
- 直接引入Friendship失败
- ERR PuppetWeChat sendMedia() exception: PuppetWeChat.uploadMedia(): upload fail HOT 3
- WechatyEventListenerMessage cannot receive miniProgram message HOT 6
- room-join,事件触发太慢 HOT 1
- linux部署node18.x的图文教程
- scan回调事件如何设设置时间间隔 HOT 1
- wechaty怎么登录不进去了,之前还能用,现在二维码不显示,运行就报错 HOT 3
- 关于exec task timeout HOT 2
- docker部署的好友列表加载不出来, 在本地是没有任何问题的 使用了ready事件依然不行 HOT 4
- 请尽快更新过时文档 HOT 8
- padlocal发图片报错,不知道什么原因 HOT 3
- 采购稳定的xp,ipad协议服务
- 'can"t fetch endpoint from chatie server. You can try it later, or make sure that your pc can connect to heroku server HOT 5
- 想知道群聊中的id和memberIdList, 这些ID到底是什么,是谁生成的? HOT 2
- 请问发送群消息@人的位置可以变吗 HOT 3
- 请问发送群消息中memberAll可以一次性查出多个指定昵称的用户吗 HOT 2
- 请问发送群消息@多个人,并且@的人和数量都是不固定的,这样怎么实现 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wechaty.