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

Function getChatKey

tmp_admin/tmp_admin.ts:202–209  ·  view source on GitHub ↗
(chatEntity: any, msg: Api.Message)

Source from the content-addressed store, hash-verified

200 (msg as any).chatId;
201 return String(raw);
202}
203
204function getJobKey(chatKey: string, userId: number): string {
205 return `${chatKey}:${userId}`;
206}
207
208function messageHasReply(msg: Api.Message): boolean {
209 return !!((msg as any).replyToMsgId || (msg as any).replyTo?.replyToMsgId);
210}
211
212function getTargetSourceMessage(msg: Api.Message, trigger?: Api.Message): Api.Message {

Callers 3

TmpAdminPluginClass · 0.85
addTemporaryAdminMethod · 0.85
removeTemporaryAdminMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected