点击或拖拽改变大小
盛派网络

GroupMessageApiSendGroupMessagePreviewAsync 方法

Senparc.Weixin SDK 官方教程《微信开发深度解析》已出版,支持中国开源事业,请【购买正版】
《微信公众号+小程序》视频课程已经上线,【点击这里】学习!

NeuChar(纽插)已经上线,为开发者提供一站式跨平台管理枢纽,并可将应用入驻到 NeuChar 应用商店!新功能正在不断增加中,快来使用吧! https://www.neuchar.com
在线动态微信接口 Swagger WebApi 文档: https://weixin.senparc.com:8039

【异步方法】预览接口【订阅号与服务号认证后均可用】 注意:openId与wxName两者任选其一,同时传入以wxName优先

命名空间:  Senparc.Weixin.MP.AdvancedAPIs
程序集:  Senparc.Weixin.MP (在 Senparc.Weixin.MP.dll 中) 版本:16.12.400+09cf0202d5d3e8b12fec87564321e2fafb5f0214
语法
[ApiBindAttribute(PlatformType.WeChat_OfficialAccount, "GroupMessageApi.SendGroupMessagePreviewAsync", 
	true)]
public static Task<SendResult> SendGroupMessagePreviewAsync(
	string accessTokenOrAppId,
	GroupMessageType type,
	string value,
	string openId,
	string wxName = null,
	int timeOut = 10000
)

参数

accessTokenOrAppId
类型:SystemString
AccessToken或AppId(推荐使用AppId,需要先注册)
type
类型:Senparc.Weixin.MPGroupMessageType
value
类型:SystemString
群发媒体消息时为media_id,群发文本信息为content
openId
类型:SystemString
接收消息用户对应该公众号的openid
wxName (Optional)
类型:SystemString
接收消息用户的微信号
timeOut (Optional)
类型:SystemInt32
代理请求超时时间(毫秒)

返回值

类型:TaskSendResult
参见