MCPcopy Create free account
hub / github.com/TeleBoxOrg/TeleBox_Plugins / sendSticker

Function sendSticker

eat/eat.ts:359–370  ·  view source on GitHub ↗
(params: {
  entry: EntryConfig;
  msg: Api.Message;
  trigger?: Api.Message;
  isEat2: boolean;
})

Source from the content-addressed store, hash-verified

357 replyTo: await safeGetReplyMessage(msg),
358 });
359}
360
361async function sendSticker(params: {
362 entry: EntryConfig;
363 msg: Api.Message;
364 trigger?: Api.Message;
365 isEat2: boolean;
366}) {
367 const { entry, msg, trigger, isEat2 } = params;
368 const cmd = msg.message.slice(1).split(" ")[0];
369 await msg.edit({ text: `正在生成 ${entry.name} 表情包···` });
370 await compositeWithEntryConfig({ entry, msg, isEat2, trigger });
371 await msg.delete();
372}
373

Callers 1

fnFunction · 0.85

Calls 3

compositeWithEntryConfigFunction · 0.85
editMethod · 0.45
deleteMethod · 0.45

Tested by

no test coverage detected