Skip to content

Commit

Permalink
docs: clarify order of state transitions
Browse files Browse the repository at this point in the history
  • Loading branch information
KnorpelSenf committed Oct 16, 2024
1 parent d9ec3ac commit 214253c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/bot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -508,10 +508,9 @@ a known bot info object.",
* a webhook server is running, or if grammY runner was started.
*
* Note that this method will already begin to return true even before the
* call to `bot.start()` has completed its initialization phase. During that
* period, it is `bot.isRunning() && !bot.isInited()`. By extension, this
* method returns true before `onStart` callback of `bot.start()` is
* invoked.
* call to `bot.start()` has completed its initialization phase (and hence
* before `bot.isInited()` returns true). By extension, this method
* returns true before `onStart` callback of `bot.start()` is invoked.
*/
isRunning() {
return this.pollingRunning;
Expand Down

0 comments on commit 214253c

Please sign in to comment.