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

Function downloadAvatar

eat/eat.ts:222–227  ·  view source on GitHub ↗
(
  msg: Api.Message,
  isEat2: Boolean
)

Source from the content-addressed store, hash-verified

220}
221
222async function downloadAvatar(
223 msg: Api.Message,
224 isEat2: Boolean
225): Promise<Buffer | null> {
226 return isEat2 ? await downloadMedia(msg) : await downloadProfilePhoto(msg);
227}
228
229async function compositeWithEntryConfig(parmas: {
230 entry: EntryConfig;

Callers 1

compositeWithEntryConfigFunction · 0.85

Calls 2

downloadMediaFunction · 0.85
downloadProfilePhotoFunction · 0.85

Tested by

no test coverage detected