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

Function quoteStickerReplyTargetId

quote/quote.ts:1300–1309  ·  view source on GitHub ↗
(commandMsg: Api.Message, quoteMessages: Api.Message[], argsText: string)

Source from the content-addressed store, hash-verified

1298 }
1299}
1300
1301function customEmojiThumbs(doc: any): any[] {
1302 return [
1303 ...(Array.isArray(doc?.videoThumbs) ? doc.videoThumbs : []),
1304 ...(Array.isArray(doc?.video_thumbs) ? doc.video_thumbs : []),
1305 ...(Array.isArray(doc?.thumbs) ? doc.thumbs : []),
1306 ];
1307}
1308
1309async function downloadCustomEmojiAnimatedPreferred(client: any, doc: any): Promise<Buffer | undefined> {
1310 const t0 = Date.now();
1311 const id = String(doc?.id ?? doc?.documentId ?? doc?.document_id ?? "");
1312 const mime = doc?.mimeType || doc?.mime_type || "";

Callers 1

handleQuoteMethod · 0.85

Calls 2

withTimeoutFunction · 0.85
hasExplicitCountFunction · 0.85

Tested by

no test coverage detected