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

Method getChatId

autodelcmd/autodelcmd.ts:349–352  ·  view source on GitHub ↗
(msg: Api.Message)

Source from the content-addressed store, hash-verified

347 return chatId ? Number(chatId) : null;
348 }
349
350 private async delayDelete(msg: Api.Message, seconds: number) {
351 console.log(`[autodelcmd] 设置定时器: ${seconds} 秒后删除消息 ID ${msg.id}`);
352
353 // 保存退出消息信息,以便程序重启后能继续删除
354 try {
355 const chatId = this.getChatId(msg);

Callers 3

delayDeleteMethod · 0.95
removeExitMessageMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected