fix(client): avoid redundant help.getConfig call
This commit is contained in:
parent
2dbd592206
commit
60162c88bc
1 changed files with 0 additions and 7 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue