Skip to content

微信客服发送菜单消息菜单项支持纯文本内容:type=text #2874

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

Merged
merged 1 commit into from
Nov 8, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package me.chanjar.weixin.cp.bean.kf.msg;

import com.google.gson.annotations.SerializedName;

import lombok.Data;
import lombok.Getter;
import lombok.NoArgsConstructor;
Expand Down Expand Up @@ -64,6 +65,10 @@ public static class WxCpKfMenuItem {
*/
@SerializedName("miniprogram")
private MiniProgram miniProgram;
/**
* type为text的菜单项
*/
private MenuText text;
}

/**
Expand Down Expand Up @@ -139,4 +144,21 @@ public static class MiniProgram {
*/
private String content;
}

/**
*
* The type Menu text.
*
*/
@Getter
@Setter
public static class MenuText {
/**
* <pre>
* 是否必须:是
* 说明:文本内容,支持\n(\和n两个字符)换行。不少于1字节 不多于256字节
* </pre>
*/
private String content;
}
}