-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reconstruction PuppeteerMessage Class #724
Comments
@JasLin I fully agree with you. The current |
关于文件大小的整理:
btw,需要在在这次的更新中加入 |
官方的实现中,使用512Kb作为chunkSize. @lijiarui 抱歉,我重新阅读了官方的代码,之前对代码的解读有误。官方web代码并没有对文件有25Mb大小的限制,没有大文件标识这个参数。 但是服务器端对 25Mb 以上的文件进行了限制,不能直接拿来转发。 |
Hi all, the v0.15 had totally de-coupled the Message from the Puppet implementation details. Please have a look on puppet if you are interested: |
不支持AMR文件吗? |
Closed this issue because Please learn more about the new design by reading the latest source code of Puppet and Message classes. |
@zhoumh1988 Please file a new issue if you have any question about sending AMR file. |
@zixia OK,got it.I will try it later. |
MediaMessage
是面向富媒体信息的,包含 图片、语音、视频、文档四大类文件,url类文件也可以算上,但暂时未能实现url类型信息的发出。new MediaMessage()
来实现实例的初始化,3种调用方式:MsgType.APP
类型信息的必要数据MediaMessage
实例结构体以上初始化过程中默认会初始化 MsgType 参数,用于后续对结构类型的判断
在
MediaMessage
class中,根据不同类型文件/AppMsgType来单独声明一个方法,来追加/更新参数到数据结构中,这样可以更自由一点另外就是在 ready 方法中,进行必要的数据提取与补充,比如 @ 列表等,
在
puppet-web
中,对传入的参数对象进行检查,补充必要的参数bridge
主要做数据中转,不放复杂判断wechaty-bro
作为和官方代码互交的部分,不直接修改数据。MediaMessage 和 Message 中,方法分为几类:
初始化与基础数据填充、参数设置、获取参数
数据分为两类:rawObj和obj,所有的初始化与数据填充,都针对rawObj,obj的数据是否可以用getter来实现?
The text was updated successfully, but these errors were encountered: