Skip to content

Commit eae0097

Browse files
author
anezhou
committed
dto: 内嵌键盘 (merge request !29)
Squash merge branch 'feature_20220217_anezhou_keyboard_story_871509463' into 'master' dto: 内嵌键盘 --story=871509463 TAPD: --story=871509463
1 parent 03f9104 commit eae0097

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

dto/message_create.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ type MessageToCreate struct {
99
MsgID string `json:"msg_id,omitempty"` // 要回复的消息id,为空是主动消息,公域机器人会异步审核,不为空是被动消息,公域机器人会校验语料
1010
MessageReference *MessageReference `json:"message_reference,omitempty"`
1111
Markdown *Markdown `json:"markdown,omitempty"`
12+
Keyboard string `json:"keyboard,omitempty"` // 内嵌键盘
1213
}
1314

1415
// MessageReference 引用消息
@@ -28,3 +29,8 @@ type MarkdownParams struct {
2829
Key string `json:"key"`
2930
Values []string `json:"values"`
3031
}
32+
33+
// Keyboard 内嵌键盘
34+
type Keyboard struct {
35+
ID string `json:"id"`
36+
}

0 commit comments

Comments
 (0)