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

Function isBot

pmcaptcha/pmcaptcha.ts:407–410  ·  view source on GitHub ↗
(client: TelegramClient, userId: number)

Source from the content-addressed store, hash-verified

405 const user = await fetchUserInfo(client, userId);
406 return !!user?.bot;
407}
408
409// ─── 会话操作 ─────────────────────────────────────────────────────────────────
410
411async function archiveChat(client: TelegramClient, userId: number) {
412 try {
413 const peer = await client.getInputEntity(userId);

Callers 2

messageListenerFunction · 0.85
pmcaptchaFunction · 0.85

Calls 1

fetchUserInfoFunction · 0.85

Tested by

no test coverage detected