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

Function getLatestBotMessageId

parsehub/parsehub.ts:199–208  ·  view source on GitHub ↗
(client: any)

Source from the content-addressed store, hash-verified

197 const latestId = await getLatestBotMessageId(client);
198 if (latestId > firstRunPreStartLastId && latestId > ignoredUpToId) {
199 ignoredUpToId = latestId;
200 initState.initialized = true;
201 initState.ignoredUpToId = latestId;
202 writeState(initState);
203 shouldIgnoreNextBotMessage = false;
204 break;
205 }
206 } catch {}
207 }
208 }
209}
210
211async function getLatestBotMessageId(client: any): Promise<number> {

Callers 2

ensureBotReadyFunction · 0.85
ParseHubPluginClass · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected