From 60162c88bc93e78dc4accb9475d1ba93907bb7c8 Mon Sep 17 00:00:00 2001 From: teidesu Date: Mon, 24 May 2021 23:03:29 +0300 Subject: [PATCH] fix(client): avoid redundant help.getConfig call --- packages/core/src/base-client.ts | 7 ------- 1 file changed, 7 deletions(-) diff --git a/packages/core/src/base-client.ts b/packages/core/src/base-client.ts index 5fb94fdc..16fe353e 100644 --- a/packages/core/src/base-client.ts +++ b/packages/core/src/base-client.ts @@ -325,13 +325,6 @@ export class BaseTelegramClient { } }, 60_000) - if (!this.primaryConnection._initConnectionCalled) { - // initial call that will be wrapped with initConnection - await this.call({ _: 'help.getConfig' }).catch((err) => - this.primaryConnection.emit('error', err) - ) - } - // on reconnection we need to call updates.getState so Telegram // knows we still want the updates if (!this._disableUpdates) {