diff --git a/pkg/connector/client.go b/pkg/connector/client.go index 88725d43..7803c49d 100644 --- a/pkg/connector/client.go +++ b/pkg/connector/client.go @@ -470,10 +470,13 @@ func (t *TelegramClient) onAuthError(ctx context.Context, err error) { func (t *TelegramClient) Connect(ctx context.Context) { if !t.userLogin.Metadata.(*UserLoginMetadata).Session.HasAuthKey() { + zerolog.Ctx(ctx).Warn().Msg("user does not have an auth key, sending bad credentials state") t.sendBadCredentialsOrUnknownError(ErrNoAuthKey) return } + zerolog.Ctx(ctx).Info().Int64("user_id", t.telegramUserID).Msg("Connecting client") + var err error t.clientCtx, t.clientCancel, err = connectTelegramClient(ctx, t.client) if err != nil {