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

Function sendImages

cosplay/cosplay.ts:387–398  ·  view source on GitHub ↗
(
  client: any,
  chatId: any,
  tempFiles: string[],
  photoSetUrl?: string
)

Source from the content-addressed store, hash-verified

385}
386
387async function sendImages(
388 client: any,
389 chatId: any,
390 tempFiles: string[],
391 photoSetUrl?: string
392): Promise<void> {
393 if (tempFiles.length === 1) {
394 await sendSingleImage(client, chatId, tempFiles[0], photoSetUrl);
395 } else {
396 await sendImageAlbum(client, chatId, tempFiles, photoSetUrl);
397 }
398}
399
400class CosplayPlugin extends Plugin {
401 private scraper: CosplayScraper | null = null;

Callers 1

CosplayPluginClass · 0.85

Calls 2

sendSingleImageFunction · 0.85
sendImageAlbumFunction · 0.85

Tested by

no test coverage detected