Skip to content

Commit

Permalink
Make init function public
Browse files Browse the repository at this point in the history
  • Loading branch information
rojvv committed Apr 12, 2024
1 parent f96cbe7 commit 1629441
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export class Client<C extends Context = Context> extends Composer<C> {
}
}
#inited = false;
async #init() {
async init() {
if (this.#inited) {
return;
}
Expand Down Expand Up @@ -612,7 +612,7 @@ export class Client<C extends Context = Context> extends Composer<C> {

#running = false;
async start() {
this.#init();
this.init();
this.#running = true;
const retryIn = 5;
while (this.#running) {
Expand Down

0 comments on commit 1629441

Please sign in to comment.