INNER CODE UNIT · TypeScript
offset
grammyjs/grammY · src/bot.ts:499
const offset = this.lastTriedUpdateId + 1;
await this.api.getUpdates({ offset, limit: 1 })
.finally(() => this.pollingAbortController = undefined);
} else {
debug("Bot is not running!");
}
}
/**
* Returns true if the bot is currently running via built-in long polling,
* and false otherwise.
*
* If this method returns true, it means that `bot.start()` has been called,
* and that the bot has neither crashed nor was it stopped via a call to
* `bot.stop()`. This also means that you cannot use this method to check if
* a webhook server is running, or if grammY runner was started.
*
* Note that this method will already begin to return true even before the