Skip to content

公众号自定义菜单

创建菜单
var res = await wechat.SendAsync<MenuCreateResponse>(new MenuCreateRequest(token,new SelfMenuCreate()));

查询菜单
await wechat.SendAsync(new MenuSelfQueryRequest(token));

删除所有菜单
await wechat.SendAsync<MenuRemoveResponse>(new MenuRemoveRequest(token));

匹域个性化菜单
await wechat.SendAsync<MenuConditionalMatchResponse>(new MenuConditionalMatchRequest(token, openId));

个性化菜单创建
await wechat.SendAsync<MenuConditionalCreateResponse>(new MenuConditionalCreateRequest(token,new ConditionalMenuCreate()));

个性化菜单查询
await wechat.SendAsync(new MenuQueryRequest(token));

删除某个个性化菜单
await wechat.SendAsync<MenuConditionalRemoveResponse>(new MenuConditionalRemoveRequest(token, menuId));

微信公众号自定义菜单官方文档