feat(red): add MarkdownElement/InlineKeyboardElement types

This commit is contained in:
Il Harper 2024-04-26 13:07:26 +08:00
parent 17f5756c8c
commit 60fa49ae01
No known key found for this signature in database
GPG Key ID: 4B71FCA698E7E8EC

View File

@ -272,9 +272,9 @@ export interface Element {
fileElement?: FileElement
giphyElement?: unknown
grayTipElement?: GrayTipElement
inlineKeyboardElement?: unknown
inlineKeyboardElement?: InlineKeyboardElement
liveGiftElement?: unknown
markdownElement?: unknown
markdownElement?: MarkdownElement
marketFaceElement?: unknown
multiForwardMsgElement?: unknown
pttElement?: PttElement
@ -653,6 +653,115 @@ export interface Media {
downloadType: number
}
export interface InlineKeyboardElement {
rows: InlineKeyboardRow[]
}
export interface InlineKeyboardRow {
buttons: InlineKeyboardButton[]
}
export interface InlineKeyboardButton {
/**
* ID InlineKeyboard ID
*/
id: string
/**
*
*/
label: string
/**
*
*/
visitedLabel: string
/**
*
*/
style: InlineKeyboardButtonStyle
/**
*
*/
type: InlineKeyboardButtonType
/**
*
*
* @deprecated
*/
clickLimit: number
/**
*
*/
unsupportTips: string
data: string
/**
*
*
* @deprecated
*/
atBotShowChannelList: boolean
permissionType: number
specifyRoleIds: string[]
specifyTinyids: string[]
isReply: boolean
anchor: number
enter: boolean
subscribeDataTemplateIds: unknown[]
feedBackData: InlineKeyboardButtonFeedbackData
}
export enum InlineKeyboardButtonStyle {
/**
* 线
*/
Value0 = 0,
/**
* 线
*/
Value1 = 1,
}
export enum InlineKeyboardButtonType {
/**
* http mqqapi URL Scheme
*/
Value0 = 0,
/**
*
*/
Value1 = 1,
/**
*
*/
Value2 = 2,
}
export interface InlineKeyboardButtonFeedbackData {
opt: number // 0
}
export interface MarkdownElement {
content: string
}
export interface ArkElement {
bytesData: string
linkInfo: never