File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,19 +7,19 @@ const main = async () => {
77
88 const client = MixinApi ( { keystore } ) ;
99
10- const resp = await client . message . sendAppCard ( '' , {
10+ const resp = await client . message . sendAppCard ( '' , {
1111 app_id : keystore . app_id ,
1212 icon_url : 'https://mixin.one/' ,
13- cover_url : " https://mixin.one/zh/assets/images/confidence-4f7bbf9bfa8adf0b1f2f1d8be7d0c94b.webp" , // 16:10
13+ cover_url : ' https://mixin.one/zh/assets/images/confidence-4f7bbf9bfa8adf0b1f2f1d8be7d0c94b.webp' , // 16:10
1414 title : 'Example Card' ,
1515 description : 'This is an example card.' ,
1616 actions : [
1717 {
18- " label" : " Mixin Website" ,
19- " color" : " #ABABAB" ,
20- " action" : " https://mixin.one"
21- }
22- ]
18+ label : ' Mixin Website' ,
19+ color : ' #ABABAB' ,
20+ action : ' https://mixin.one' ,
21+ } ,
22+ ] ,
2323 } ) ;
2424 console . log ( resp ) ;
2525} ;
Original file line number Diff line number Diff line change @@ -102,14 +102,14 @@ export interface AppCardMessageRequest {
102102 description : string ;
103103 action : string ;
104104 cover_url ?: string ;
105- actions ?: AppButtonView [ ]
105+ actions ?: AppButtonView [ ] ;
106106 shareable ?: boolean ;
107107}
108108
109109export interface AppButtonView {
110- label : string ;
111- action : string ;
112- color : string ;
110+ label : string ;
111+ action : string ;
112+ color : string ;
113113}
114114
115115export interface FileMessageRequest {
You can’t perform that action at this time.
0 commit comments