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

Method getReplySender

aban/aban.ts:247–253  ·  view source on GitHub ↗
(reply: Api.Message)

Source from the content-addressed store, hash-verified

245
246 private static async getReplySender(reply: Api.Message): Promise<any> {
247 try {
248 return await (reply as any).getSender?.();
249 } catch {
250 return reply.sender;
251 }
252 }
253
254 private static getChatType(message: Api.Message): "channel" | "chat" | "unknown" {
255 if ((message as any).isChannel) return "channel";
256 if ((message as any).isGroup) return "chat";

Callers 1

resolveTargetMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected