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 const avatarBuffer = src?.entity && !src.anonymous ? await downloadEntityAvatar(avatarClient, src.entity) : undefined;
1299 return {
1300 chatId: peerIdNumber(src?.peer || src?.entity),
1301 from: { id: peerIdNumber(src?.peer || src?.entity), name, first_name: name, photo: {}, emoji_status: src?.anonymous ? undefined : emojiStatusPayload(src?.entity) },
1302 name,
1303 text: `Forwarded from ${name}`,
1304 entities: [],
1305 avatar: !!avatarBuffer,
1306 avatarBuffer,
1307 avatarScale: 2,
1308 date: fwd.date,
1309 channelPost: fwd.channelPost ?? fwd.channel_post,
1310 anonymous: !!src?.anonymous,
1311 };
1312}

Callers 1

handleQuoteMethod · 0.85

Calls 2

withTimeoutFunction · 0.85
hasExplicitCountFunction · 0.85

Tested by

no test coverage detected