54 lines
1.3 KiB
TypeScript
54 lines
1.3 KiB
TypeScript
export const ExtendsActionsExamples = {
|
|
OCRImage: {
|
|
payload: { image: 'image_id_123' },
|
|
response: { texts: [{ text: '识别内容', coordinates: [] }] },
|
|
},
|
|
GetAiCharacters: {
|
|
payload: { group_id: '123456' },
|
|
response: [
|
|
{
|
|
type: 'string',
|
|
characters: [
|
|
{ character_id: 'id', character_name: 'name', preview_url: 'url' },
|
|
],
|
|
},
|
|
],
|
|
},
|
|
GetClientkey: {
|
|
payload: {},
|
|
response: { clientkey: 'abcdef123456' },
|
|
},
|
|
SetQQAvatar: {
|
|
payload: { file: 'base64://...' },
|
|
response: null,
|
|
},
|
|
SetGroupKickMembers: {
|
|
payload: { group_id: '123456', user_id: ['123456789'], reject_add_request: false },
|
|
response: null,
|
|
},
|
|
TranslateEnWordToZn: {
|
|
payload: { words: ['hello'] },
|
|
response: { words: ['你好'] },
|
|
},
|
|
GetRkey: {
|
|
payload: {},
|
|
response: { rkey: '...' },
|
|
},
|
|
SetLongNick: {
|
|
payload: { longNick: '个性签名' },
|
|
response: null,
|
|
},
|
|
SetSpecialTitle: {
|
|
payload: { group_id: '123456', user_id: '123456789', special_title: '头衔' },
|
|
response: null,
|
|
},
|
|
SendQzoneMsg: {
|
|
payload: { content: '今天天气不错', images: [], ugc_right: 1, target_uins: [] },
|
|
response: { tid: '1234567890abcdef1234567890' },
|
|
},
|
|
DeleteQzoneMsg: {
|
|
payload: { tid: '1234567890abcdef1234567890' },
|
|
response: null,
|
|
},
|
|
};
|