Skip to content

Commit

Permalink
feat: button.action增加enter字段,用于标识是否直接发送。 (merge request !97)
Browse files Browse the repository at this point in the history
Squash merge branch 'feat_20240327_bot_quiz_story_116528520' into 'master'
feat: button.action增加enter字段,用于标识是否直接发送。

--stroy=116528520
  • Loading branch information
rianli authored and shannonchen committed Aug 13, 2024
1 parent 0314b91 commit 4854142
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions dto/keyboard/keyboard.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,11 @@ type RenderData struct {

// Action 按纽点击操作
type Action struct {
Type ActionType `json:"type,omitempty"` // 操作类型
Permission *Permission `json:"permission,omitempty"` // 可操作
ClickLimit uint32 `json:"click_limit,omitempty"` // 可点击的次数, 默认不限
Data string `json:"data,omitempty"` // 操作相关数据
Type ActionType `json:"type,omitempty"` // 操作类型
Permission *Permission `json:"permission,omitempty"` // 可操作
ClickLimit uint32 `json:"click_limit,omitempty"` // 可点击的次数, 默认不限
Data string `json:"data,omitempty"` // 操作相关数据
Enter bool `json:"enter"`
AtBotShowChannelList bool `json:"at_bot_show_channel_list,omitempty"` // false:当前 true:弹出展示子频道选择器
SubscribeData SubscribeData `json:"subscribe_data,omitempty"` // 订阅按钮数据,type=ActionTypeSubscribe时使用
Modal *Modal `json:"modal,omitempty"` // 用户点击二次确认操作
Expand Down

0 comments on commit 4854142

Please sign in to comment.