-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* beta1 * beta2 * beta3 * beta4 * beta5 * beta6 * beta7 * beta8 * beta9 * beta10 * beta11 * beta12 * beta13 * beta14 * beta15 * beta16 * beta16 * beta19 * beta20 * beta21 * beta22 * beta23 * beta24 * beta25 * beta27 * beta28 * beta29 * beta30 * beta31 * beta33 * beta34 * beta35 * beta36 * beta37 * beta38 * beta39 * beta40 * beta41 * beta42 * beta43 * beta44 * beta45 * beta45 * beta46 * beat48 * beta49 * beta50 * beta51 * beta52 * beta53 * beta54 * beta55 * beta57 * beta58 * beta59 * beta61 * beta62 * beta63 * beta63 * beta64 * beta65 * beta66 * beta67 * beta70 * beta71 * beta72 * beta72 * beta74 * beta75 * beta76 * beta77 * beta78 * beta79 * beta80 * beta81 * beta82 * beta83 * beta85 * beta86 * beta87 * beta88 * beta89 * beta90 * beta91 * beta92 * beta93 * beta94 * beta94 * beta96 * beta97 * beta98 * beta99 * beta100 * beta101 * beta102 * beta104 * beta105 * beta106 * beta107
- Loading branch information
1 parent
e3ae99f
commit 3ffd466
Showing
9 changed files
with
516 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
package structs | ||
|
||
type RenderData struct { | ||
Label string `json:"label"` | ||
VisitedLabel string `json:"visited_label"` | ||
Style int `json:"style"` | ||
} | ||
|
||
type Permission struct { | ||
Type int `json:"type"` | ||
SpecifyRoleIDs []string `json:"specify_role_ids"` | ||
} | ||
|
||
type Action struct { | ||
Type int `json:"type"` | ||
Permission Permission `json:"permission"` | ||
ClickLimit int `json:"click_limit"` | ||
UnsupportTips string `json:"unsupport_tips"` | ||
Data string `json:"data"` | ||
AtBotShowChannelList bool `json:"at_bot_show_channel_list"` | ||
Enter bool `json:"enter"` //指令按钮可用,点击按钮后直接自动发送 data,默认 false。支持版本 8983 | ||
Reply bool `json:"reply"` //指令按钮可用,指令是否带引用回复本消息,默认 false。支持版本 8983 | ||
} | ||
|
||
type Button struct { | ||
ID string `json:"id"` | ||
RenderData RenderData `json:"render_data"` | ||
Action Action `json:"action"` | ||
} | ||
|
||
type Row struct { | ||
Buttons []Button `json:"buttons"` | ||
} | ||
|
||
type KeyboardContent struct { | ||
Rows []Row `json:"rows"` | ||
} | ||
|
||
type Keyboard struct { | ||
Content KeyboardContent `json:"content"` | ||
} | ||
|
||
type Markdown struct { | ||
Content string `json:"content"` | ||
} | ||
|
||
type PromptKeyboardMarkdown struct { | ||
Markdown Markdown `json:"markdown"` | ||
Keyboard Keyboard `json:"keyboard"` | ||
Content string `json:"content"` | ||
MsgID string `json:"msg_id"` | ||
Timestamp string `json:"timestamp"` | ||
MsgType int `json:"msg_type"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.